Skip to content
5.3 Medium

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,…

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

Product Affected versions Fixed in
PHP 8.0 8.0.X → < 8.0.11 8.0.11
PHP 7.4 7.4.x → < 7.4.24 7.4.24
PHP 7.3 7.3.x → < 7.3.31 7.3.31

References

Timeline

  1. Published
  2. Last modified
The 103 CVEs of PHP →
Track this CVE