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

Published Dec 17, 2019
·
Updated

A vulnerability was found 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.

Reference: https://bugs.php.net/bug.php?id=78863

Other sources

Fixed bug (DirectoryIterator class silently truncates after a null byte). (CVE-2019-11045)

PHP

Affected Software

21 affected componentsFixes available
redhat/rh-php73-php<0:7.3.20-1.el7
0:7.3.20-1.el7
debian/php5
debian/php7.0
debian/php7.3
PHP PHP<7.2.26
7.2.26
PHP PHP>=7.2.0<=7.2.26
PHP PHP>=7.3.0<=7.3.13
PHP PHP=7.4.0
Fedoraproject Fedora=30
Fedoraproject Fedora=31
Debian Debian Linux=8.0
Debian Debian Linux=9.0
Debian Debian Linux=10.0
openSUSE Leap=15.1
Canonical Ubuntu Linux=12.04
Canonical Ubuntu Linux=14.04
Canonical Ubuntu Linux=16.04
Canonical Ubuntu Linux=18.04
Canonical Ubuntu Linux=19.04
Canonical Ubuntu Linux=19.10
Tenable SecurityCenter<5.19.0

Event History

Dec 18, 2019
CVE Published
via PHP·12:00 AM
Dec 23, 2019
CVE Published
via MITRE·02:40 AM
Data Sourced
via MITRE·02:40 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·03:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Dec 26, 2019
Data Sourced
via Red Hat·09:55 AM
DescriptionSeverityAffected Software
Feb 20, 2026
Data Sourced
via Ubuntu·10:16 PM
RemedyDescriptionSeverityAffected Software
Data Sourced
via Launchpad·10:17 PM
Description

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the vulnerability ID for this issue?

The vulnerability ID for this issue is CVE-2019-11045.

2

What is the severity of CVE-2019-11045?

The severity of CVE-2019-11045 is medium with a CVSS score of 5.9.

3

Which PHP versions are affected by CVE-2019-11045?

PHP versions 7.2.x below 7.2.26, 7.3.x below 7.3.13, and 7.4.0 are affected by CVE-2019-11045.

4

What is the impact of CVE-2019-11045?

CVE-2019-11045 could lead to security vulnerabilities in applications checking paths that the code is allowed to access.

5

How can I fix CVE-2019-11045?

To fix CVE-2019-11045, update PHP to version 7.2.26, 7.3.13, or 7.4.1 or later.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203