CVE-2019-6977: gdImageColorMatch in gd_color_match.c in the GD Graphics Library (aka LibGD) 2.2.5, as used in the imagecolorm
66
This week
HIGH 8.8WATCHLISTDOWNGRADEUPGRADEMITIGATE
CVE-2019-6977 is a high-severity flaw (CVSS 8.8) affecting libgd, php, debian linux. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Verify at the official sourceNVD · CVE Program · Report a problem with this page Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2019-6977?
libgd: downgrade or apply the listed mitigation; php: upgrade to 5.6.40, 7.1.26, 7.2.14; debian linux: mitigate or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2019-6977 being exploited?
CVE-2019-6977 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2019-6977 affect?
CVE-2019-6977 affects libgd, php, debian linux. Severity is high (CVSS 8.8). 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 overfl
How urgent is CVE-2019-6977?
Priority 66/100. High severity; EPSS top 1%: very likely to be exploited; Public exploit reference; On your watchlist
CVE-2021-40812MEDIUM 6.5UPGRADE The GD Graphics Library (aka LibGD) through 2.3.2 has an out-of-bounds read because of the lack of certain gdG
CVE-2021-40145HIGH 7.5UPGRADE gdImageGd2Ptr in gd_gd2.c in the GD Graphics Library (aka LibGD) through 2.3.2 has a double free
CVE-2021-38115MEDIUM 6.5UPGRADE read_header_tga in gd_tga.c in the GD Graphics Library (aka LibGD) through 2.3.2 allows remote attackers to ca
CVE-2019-6978CRITICAL 9.8DOWNGRADEMITIGATE The GD Graphics Library (aka LibGD) 2.2.5 has a double free in the gdImage*Ptr() functions in gd_gif_out.c, gd
CVE-2019-11038MEDIUM 5.3DOWNGRADEUPGRADE When using the gdImageCreateFromXbm() function in the GD Graphics Library (aka LibGD) 2.2.5, as used in the PH