CVE-2019-11044 link() silently truncates after a null byte on Windows

Low 3.7 Published Updated

PHP link() truncates filenames at null bytes on Windows, allowing attackers to bypass path validation checks.

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

What is CVE-2019-11044?

CVE-2019-11044 is a low-severity path traversal vulnerability in Fedoraproject Fedora, 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 on Windows, PHP link() function 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-170

Which versions are affected by CVE-2019-11044?

It affects 3 products.

Products include Fedoraproject Fedora, Php Php, Tenable Security Center.

How do I fix CVE-2019-11044?

No fix has been published for CVE-2019-11044 yet. Limit exposure of the affected software until one is available.

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

Is CVE-2019-11044 being exploited?

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

All Fedoraproject Fedora vulnerabilities

Sources

Also known as GHSA-c8cf-pj9v-fcr9.

Is CVE-2019-11044 in your software?

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

Check your SBOMs for free