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 overf…

Vulnerability class: Buffer Overflow

EPSS: 0.643 (99.1th percentile) — read the EPSS interpretation.

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.

Affected products

Weakness classification (CWE)

Public proof-of-concept exploits

References

  • cve@mitre.org (VDB Entry, Third Party Advisory, vdb-entry, x_refsource_BID)
  • cve@mitre.org (x_refsource_CONFIRM, Patch, Third Party Advisory)
  • cve@mitre.org (x_refsource_MISC, Release Notes, Vendor Advisory)
  • cve@mitre.org (x_refsource_MISC, Release Notes, Vendor Advisory)
  • cve@mitre.org (x_refsource_UBUNTU, vendor-advisory, Third Party Advisory)
  • cve@mitre.org (mailing-list, x_refsource_MLIST, Mailing List, Third Party Advisory)
  • cve@mitre.org (Exploit, Mailing List, x_refsource_MISC, Issue Tracking, Vendor Advisory)
  • cve@mitre.org (vendor-advisory, Third Party Advisory, x_refsource_DEBIAN)
  • cve@mitre.org (vendor-advisory, Third Party Advisory, x_refsource_GENTOO)
  • cve@mitre.org (vendor-advisory, x_refsource_SUSE)

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?
9 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.