CVE-2018-20783Out-of-bounds Read in PHP

Severity
9.8CRITICALNVD
NVD7.5CNA7.5OSV7.5
EPSS
5.1%
top 10.16%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedFeb 21
Latest updateJan 27

Description

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.

CVSS vector

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:NExploitability: 3.9 | Impact: 3.6

Affected Packages3 packages

NVDphp/php7.0.07.1.26+7
Ubuntuphp5/php5< 5.5.9+dfsg-1ubuntu4.27+1
NVDopensuse/leap42.3

Also affects: Debian Linux 9.0, Ubuntu Linux 12.04, 14.04, 16.04

🔴Vulnerability Details

7
GHSA
GHSA-gx4f-r59p-mgpx: In PHP before 52022-05-14
GHSA
GHSA-3fr9-q295-2jq3: An issue was discovered in PHP before 52022-05-14
OSV
php5 vulnerabilities2019-05-22
CVEList
CVE-2019-9021: An issue was discovered in PHP before 52019-02-22
OSV
CVE-2019-9021: An issue was discovered in PHP before 52019-02-22

📋Vendor Advisories

4
CISA ICS
Festo Didactic SE MES PC2026-01-27
Ubuntu
PHP vulnerabilities2019-05-22
Red Hat
php: Heap-based buffer over-read in PHAR reading functions2018-12-06
Red Hat
php: Buffer over-read in PHAR reading functions2018-11-12

💬Community

2
Bugzilla
CVE-2019-9021 php: Heap-based buffer over-read in PHAR reading functions2019-03-04
Bugzilla
CVE-2018-20783 php: Buffer over-read in PHAR reading functions2019-02-25