CVE & CISA-KEV Catalog

CVE-2021-21707

MEDIUMEPSS 98th pctl
5.3
CVSS v3
NVD

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.

How to fix

Remediation Available
php7.4Debian
Fixed in:7.4.28-1+deb11u1CVE-2021-21707
php7.0Ubuntu
Fixed in:7.0.33-0ubuntu0.16.04.16+esm3USN-5300-1
php7.0-cgiUbuntu
Fixed in:7.0.33-0ubuntu0.16.04.16+esm3USN-5300-1
php7.0-cliUbuntu
Fixed in:7.0.33-0ubuntu0.16.04.16+esm3USN-5300-1
php7.0-fpmUbuntu
Fixed in:7.0.33-0ubuntu0.16.04.16+esm3USN-5300-1
php7.2Ubuntu
Fixed in:7.2.24-0ubuntu0.18.04.11USN-5300-2
php7.2-cgiUbuntu
Fixed in:7.2.24-0ubuntu0.18.04.11USN-5300-2
php7.2-cliUbuntu
Fixed in:7.2.24-0ubuntu0.18.04.11USN-5300-2
php7.2-fpmUbuntu
Fixed in:7.2.24-0ubuntu0.18.04.11USN-5300-2
php7.4Ubuntu
Fixed in:7.4.3-4ubuntu2.10USN-5300-2
php7.4-cgiUbuntu
Fixed in:7.4.3-4ubuntu2.10USN-5300-2
php7.4-cliUbuntu
Fixed in:7.4.3-4ubuntu2.10USN-5300-2
php7.4-fpmUbuntu
Fixed in:7.4.3-4ubuntu2.10USN-5300-2

TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityLow
IntegrityNone
AvailabilityNone

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Exploit Intelligence

25.95%probability of exploitation in 30 days
98thpercentile

Very high risk: more likely to be exploited than 98% of all known CVEs.

References

Related Vulnerabilities

Other CWE-159 vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2019-9505Critical9.83.5%--
CVE-2020-1653High7.51.6%--
CVE-2020-1648High7.51.3%--
CVE-2020-1646High7.51.0%--
CVE-2020-29022Medium5.30.8%-Fix
CVE-2026-2636Medium5.50.4%--
Embed a live status badge for CVE-2021-21707
CVE-2021-21707 severity badge

Markdown

[![CVE-2021-21707](https://tridentstack.com/cve/badge/CVE-2021-21707.svg)](https://tridentstack.com/cve/CVE-2021-21707)

HTML

<a href="https://tridentstack.com/cve/CVE-2021-21707"><img src="https://tridentstack.com/cve/badge/CVE-2021-21707.svg" alt="CVE-2021-21707"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

See how it worksStart freeThis CVE lookup is free and always will be.

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2024-11-21.