title: ZipArchive::extractTo may extract outside of destination dir
description: In PHP versions 7.3.x below 7.3.31, 7.4.x below 7.4.24 and 8.0.x below 8.0.11, in Microsoft Windows environment, ZipArchive::extractTo may be tricked into writing a file outside target directory when extracting a ZIP file, thus potentially causing files to be created or overwritten, subject to OS permissions.
problem types: CWE-24 Path Traversal: '../filedir'
affected:
{
platforms: Windows
product: PHP
vendor: PHP Group
versions:
lessThan: 7.3.31, status: affected, version: 7.3.x, versionType: custom
lessThan: 7.4.24, status: affected, version: 7.4.x, versionType: custom
lessThan: 8.0.11, status: affected, version: 8.0.X, versionType: custom
}
metrics:
cvssV3_1: [
attackComplexity: HIGH
attackVector: NETWORK
availabilityImpact: NONE
baseScore: 5.3
baseSeverity: MEDIUM
confidentialityImpact: NONE
integrityImpact: HIGH
privilegesRequired: NONE
scope: UNCHANGED
userInteraction: REQUIRED
vectorString: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N
version: 3.1
]