Live threats

All CVEs / Php

CVE-2021-21706Php

Medium 6.5 No auth needed

Priority
54
CVSS 3.1
6.5
EPSS
1.5%
probability of exploitation in 30 days · percentile 75
Auth required
No
Published
Oct 4, 2021
Updated
Jun 17, 2026
Category
Web application · Cross-platform
Weakness (CWE)
CWE-24, CWE-22
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Php.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products (CPE)

VendorProductVersions
phpphp≥ 7.3.0 < 7.3.31
phpphp≥ 7.4.0 < 7.4.24
phpphp≥ 8.0.0 < 8.0.11

Official sources

References

Links published by the sources. Open them with care.