Vulnerabilities · 2021 · Php
CVE-2021-21707
Php vulnerability
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.
Affected products
Php, Clustered Data Ontap, Debian Linux, Tenable.sc. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Php runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- bugs.php.net/bug.php?id=79971 · Exploit
- www.tenable.com/security/tns-2022-09 · Patch
- security.netapp.com/advisory/ntap-20211223-0005/ · Third Party Advisory
- www.debian.org/security/2022/dsa-5082 · Third Party Advisory
- lists.debian.org/debian-lts-announce/2022/12/msg00030.html
- nvd.nist.gov/vuln/detail/CVE-2021-21707
- cve.org/CVERecord?id=CVE-2021-21707
More vulnerabilities in Php products
CVE-2025-14180CVE-2025-14178CVE-2025-14177CVE-2025-6491CVE-2025-1861CVE-2025-1736CVE-2025-1735CVE-2025-1734All 740
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.