Skip to content

CVE-2017-7890 The GIF decoding function gdImageCreateFromGifCtx in gd_gif_in.c in the GD Graphics Library (aka libgd), as used in PHP before 5.6.31 and 7.x before 7.1.7, does not zero colorMap arrays before use. A....

MediumCVSS 6.5 EPSS 3.4%
Published
Updated
Exploit status
No public exploit known

Description

The GIF decoding function gdImageCreateFromGifCtx in gd_gif_in.c in the GD Graphics Library (aka libgd), as used in PHP before 5.6.31 and 7.x before 7.1.7, does not zero colorMap arrays before use. A specially crafted GIF image could use the uninitialized tables to read ~700 bytes from the top of the stack, potentially disclosing sensitive information.

Affected products

ProductAffected versionsFixed in
debian/libgd2(Debian:12) < 2.2.5-1 2.2.5-1
debian/libgd2(Debian:13) < 2.2.5-1 2.2.5-1
debian/libgd2(Debian:14) < 2.2.5-1 2.2.5-1
PHP <= 5.6.30 No fix listed
PHP = 7.0.0 No fix listed
PHP = 7.0.1 No fix listed
PHP = 7.0.2 No fix listed
PHP = 7.0.3 No fix listed
PHP = 7.0.4 No fix listed
PHP = 7.0.5 No fix listed
PHP = 7.0.6 No fix listed
PHP = 7.0.7 No fix listed
PHP = 7.0.8 No fix listed
PHP = 7.0.9 No fix listed
PHP = 7.0.10 No fix listed
PHP = 7.0.11 No fix listed
PHP = 7.0.12 No fix listed
PHP = 7.0.13 No fix listed
PHP = 7.0.14 No fix listed
PHP = 7.0.15 No fix listed
PHP = 7.0.16 No fix listed
PHP = 7.0.17 No fix listed
PHP = 7.0.18 No fix listed
PHP = 7.0.19 No fix listed
PHP = 7.0.20 No fix listed
Show 11 more
ProductAffected versionsFixed in
PHP = 7.1.0 No fix listed
PHP = 7.1.1 No fix listed
PHP = 7.1.2 No fix listed
PHP = 7.1.3 No fix listed
PHP = 7.1.4 No fix listed
PHP = 7.1.5 No fix listed
PHP = 7.1.6 No fix listed
alpine/gd(Alpine:v3.4) < 2.2.5-r0 2.2.5-r0
alpine/gd(Alpine:v3.5) < 2.2.5-r0 2.2.5-r0
alpine/gd(Alpine:v3.6) < 2.2.5-r0 2.2.5-r0
alpine/php7(Alpine:v3.7) < 7.1.7-r0 7.1.7-r0

References