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

Exp

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.

Published: 2019-12-23 Last update: 2024-11-21 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2019-11045 is rated High Exploit Risk (64.4/100): CVSS Low severity, with high exploitation likelihood (EPSS 41.48%, 97th percentile). Core evidence: 1 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Public exploit references (Exploit-DB) for CVE-2019-11045

EDB-ID Source Kind Published Link
nvd_ref exploit_tag Exploit-DB ↗

Exploit prediction scoring system (EPSS) score for CVE-2019-11045

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-03-25 40.95% 41.48% +0.53%
2 2026-03-04 45.94% 40.95% -4.99%
3 2026-03-01 45.94%

Full EPSS history (59 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2019-11045

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
3.7 3.1 LOW
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:H)
Even with access, the exploit needs extra luck, timing, or a fussy environment to actually work.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:L)
Some sensitive info could get out, but not a total data dump.
Integrity (I:N)
Data isn’t meaningfully altered or forged.
Availability (A:N)
Service keeps running; no real outage angle.
2.2 1.4 [email protected]
5.9 3.1 MEDIUM
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:H)
Even with access, the exploit needs extra luck, timing, or a fussy environment to actually work.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:N)
Data isn’t meaningfully altered or forged.
Availability (A:N)
Service keeps running; no real outage angle.
2.2 3.6 [email protected]
4.3 2.0 MEDIUM
AV:N/AC:M/Au:N/C:P/I:N/A:N Click to expand
Access vector (AV:N)
Can be exploited remotely over network reachability.
Access complexity (AC:M)
Exploitation needs some favorable conditions, but not exceptional ones.
Authentication (AU:N)
No authentication is required.
Confidentiality impact (C:P)
Partial confidentiality impact.
Integrity impact (I:N)
No integrity impact.
Availability impact (A:N)
No availability impact.
8.6 2.9 [email protected]

Weakness enumeration for CVE-2019-11045

OS Trackers for CVE-2019-11045

vendor priority summary link
alpine medium CVE-2019-11045: 1 source package rows (php7); 1 state rows across 1 repos (edge-community); fixed 1, open 0. https://security.alpinelinux.org/vuln/CVE-2019-11045
redhat medium https://access.redhat.com/security/cve/CVE-2019-11045
suse medium CVE-2019-11045 severity moderate: SUSE including 848 source package names (apache2-mod_php5, apache2-mod_php5-5.2.14-111.62.1, …), 1992 product×package rows across 63 product lines (SLES for SAP Applications 11 SP2, SLES for SAP Applications 11 SP3, … (63 product lines)): Fixed 1400, Known Not Affected 592. https://www.suse.com/security/cve/CVE-2019-11045/
ubuntu low CVE-2019-11045 low priority: Ubuntu including 4 source packages (php5, php7.0, php7.2, php7.3), 24 status rows across 6 suites (bionic, disco, eoan, trusty, upstream, xenial): DNE 15, released 7, needs-triage 2. https://ubuntu.com/security/CVE-2019-11045

Affected software / configurations for CVE-2019-11045

Vendor Product Version Raw CPE
php php >= 7.2.0, <= 7.2.26 cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
php php >= 7.3.0, <= 7.3.13 cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
php php 7.4.0 cpe:2.3:a:php:php:7.4.0:*:*:*:*:*:*:*
fedoraproject fedora 30 cpe:2.3:o:fedoraproject:fedora:30:*:*:*:*:*:*:*
fedoraproject fedora 31 cpe:2.3:o:fedoraproject:fedora:31:*:*:*:*:*:*:*
debian debian_linux 8.0 cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*
debian debian_linux 9.0 cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
debian debian_linux 10.0 cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*
opensuse leap 15.1 cpe:2.3:o:opensuse:leap:15.1:*:*:*:*:*:*:*
canonical ubuntu_linux 12.04 cpe:2.3:o:canonical:ubuntu_linux:12.04:*:*:*:-:*:*:*
canonical ubuntu_linux 14.04 cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:esm:*:*:*
canonical ubuntu_linux 16.04 cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:esm:*:*:*
canonical ubuntu_linux 18.04 cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*
canonical ubuntu_linux 19.04 cpe:2.3:o:canonical:ubuntu_linux:19.04:*:*:*:*:*:*:*
canonical ubuntu_linux 19.10 cpe:2.3:o:canonical:ubuntu_linux:19.10:*:*:*:*:*:*:*
tenable securitycenter < 5.19.0 cpe:2.3:a:tenable:securitycenter:*:*:*:*:*:*:*:*

References for CVE-2019-11045

URL Tags
http://lists.opensuse.org/opensuse-security-announce/2020-01/msg00036.html Mailing List Third Party Advisory
https://bugs.php.net/bug.php?id=78863 Exploit Mailing List Patch Vendor Advisory
https://lists.debian.org/debian-lts-announce/2019/12/msg00034.html Mailing List Third Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/N7GCOAE6KVHYJ3UQ4KLPLTGSLX6IRVRN/
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XWRQPYXVG43Q7DXMXH6UVWMKWGUW552F/
https://seclists.org/bugtraq/2020/Feb/27 Mailing List Third Party Advisory
https://seclists.org/bugtraq/2020/Feb/31 Mailing List Third Party Advisory
https://seclists.org/bugtraq/2021/Jan/3 Mailing List Third Party Advisory
https://security.netapp.com/advisory/ntap-20200103-0002/ Third Party Advisory
https://usn.ubuntu.com/4239-1/ Third Party Advisory
https://www.debian.org/security/2020/dsa-4626 Third Party Advisory
https://www.debian.org/security/2020/dsa-4628 Third Party Advisory
https://www.tenable.com/security/tns-2021-14 Third Party Advisory
cvelogic Threat Intelligence