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.
Conclusion & alert: CVE-2019-6977 is rated High Exploit Risk (86.6/100): CVSS High severity, with high exploitation likelihood (EPSS 87.88%, 99th percentile). Core evidence: 2 public exploit reference(s) are indexed (Exploit-DB). EPSS rose +1.58% over the last day, indicating growing attacker interest. Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
| EDB-ID | Source | Kind | Published | Link |
|---|---|---|---|---|
| 46677 | exploit_db | edb | 2019-02-27 | Exploit-DB ↗ |
| — | nvd_ref | exploit_tag | Exploit-DB ↗ |
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-05-13 | 86.30% | 87.88% | +1.58% |
| 2 | 2026-03-18 | 87.33% | 86.30% | -1.03% |
| 3 | 2026-03-04 | — | 87.33% | — |
Full EPSS history (51 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 8.8 | 3.0 | HIGH |
|
2.8 | 5.9 | [email protected] |
| 6.8 | 2.0 | MEDIUM |
|
8.6 | 6.4 | [email protected] |
| vendor | priority | summary | link |
|---|---|---|---|
alpine
|
high | CVE-2019-6977: 1 source package rows (gd); 10 state rows across 10 repos (3.10-main, 3.11-main, 3.12-main, 3.17-main, 3.18-main, 3.19-main, 3.20-main, 3.21-main, 3.22-main, edge-main); fixed 10, open 0. | https://security.alpinelinux.org/vuln/CVE-2019-6977 |
debian
|
not yet assigned | CVE-2019-6977 not yet assigned priority: Debian including 1 source packages (libgd2), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. | https://security-tracker.debian.org/tracker/CVE-2019-6977 |
gentoo
|
normal | CVE-2019-6977: 1 GLSA(s) (201903-18), 1 atom(s) (media-libs/gd); latest impact normal. | https://bugs.gentoo.org/buglist.cgi?quicksearch=CVE-2019-6977 |
redhat
|
medium | — | https://access.redhat.com/security/cve/CVE-2019-6977 |
suse
|
medium | — | https://www.suse.com/security/cve/CVE-2019-6977/ |
ubuntu
|
medium | CVE-2019-6977 medium priority: Ubuntu including 5 source packages (libgd2, php5, php7.0, php7.2, php7.3), 25 status rows across 5 suites (bionic, cosmic, trusty, upstream, xenial): DNE 12, needs-triage 5, not-affected 4, released 4. | https://ubuntu.com/security/CVE-2019-6977 |
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| libgd | libgd | 2.2.5 | cpe:2.3:a:libgd:libgd:2.2.5:*:*:*:*:*:*:* |
| php | php | < 5.6.40 | cpe:2.3:a:php:php:*:*:*:*:*:*:*:* |
| php | php | >= 7.0.0, < 7.1.26 | cpe:2.3:a:php:php:*:*:*:*:*:*:*:* |
| php | php | >= 7.2.0, < 7.2.14 | cpe:2.3:a:php:php:*:*:*:*:*:*:*:* |
| php | php | 7.3.0 | cpe:2.3:a:php:php:7.3.0:*:*:*:*:*:*:* |
| debian | debian_linux | 8.0 | cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* |
| debian | debian_linux | 9.0 | cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* |
| canonical | ubuntu_linux | 14.04 | cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:* |
| canonical | ubuntu_linux | 16.04 | cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:* |
| canonical | ubuntu_linux | 18.04 | cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:* |
| canonical | ubuntu_linux | 18.10 | cpe:2.3:o:canonical:ubuntu_linux:18.10:*:*:*:*:*:*:* |
| netapp | storage_automation_store | — | cpe:2.3:a:netapp:storage_automation_store:*:*:*:*:*:*:*:* |