Back
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…
High8.8EPSS 71.5%
- Published
- Updated
- Reserved
- Assigned by
- mitre
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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.0 | High8.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 71.5% · top 0.6% of all CVEs (4 Nov 2026)
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 8.8.
Weakness
Affected products
n/a
- affected n/a
References (19)
- 106731 (opens in a new tab)vdb-entryx_refsource_BIDx_transferred
- https://security.netapp.com/advisory/ntap-20190315-0003/ (opens in a new tab)x_refsource_CONFIRMx_transferred
- http://php.net/ChangeLog-5.php (opens in a new tab)x_refsource_MISCx_transferred
- http://php.net/ChangeLog-7.php (opens in a new tab)x_refsource_MISCx_transferred
- USN-3900-1 (opens in a new tab)vendor-advisoryx_refsource_UBUNTUx_transferred
- [debian-lts-announce] 20190130 [SECURITY] [DLA 1651-1] libgd2 security update (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- https://bugs.php.net/bug.php?id=77270 (opens in a new tab)x_refsource_MISCx_transferred
- DSA-4384 (opens in a new tab)vendor-advisoryx_refsource_DEBIANx_transferred
- GLSA-201903-18 (opens in a new tab)vendor-advisoryx_refsource_GENTOOx_transferred
- openSUSE-SU-2019:1148 (opens in a new tab)vendor-advisoryx_refsource_SUSEx_transferred
- openSUSE-SU-2019:1140 (opens in a new tab)vendor-advisoryx_refsource_SUSEx_transferred
- 46677 (opens in a new tab)exploitx_refsource_EXPLOIT-DBx_transferred
- http://packetstormsecurity.com/files/152459/PHP-7.2-imagecolormatch-Out-Of-Band-Heap-Write.html (opens in a new tab)x_refsource_MISCx_transferred
- RHSA-2019:2519 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- RHSA-2019:3299 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- FEDORA-2019-ab7d22a466 (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
- FEDORA-2019-d7f8995451 (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
- FEDORA-2019-7a06c0e6b4 (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
- FEDORA-2020-e795f92d79 (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2019-6977)Record last updated .