--- title: "CVE-2019-6977: gdImageColorMatch in gd_color_match.c… | CubePath" 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…" language: en source: https://cubepath.com/security/cve/CVE-2019-6977 --- # CVE-2019-6977: gdImageColorMatch in gd_color_match.c… | CubePath ## 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. Official description from the CVE record, published by mitre. Copyright © 1999-2026 The MITRE Corporation. See [/security/cve/legal](https://cubepath.com/security/cve/legal) for the CVE license. [View the record on cve.org](https://www.cve.org/CVERecord?id=CVE-2019-6977) ## Key data ### EPSS Exploit Prediction Scoring System by FIRST: an estimate of the probability that exploitation activity will be observed in the next 30 days. Score 0.71496 (71.5% probability) Percentile 99.4% Scores of Nov 10, 2026 Model v2026.06.15 ## References Links listed in the CVE record. They lead to other sites, which CubePath does not control. - [106731](http://www.securityfocus.com/bid/106731) (securityfocus.com) vdb-entry - [security.netapp.com/advisory/ntap-20190315-0003](https://security.netapp.com/advisory/ntap-20190315-0003/) - [php.net/ChangeLog-5.php](http://php.net/ChangeLog-5.php) - [php.net/ChangeLog-7.php](http://php.net/ChangeLog-7.php) - [USN-3900-1](https://usn.ubuntu.com/3900-1/) (usn.ubuntu.com) vendor-advisory - [\[debian-lts-announce\] 20190130 \[SECURITY\] \[DLA 1651-1\] libgd2 security update](https://lists.debian.org/debian-lts-announce/2019/01/msg00028.html) (lists.debian.org) mailing-list - [bugs.php.net/bug.php?id=77270](https://bugs.php.net/bug.php?id=77270) - [DSA-4384](https://www.debian.org/security/2019/dsa-4384) (debian.org) vendor-advisory - [GLSA-201903-18](https://security.gentoo.org/glsa/201903-18) (security.gentoo.org) vendor-advisory - [openSUSE-SU-2019:1148](http://lists.opensuse.org/opensuse-security-announce/2019-04/msg00025.html) (lists.opensuse.org) vendor-advisory - [openSUSE-SU-2019:1140](http://lists.opensuse.org/opensuse-security-announce/2019-04/msg00031.html) (lists.opensuse.org) vendor-advisory - [46677](https://www.exploit-db.com/exploits/46677/) (exploit-db.com) exploit - [packetstormsecurity.com/files/152459/PHP-7.2-imagecolormatc…](http://packetstormsecurity.com/files/152459/PHP-7.2-imagecolormatch-Out-Of-Band-Heap-Write.html) - [RHSA-2019:2519](https://access.redhat.com/errata/RHSA-2019:2519) (access.redhat.com) vendor-advisory - [RHSA-2019:3299](https://access.redhat.com/errata/RHSA-2019:3299) (access.redhat.com) vendor-advisory - [FEDORA-2019-ab7d22a466](https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TEYUUOW75YD3DENIPYMO263E6NL2NFHI/) (lists.fedoraproject.org) vendor-advisory - [FEDORA-2019-d7f8995451](https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3WRUPZVT2MWFUEMVGTRAGDOBHLNMGK5R/) (lists.fedoraproject.org) vendor-advisory - [FEDORA-2019-7a06c0e6b4](https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TTXSLRZI5BCQT3H5KALG3DHUWUMNPDX2/) (lists.fedoraproject.org) vendor-advisory - [FEDORA-2020-e795f92d79](https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3CZ2QADQTKRHTGB2AHD7J4QQNDLBEMM6/) (lists.fedoraproject.org) vendor-advisory ## Timeline 1. ID reserved Jan 26, 2019 2. Record published Jan 27, 2019 3. Record last updated Aug 4, 2024 ## Look up another CVE ## About CubePath CubePath is a cloud provider with data centers in Europe and the United States. It offers VPS, bare metal servers and DDoS protection. [Cloud VPS](https://cubepath.com/vps) [DDoS protection](https://cubepath.com/ddos-protection) Data from the CVE Program (MITRE), CISA KEV and FIRST EPSS. CVSS is owned by FIRST and used by permission. Not affiliated with or endorsed by MITRE, CISA or FIRST. Data as of Nov 10, 2026, 20:00 UTC. [Sources and licenses](https://cubepath.com/security/cve/legal)