Skip to content

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

ProductAffected versionsFixed 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
ProductAffected versionsFixed 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