CVE-2021-21707Php
Medium 5.3 No auth neededHigh EPSS
Follow: this CVE · Php · Php We alert you by email or Slack (account required).
- Priority
- 49
- CVSS 3.1
- 5.3
- EPSS
- 25.3% probability of exploitation in 30 days · percentile 98
- Auth required
- No
- Published
- Nov 29, 2021
- Updated
- Jun 17, 2026
- Category
- Web application · Cross-platform
- Weakness (CWE)
- CWE-159
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
What happens
In PHP versions 7.3.x below 7.3.33, 7.4.x below 7.4.26 and 8.0.x below 8.0.13, certain XML parsing functions, like simplexml_load_file(), URL-decode the filename passed to them. If that filename contains URL-encoded NUL character, this may cause the function to interpret this as the end of the filename, thus interpreting the filename differently from what the user intended, which may lead it to reading a different file than intended.
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.33 |
| php | php | ≥ 7.4.0 < 7.4.26 |
| php | php | ≥ 8.0.0 < 8.0.13 |
| netapp | clustered_data_ontap | all |
| debian | debian_linux | 10.0 |
| debian | debian_linux | 11.0 |
| tenable | tenable.sc | < 5.21.0 |
Official sources
References
Links published by the sources. Open them with care.
- bugs.php.net Exploit Issue Tracking Patch
- lists.debian.org Issue Tracking Mailing List
- security.netapp.com Third Party Advisory
- www.debian.org Third Party Advisory
- www.tenable.com Patch Release Notes Third Party Advisory