High severity · published Jan 27, 2019
CVE-2019-6977
gdImageColorMatch in gd_color_match.c in the GD Graphics Library (aka LibGD) 2.2.5, as used in the imagecolormatch function in PHP before 5.6.40, 7.x before 7.1.26, 7.2.x before…
8.8
CVSS
71.5%
EPSS
No
On KEV
Description
gdImageColorMatch in gd_color_match.c in the GD Graphics Library (aka LibGD) 2.2.5, as used in the imagecolormatch function in PHP before 5.6.40, 7.x before 7.1.26, 7.2.x before 7.2.14, and 7.3.x before 7.3.1, has a heap-based buffer overflow. This can be exploited by an attacker who is able to trigger imagecolormatch calls with crafted image data.
CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)71.5% · higher than 99% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
PH
PHP · PHP
before 5.6.40; 7.0.0 before 7.1.26; 7.2.0 before 7.2.14; 7.3.0 · source: NVD
DL
Debian Linux · Debian
8.0; 9.0 · source: NVD
LI
Libgd · Libgd
2.2.5 · source: NVD
SA
Storage Automation Store · Netapp
All versions, or not specified · source: NVD
UL
Ubuntu Linux · Canonical
14.04; 16.04; 18.04; 18.10 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2019-6977
CVE.org
https://www.cve.org/CVERecord?id=CVE-2019-6977
lists.opensuse.org
http://lists.opensuse.org/opensuse-security-announce/2019-04/msg00025.html
lists.opensuse.org
http://lists.opensuse.org/opensuse-security-announce/2019-04/msg00031.html
packetstormsecurity.com
http://packetstormsecurity.com/files/152459/PHP-7.2-imagecolormatch-Out-Of-Band-Heap-Write.html
Release Notes
http://php.net/ChangeLog-5.php
Release Notes
http://php.net/ChangeLog-7.php
Third Party Advisory
http://www.securityfocus.com/bid/106731
More from PHP
9.8
CVE-2026-109618
RCE via OOM corruption
9.8
CVE-2024-4577
Argument Injection in PHP-CGI
9.8
CVE-2019-11043
Underflow in PHP-FPM can lead to RCE
9.8
CVE-2016-10033
The mailSend function in the isMail transport in PHPMailer before 5.2.18 might allow remote attackers to pass extra parameters to the mail command and consequently execute…
9.8
CVE-2012-1823
PHP-CGI Query String Parameter Vulnerability
