CVE-2021-21707

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.

Severity
MEDIUM
CVSS v3
5.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N · source cna
Exploit chance (EPSS)
25.315%
chance of exploitation in the next 30 days
higher than 98% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 1
Metasploit modules: 0
Nuclei templates: 0

Weakness

Timeline

  1. 2021-11-29Published by the CNA06:25 UTC

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
php phpfrom 7.3.0 before 7.3.33fixed in 7.3.33from 7.4.0 before 7.4.26fixed in 7.4.26from 8.0.0 before 8.0.13fixed in 8.0.137.3.337.4.268.0.13
debian debian_linux10.0no fix listed11.0no fix listednot listednot listed
netapp clustered_data_ontap
tenable tenable.scbefore 5.21.0fixed in 5.21.05.21.0

Products and versions as NVD and the vendor that published the CVE list them.

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources