CVE-2018-20783
Reported by mitre · Published February 21, 2019
In PHP before 5.6.39, 7.x before 7.0.33, 7.1.x before 7.1.25, and 7.2.x before 7.2.13, a buffer over-read in PHAR reading functions may allow an attacker to read allocated or unallocated memory past the actual data when trying to parse a .phar file. This is related to phar_parse_pharfile in ext/phar/phar.c.
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.2.13-r0, 7.1.29-r0 |
| php | php | 7.2.13, 7.1.25, 7.0.33, 5.6.39 |
| php5 | Ubuntu:Pro:14.04:LTS | 5.5.9+dfsg-1ubuntu4.29+esm2 |
| php7.0 | Ubuntu:16.04:LTS | 7.0.33-0ubuntu0.16.04.1 |
| php7.2 | Ubuntu:18.04:LTS | 7.2.15-0ubuntu0.18.04.1 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| alpine | php7 | 0, 0 |
| n/a | n/a | * |
Timeline
- Feb 21, 2019 CVE Published
- Oct 10, 2020 PoC Published
- 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 (10 in total, the first dated here)
- Sep 21, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2018-20783
vulnetix vdb fixes CVE-2018-20783
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-2018-20783/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- openSUSE-SU-2019:1256 vendor-advisoryx_refsource_SUSE
- openSUSE-SU-2019:1293 vendor-advisoryx_refsource_SUSE
- USN-3566-2 vendor-advisoryx_refsource_UBUNTU
- openSUSE-SU-2019:1572 vendor-advisoryx_refsource_SUSE
- openSUSE-SU-2019:1573 vendor-advisoryx_refsource_SUSE
- RHSA-2019:2519 vendor-advisoryx_refsource_REDHAT
- RHSA-2019:3299 vendor-advisoryx_refsource_REDHAT