CVE-2019-11045
DirectoryIterator class silently truncates after a null byte
Reported by php · Published December 23, 2019
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| php7 | Alpine | 7.3.13-r0, 7.2.26-r0 |
| security_center | tenable | 5.19.0 |
| php7.0 | Ubuntu:16.04:LTS | 7.0.33-0ubuntu0.16.04.9 |
| securitycenter | tenable | 5.19.0 |
| php7.2 | Ubuntu:18.04:LTS | 7.2.24-0ubuntu0.18.04.2 |
| php5 | Ubuntu:Pro:14.04:LTS | 5.5.9+dfsg-1ubuntu4.29+esm8 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| PHP Group | PHP | 7.2.x, 7.3.x, 7.4.x |
| alpine | php7 | 0, 0 |
| PHP Group | PHP | 7.2.x, 7.3.x, 7.4.x |
Timeline
- Dec 23, 2019 CVE Published
- Nov 9, 2020 PoC Published (6 in total, the first dated here)
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Mar 6, 2026 Distribution Patch (3 in total, the first dated here)
- Mar 6, 2026 Security Advisory (6 in total, the first dated here)
- Sep 16, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2019-11045
vulnetix vdb fixes CVE-2019-11045
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2019-11045/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- [debian-lts-announce] 20191229 [SECURITY] [DLA 2050-1] php5 security update mailing-listx_refsource_MLIST
- x_refsource_CONFIRM
- FEDORA-2019-437d94e271 vendor-advisoryx_refsource_FEDORA
- FEDORA-2019-a54a622670 vendor-advisoryx_refsource_FEDORA
- USN-4239-1 vendor-advisoryx_refsource_UBUNTU
- openSUSE-SU-2020:0080 vendor-advisoryx_refsource_SUSE
- 20200218 [SECURITY] [DSA 4626-1] php7.3 security update mailing-listx_refsource_BUGTRAQ
- DSA-4626 vendor-advisoryx_refsource_DEBIAN
- DSA-4628 vendor-advisoryx_refsource_DEBIAN
- 20200219 [SECURITY] [DSA 4628-1] php7.0 security update mailing-listx_refsource_BUGTRAQ
- 20210116 Re: [SECURITY] [DSA 4628-1] php7.0 security update mailing-listx_refsource_BUGTRAQ
- x_refsource_CONFIRM