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 over last 30 days · oldest: 0.621 · newest: 0.715 · change: +0.094
Affected products
- Libgd — versions 2.2.5
- NetApp Storage Automation Store
- PHP — versions 7.3.0
- Canonical Ubuntu Linux — versions 14.04, 16.04, 18.04
- Debian Linux — versions 8.0, 9.0
Weakness classification (CWE)
Public proof-of-concept exploits
References
- www.securityfocus.com/bid/106731 (VDB Entry, Third Party Advisory, vdb-entry)
- security.netapp.com/advisory/ntap-20190315-0003/ (Patch, Third Party Advisory)
- php.net/ChangeLog-5.php (Release Notes, Vendor Advisory)
- php.net/ChangeLog-7.php (Release Notes, Vendor Advisory)
- usn.ubuntu.com/3900-1/ (vendor-advisory, Third Party Advisory)
- lists.debian.org/debian-lts-announce/2019/01/msg00028.html (mailing-list, Mailing List, Third Party Advisory)
- bugs.php.net/bug.php (Exploit, Mailing List, Issue Tracking, Vendor Advisory)
- www.debian.org/security/2019/dsa-4384 (vendor-advisory, Third Party Advisory)
- security.gentoo.org/glsa/201903-18 (vendor-advisory, Third Party Advisory)
- lists.opensuse.org/opensuse-security-announce/2019-04/msg00025.html (vendor-advisory)
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.