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.

Analysis

No analysis available yet

Remediation

No remediation available yet

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.

Weaknesses

Sources

Status
PUBLISHED
Assigner
php
Published
Updated
Sep 17, 2024, 3:38 AM
Reserved
Jan 4, 2021, 12:00 AM
Status
Modified
Published
Nov 29, 2021, 7:15 AM
Modified
Jun 17, 2026, 3:36 AM
Severity
Moderate
Public date
Nov 15, 2021, 12:00 AM