CVE-2019-11044

published 23 Dec 2019 · updated 17 Sep 2024

link() silently truncates after a null byte on Windows

3.7LowCVSS 3.7EPSS 5%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 5%. Fixed in PHP 7.2.26, PHP 7.3.13 and PHP 7.4.1.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
PHP GroupPHP>=7.2.x <7.2.26, >=7.3.x <7.3.13, >=7.4.x <7.4.17.2.26, 7.3.13, 7.4.1

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in PHP, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2019-11044 severity on Zeptric[![CVE-2019-11044](https://zeptric.io/badge/cve/CVE-2019-11044.svg)](https://zeptric.io/cve/CVE-2019-11044)