CVE-2021-21707

Special characters break path parsing in XML functions

Published Nov 29, 2021 CVSS 3.1 · 5.3 Medium EPSS 25.3% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-3243-1 php7.3 security update
Debian DSA Debian DSA DSA-5082-1 php7.4 security update
EUVD EUVD EUVD-2021-8879 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.
Ubuntu USN Ubuntu USN USN-5300-1 PHP vulnerabilities
Ubuntu USN Ubuntu USN USN-5300-2 PHP vulnerabilities
Ubuntu USN Ubuntu USN USN-5300-3 PHP vulnerabilities
History

No history.