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 befo...
HighCVSS 8.8
EPSS 71.5%
Public exploit
- Published
- Updated
- Exploit status
- Public exploit available
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.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/libgd2(Debian:12) | < 2.2.5-5.1 | 2.2.5-5.1 |
| debian/libgd2(Debian:13) | < 2.2.5-5.1 | 2.2.5-5.1 |
| debian/libgd2(Debian:14) | < 2.2.5-5.1 | 2.2.5-5.1 |
| libgd | = 2.2.5 | No fix listed |
| PHP | < 5.6.40 | 5.6.40 |
| PHP | >= 7.0.0, < 7.1.26 | 7.1.26 |
| PHP | >= 7.2.0, < 7.2.14 | 7.2.14 |
| PHP | = 7.3.0 | No fix listed |
| debian linux | = 8.0 | No fix listed |
| debian linux | = 9.0 | No fix listed |
| Canonical Ubuntu Linux | = 14.04 | No fix listed |
| Canonical Ubuntu Linux | = 16.04 | No fix listed |
| Canonical Ubuntu Linux | = 18.04 | No fix listed |
| Canonical Ubuntu Linux | = 18.10 | No fix listed |
| netapp storage automation store | All versions | No fix listed |
| alpine/gd(Alpine:v3.10) | < 2.2.5-r2 | 2.2.5-r2 |
| alpine/gd(Alpine:v3.11) | < 2.2.5-r2 | 2.2.5-r2 |
| alpine/gd(Alpine:v3.12) | < 2.2.5-r2 | 2.2.5-r2 |
| alpine/gd(Alpine:v3.13) | < 2.2.5-r2 | 2.2.5-r2 |
| alpine/gd(Alpine:v3.14) | < 2.2.5-r2 | 2.2.5-r2 |
| alpine/gd(Alpine:v3.15) | < 2.2.5-r2 | 2.2.5-r2 |
| alpine/gd(Alpine:v3.16) | < 2.2.5-r2 | 2.2.5-r2 |
| alpine/gd(Alpine:v3.17) | < 2.2.5-r2 | 2.2.5-r2 |
| alpine/gd(Alpine:v3.18) | < 2.2.5-r2 | 2.2.5-r2 |
| alpine/gd(Alpine:v3.19) | < 2.2.5-r2 | 2.2.5-r2 |
Show 10 more
| Product | Affected versions | Fixed in |
|---|---|---|
| alpine/gd(Alpine:v3.20) | < 2.2.5-r2 | 2.2.5-r2 |
| alpine/gd(Alpine:v3.21) | < 2.2.5-r2 | 2.2.5-r2 |
| alpine/gd(Alpine:v3.22) | < 2.2.5-r2 | 2.2.5-r2 |
| alpine/gd(Alpine:v3.23) | < 2.2.5-r2 | 2.2.5-r2 |
| alpine/gd(Alpine:v3.24) | < 2.2.5-r2 | 2.2.5-r2 |
| alpine/gd(Alpine:v3.6) | < 2.2.5-r2 | 2.2.5-r2 |
| alpine/gd(Alpine:v3.7) | < 2.2.5-r2 | 2.2.5-r2 |
| alpine/gd(Alpine:v3.8) | < 2.2.5-r2 | 2.2.5-r2 |
| alpine/gd(Alpine:v3.9) | < 2.2.5-r2 | 2.2.5-r2 |
| alpine/php7(Alpine:v3.7) | < 7.1.29-r0 | 7.1.29-r0 |
References
- Debian Security Tracker CVE-2019-6977 vendor-advisory
- bugs.debian.org issue-tracking
- openSUSE-SU-2019:1148 vendor-advisory
- openSUSE-SU-2019:1140 vendor-advisory
- packetstormsecurity.com
- php.net release-notes vendor-advisory
- php.net release-notes vendor-advisory
- 106731 third-party-advisory vdb-entry
- RHSA-2019:2519 vendor-advisory
- RHSA-2019:3299 vendor-advisory
- bugs.php.net exploit issue-tracking mailing-list vendor-advisory
- [debian-lts-announce] 20190130 [SECURITY] [DLA 1651-1] libgd2 security update mailing-list third-party-advisory
- FEDORA-2020-e795f92d79 vendor-advisory
- FEDORA-2019-d7f8995451 vendor-advisory
- FEDORA-2019-ab7d22a466 vendor-advisory
- FEDORA-2019-7a06c0e6b4 vendor-advisory
- GLSA-201903-18 third-party-advisory vendor-advisory
- security.netapp.com patch third-party-advisory
- USN-3900-1 third-party-advisory vendor-advisory
- DSA-4384 third-party-advisory vendor-advisory
- 46677 exploit
- security.alpinelinux.org vendor-advisory