All vulnerabilities

Servers and applications

CVE-2021-21706

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.

Severity
Medium 6.5
Published
4 Oct 2021
Last changed
17 Jun 2026
Added to UpHeron
14 Oct 2026
Fixed in
7.3.31, 7.4.24, 8.0.11
Sources
NVD

Affected software

SoftwareAffected versions
PHPServers and applications · cpe:a:php:php
  • From 7.3.0 before 7.3.31
  • From 7.4.0 before 7.4.24
  • From 8.0.0 before 8.0.11

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2021-21706
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2021-21706