BlogSafe.org

PHP CVEs

Vulnerabilities in the PHP language itself, and which PHP versions they affect.

← Back to CVE list

CVE-2021-21706

MEDIUM 6.5 CVSS 3.1
Published
October 4, 2021
Last modified
June 17, 2026
NVD status
Modified
Reported by
security@php.net
Weakness
CWE-24, CWE-22
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N

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 products and versions

  • PHP — From 7.3.0 (including) to 7.3.31 (excluding)
  • PHP — From 7.4.0 (including) to 7.4.24 (excluding)
  • PHP — From 8.0.0 (including) to 8.0.11 (excluding)

References

  • bugs.php.net https://bugs.php.net/bug.php?id=81420 Issue Tracking, Patch, Vendor Advisory
  • security.netapp.com https://security.netapp.com/advisory/ntap-20211029-0007/ Third Party Advisory
  • nvd.nist.gov Official NVD record