FreeBSD VuXML: Documenting security issues in FreeBSD and the FreeBSD Ports Collection

php-gd and gd -- Buffer over-read into uninitialized memory

Affected packages
libgd < 2.2.5
php70-gd < 7.0.21
php71-gd < 7.1.7


VuXML ID 5033e2fc-98ec-4ef5-8e0b-87cfbbc73081
Discovery 2017-08-02
Entry 2017-09-26

PHP developers report:

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.


CVE Name CVE-2017-7890