CVE-2021-21707
Special characters break path parsing in XML functions
Description
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.
No summary for this CVE yet.
CVSS Vector Breakdown
Exploitability
AV:NAttack VectorNetwork
AC:LAttack ComplexityLow
PR:NPrivileges RequiredNone
UI:NUser InteractionNone
Scope
S:UScopeUnchanged
Impact
C:LConfidentialityLow
I:NIntegrityNone
A:NAvailabilityNone
Weaknesses
Affected Products
PHP Group
oss-projectaka pear, php
Сообщество свободного программного обеспечения
oss-projectaka fsf
Canonical Ltd.
commercial·GBaka canonical
ООО «РусБИТех-Астра»
commercial·RUaka rusbitech-astra
Novell Inc.
commercial·US
Fedora Project
oss-project·USaka fedora
and 6 more affected products View all →
Exploitability
Official Patch Available
References
https://bugs.php.net/bug.php?id=79971
bugs.php.net
https://security.netapp.com/advisory/ntap-20211223-0005/
security.netapp.com
https://www.debian.org/security/2022/dsa-5082
debian.org
and 455 more references View all →
News mentions
Could not load news mentions.
Unlock Complete Vulnerability Intelligence
Get the full picture for CVE-2021-21707 and every CVE in our database. Create a free account — no credit card required.
Create Free AccountPlain-language analysis
Impact assessment and exploitation scenario in plain English
Attack graph visualization
Interactive attack path and kill chain mapping
Exploit details & PoC links
ExploitDB, Metasploit, GitHub PoCs with direct links
Nuclei scanner templates
Ready-to-use vulnerability scanner templates
Full remediation guide
Patch instructions, workarounds, and compliance impact
Interactive AI chat
Ask questions about this vulnerability in natural language
Related vulnerabilities
Semantically similar CVEs and attack patterns
REST API & MCP access
Integrate vulnerability data into your workflows
