CVEvulnerability
CVE-2021-21706
6.5 MEDIUM
Official page ↗
- Status
- Modified
- Published
- 2021-10-04
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 5.3 MEDIUM — CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N
- CVSS 3.1 ([email protected])
- 6.5 MEDIUM — CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
- CVSS 2.0 ([email protected])
- 4.3 MEDIUM — AV:N/AC:M/Au:N/C:N/I:P/A:N
- Weaknesses
- CWE-22, CWE-24
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.
Affected configurations
• php php (>= 7.3.0 < 7.3.31)
• php php (>= 7.4.0 < 7.4.24)
• php php (>= 8.0.0 < 8.0.11)
Related
References
- https://bugs.php.net/bug.php?id=81420 Issue Tracking, Patch, Vendor Advisory
- https://security.netapp.com/advisory/ntap-20211029-0007/ Third Party Advisory
- https://bugs.php.net/bug.php?id=81420 Issue Tracking, Patch, Vendor Advisory
- https://security.netapp.com/advisory/ntap-20211029-0007/ Third Party Advisory