DirectoryIterator class silently truncates after a null byte

Summary

CVECVE-2019-11045
StatePUBLISHED
Assignerphp
Source PriorityCVE Program / NVD first with legacy fallback
Published2019-12-23 03:15:11 UTC
Updated2026-08-17 14:50:49 UTC
DescriptionIn 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.

Risk And Classification

Primary CVSS: v3.1 5.9 MEDIUM from [email protected]

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

EPSS: 0.088180000 probability, percentile 0.947330000 (date 2026-08-17)

Problem Types: CWE-170 | CWE-74 | CWE-170 CWE-170 Improper Null Termination


VersionSourceTypeScoreSeverityVector
3.1[email protected]Primary5.9MEDIUMCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
3.1[email protected]Secondary3.7LOWCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
3.1CNADECLARED3.7LOWCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
2.0[email protected]Primary4.3AV:N/AC:M/Au:N/C:P/I:N/A:N

CVSS v3.1 Breakdown

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

CVSS v2.0 Breakdown

Access Vector
Network
Access Complexity
Medium
Authentication
None
Confidentiality
Partial
Integrity
None
Availability
None

AV:N/AC:M/Au:N/C:P/I:N/A:N

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Canonical Ubuntu Linux 12.04 All All All
Operating System Canonical Ubuntu Linux 14.04 All All All
Operating System Canonical Ubuntu Linux 16.04 All All All
Operating System Canonical Ubuntu Linux 18.04 All All All
Operating System Canonical Ubuntu Linux 19.04 All All All
Operating System Canonical Ubuntu Linux 19.10 All All All
Operating System Debian Debian Linux 10.0 All All All
Operating System Debian Debian Linux 8.0 All All All
Operating System Debian Debian Linux 9.0 All All All
Operating System Fedoraproject Fedora 30 All All All
Operating System Fedoraproject Fedora 31 All All All
Operating System Opensuse Leap 15.1 All All All
Application Php Php 7.4.0 All All All
Application Php Php All All All All
Application Php Php All All All All
Application Tenable Security Center All All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA PHP Group PHP affected 7.2.x 7.2.26 custom Not specified
CNA PHP Group PHP affected 7.3.x 7.3.13 custom Not specified
CNA PHP Group PHP affected 7.4.x 7.4.1 custom Not specified

References

ReferenceSourceLinkTags
PHP :: Sec Bug #78863 :: DirectoryIterator class silently truncates after a null byte af854a3a-2127-422b-91ae-364da2661108 bugs.php.net Exploit, Mailing List, Patch, Vendor Advisory
[security-announce] openSUSE-SU-2020:0080-1: moderate: Security update f af854a3a-2127-422b-91ae-364da2661108 lists.opensuse.org Mailing List, Third Party Advisory
Bugtraq: [SECURITY] [DSA 4626-1] php7.3 security update af854a3a-2127-422b-91ae-364da2661108 seclists.org Mailing List, Third Party Advisory
[R1] Tenable.sc 5.19.0 Fixes Multiple Third-party Vulnerabilities - Security Advisory | Tenable® af854a3a-2127-422b-91ae-364da2661108 www.tenable.com Third Party Advisory
USN-4239-1: PHP vulnerabilities | Ubuntu security notices | Ubuntu af854a3a-2127-422b-91ae-364da2661108 usn.ubuntu.com Third Party Advisory
[SECURITY] Fedora 30 Update: php-7.3.13-1.fc30 - package-announce - Fedora Mailing-Lists af854a3a-2127-422b-91ae-364da2661108 lists.fedoraproject.org
December 2019 PHP Vulnerabilities in NetApp Products | NetApp Product Security af854a3a-2127-422b-91ae-364da2661108 security.netapp.com Third Party Advisory
[SECURITY] Fedora 31 Update: php-7.3.13-1.fc31 - package-announce - Fedora Mailing-Lists af854a3a-2127-422b-91ae-364da2661108 lists.fedoraproject.org
[SECURITY] [DLA 2050-1] php5 security update af854a3a-2127-422b-91ae-364da2661108 lists.debian.org Mailing List, Third Party Advisory
Bugtraq: [SECURITY] [DSA 4628-1] php7.0 security update af854a3a-2127-422b-91ae-364da2661108 seclists.org Mailing List, Third Party Advisory
Debian -- Security Information -- DSA-4628-1 php7.0 af854a3a-2127-422b-91ae-364da2661108 www.debian.org Third Party Advisory
Debian -- Security Information -- DSA-4626-1 php7.3 af854a3a-2127-422b-91ae-364da2661108 www.debian.org Third Party Advisory
Bugtraq: Re: [SECURITY] [DSA 4628-1] php7.0 security update af854a3a-2127-422b-91ae-364da2661108 seclists.org Mailing List, Third Party Advisory
[SECURITY] Fedora 30 Update: php-7.3.13-1.fc30 - package-announce - Fedora Mailing-Lists MITRE lists.fedoraproject.org
[SECURITY] Fedora 31 Update: php-7.3.13-1.fc31 - package-announce - Fedora Mailing-Lists MITRE lists.fedoraproject.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Vendor Comments And Credit

Discovery Credit

CNA: Submitted by ryat at php.net (en)

Legacy QID Mappings

  • 296076 Oracle Solaris 11.4 Support Repository Update (SRU) 19.3.0 Missing (CPUJAN2020)
  • 501134 Alpine Linux Security Update for php7
  • 752878 SUSE Enterprise Linux Security Update for php7 (SUSE-SU-2022:4067-1)
  • 940250 AlmaLinux Security Update for php:7.3 (ALSA-2020:3662)
  • 960421 Rocky Linux Security Update for php:7.3 (RLSA-2020:3662)

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report