CVE-2021-21707
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.
Scoring
- Severity
- MEDIUM
- CVSS base score
- 5.3
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- EPSS probability
- 0.56%
- CWE
- CWE-159
- Published
- 2021-11-29
- Last modified
- 2026-03-13
Affected products
- PHP Group PHP
- PHP Group PHP
- PHP Group PHP
Weakness type
Related vulnerabilities
- CVE-2026-35536 — In Tornado before 6.5.5, cookie attribute injection could occur because the domain, path, and...
- CVE-2026-29106 — SuiteCRM has blind XSS in return_id parameter
- CVE-2026-2636 — Denial of Service in Microsoft OS
- CVE-2025-61984 — ssh in OpenSSH before 10.1 allows control characters in usernames that originate from certain...
- CVE-2025-52884 — risc0-ethereum-contracts allows invalid commitment with digest value of zero to be accepted by Steel.validateCommitment
- CVE-2024-51500 — Failure to check for packets from the broadcast address allows potential DDoS amplification attack in Meshtastic firmware
- CVE-2021-42375 — An incorrect handling of a special element in Busybox's ash applet leads to denial of service when...
- CVE-2020-29022 — Host Header Injection allowing web cache poisoning attacks