CVE-2021-21706Php
Medium 6.5 No auth needed
Follow: this CVE · Php · Php We alert you by email or Slack (account required).
- 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
- 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.
What to do
- Apply the vendor's security update for Php.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| php | php | ≥ 7.3.0 < 7.3.31 |
| php | php | ≥ 7.4.0 < 7.4.24 |
| php | php | ≥ 8.0.0 < 8.0.11 |
Official sources
References
Links published by the sources. Open them with care.
- bugs.php.net Issue Tracking Patch Vendor Advisory
- security.netapp.com Third Party Advisory