CVE-2019-6977
High
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.
SeverityHigh
CVSS8.8
Exploit probability—
Product
Libgd
PublishedJan 27, 2019
First seenJan 27, 2019
How to fix
Update
- php php5.6.40, 7.1.26, 7.2.14 or later
Vendor advisories
- usn.ubuntu.com/3900-1/
- debian.org/security/2019/dsa-4384
- security.gentoo.org/glsa/201903-18
- access.redhat.com/errata/RHSA-2019:2519
- access.redhat.com/errata/RHSA-2019:3299
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TEYUUOW75YD3DENIPYMO263E6NL2NFHI/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3WRUPZVT2MWFUEMVGTRAGDOBHLNMGK5R/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TTXSLRZI5BCQT3H5KALG3DHUWUMNPDX2/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3CZ2QADQTKRHTGB2AHD7J4QQNDLBEMM6/
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| libgd libgd | 2.2.5 | — |
| php php | v < 5.6.40, 7.0.0 ≤ v < 7.1.26, 7.2.0 ≤ v < 7.2.14, 7.3.0 | 5.6.40, 7.1.26, 7.2.14 |
| debian debian_linux | 8.0, 9.0 | — |
| canonical ubuntu_linux | 14.04, 16.04, 18.04, 18.10 | — |
| netapp storage_automation_store | No range specified | — |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
In the Intelligence 360 plan
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.