Buffer overflow in Libgd

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 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.

Vulnerability class: Buffer Overflow

Published · last modified .

CVSS v3 metric

CVSS v3 base score 8.8 (High). Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.

EPSS exploit prediction

EPSS: 0.715 (99.4th percentile), scored .

High probability of exploitation in the next 30 days — patch promptly. 99th percentile — 99.4% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.

EPSS trend (30 days)EPSS over the last 30 days for CVE-2019-6977: rose from 0.621 to 0.715.

EPSS over last 30 days · oldest: 0.621 · newest: 0.715 · change: +0.094

Affected products

Weakness classification (CWE)

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2019-6977?
CVE-2019-6977 is a high-severity vulnerability in Libgd, classified under Out-of-bounds Write. CVSS score: 8.8/10. Published 2019-01-27.
How severe is CVE-2019-6977?
High severity. CVSS v3 base score is 8.8 out of 10.
Is CVE-2019-6977 known to be exploited?
10 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.