CVE-2019-11045

published 23 Dec 2019 · updated 16 Sep 2024

DirectoryIterator class silently truncates after a null byte

3.7LowCVSS 3.7EPSS 9%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 9%. 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, 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.

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-11045 severity on Zeptric[![CVE-2019-11045](https://zeptric.io/badge/cve/CVE-2019-11045.svg)](https://zeptric.io/cve/CVE-2019-11045)