Skip to main content
← All vulnerabilities
CVE-2021-21706

ZipArchive::extractTo may extract outside of destination dir

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 7.3.31, 7.4.24, 8.0.11
None on Exploit-DB, Metasploit or GitHub

Summary

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.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • PHP Group PHP

    From 7.3.x · fixed in 7.3.31; From 7.4.x · fixed in 7.4.24; From 8.0.X · fixed in 8.0.11

References 2

bugs.php.net

security.netapp.com