CVE-2021-21706
04.10.2021, 04:15
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.
Vendor | Product | Version |
---|---|---|
php | php | 7.3.0 ≤ 𝑥 < 7.3.31 |
php | php | 7.4.0 ≤ 𝑥 < 7.4.24 |
php | php | 8.0.0 ≤ 𝑥 < 8.0.11 |
𝑥
= Vulnerable software versions

Debian Releases

Ubuntu Releases
Ubuntu Product | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
php5 |
| ||||||||||||||||
php7.0 |
| ||||||||||||||||
php7.2 |
| ||||||||||||||||
php7.4 |
| ||||||||||||||||
php8.0 |
| ||||||||||||||||
php8.1 |
|
Common Weakness Enumeration
- CWE-24 - Path Traversal: '../filedir'The software uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize "../" sequences that can resolve to a location that is outside of that directory.
- CWE-22 - Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')The software uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the software does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.