CVE-2021-21706
Last modified
CVE-2021-21706 is a medium-severity vulnerability rated 6.5/10 on the CVSS scale. 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.. EPSS estimates a 1.34% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Php | Php | >= 7.3.0, < 7.3.31 |
| Php | Php | >= 7.4.0, < 7.4.24 |
| Php | Php | >= 8.0.0, < 8.0.11 |
References
- https://bugs.php.net/bug.php?id=81420Issue Tracking, Patch, Vendor Advisory
- https://security.netapp.com/advisory/ntap-20211029-0007/Third Party Advisory
- https://bugs.php.net/bug.php?id=81420Issue Tracking, Patch, Vendor Advisory
- https://security.netapp.com/advisory/ntap-20211029-0007/Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2021-21706?
How severe is CVE-2021-21706?
How do I fix CVE-2021-21706?
Are you affected by CVE-2021-21706?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
