Skip to main content
← All vulnerabilities
CVE-2021-21707

Special characters break path parsing in XML functions

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 7.3.33, 7.4.26, 8.0.13
1 proof of concept on GitHub

Summary

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.

Timeline

  1. CVE published
  2. Record last updated
  3. EPSS reached 10%

    FIRST estimates at least a 10% chance of exploitation in the next 30 days

Affected versions

  • PHP Group PHP

    From 7.3.x · fixed in 7.3.33; From 7.4.x · fixed in 7.4.26; From 8.0.X · fixed in 8.0.13

References 6

bugs.php.net

security.netapp.com

debian.org

tenable.com

lists.debian.org

GitHub · useru1k/php-8.1.0-dev-exploit