CVE-2019-11045 DirectoryIterator class silently truncates after a null byte

Low 3.7 Published Updated

Attackers can bypass path validation checks in PHP applications by using null bytes in filenames, potentially accessing unauthorized files.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2019-11045?

CVE-2019-11045 is a low-severity path traversal vulnerability in Canonical Ubuntu Linux, published on 23 Dec 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

In PHP versions 7.2.x below 7.2.26, 7.3.x below 7.3.13 and 7.4.0, PHP DirectoryIterator class accepts filenames with embedded \0 byte and treats them as terminating at that byte. This could lead to security vulnerabilities, e.g. in applications checking paths that the code is allowed to access.

Weakness: CWE-74, CWE-170

Which versions are affected by CVE-2019-11045?

It affects 6 products.

Products include Canonical Ubuntu Linux, Debian Debian Linux, Fedoraproject Fedora, Opensuse Leap, Php Php, Tenable Security Center.

How do I fix CVE-2019-11045?

Upgrade to a fixed version.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2019-11045 being exploited?

There is no known exploitation of CVE-2019-11045 in the wild and no public exploit code.

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as GHSA-jv88-p4rw-4m4h, UBUNTU-CVE-2019-11045.

Is CVE-2019-11045 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free