CVE-2019-6977
🟠 MediumLibGD gdImageColorMatch (PHP imagecolormatch) (scanner: libgd3) · LibGD 2.2.5; PHP before 5.6.40, 7.1.x before 7.1.26, 7.2.x before 7.2.14, 7.3.x before 7.3.1
CVSS (Koffei note)
–EPSS (2026-11-18)
71.496%99.43th percentile
Exploitation
Probable — public PoC
Timeline
- 27/01/2019CVE record published (CVE List)
Risk
CVSS n/d, EPSS 71.496% (Heap-based buffer overflow in gdImageColorMatch (gd_color_match.c) reachable via PHP imagecolormatch with crafted image data.)
Fix
Yes — 5.6.40 / 7.1.26 / 7.2.14 / 7.3.1 (PHP) ([advisory](https://bugs.php.net/bug.php?id=77270 ; https://www.debian.org/security/2019/dsa-4384))
Official 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.