Name | CVE-2014-9709 |
Description | The GetCode_ function in gd_gif_in.c in GD 2.1.1 and earlier, as used in PHP before 5.5.21 and 5.6.x before 5.6.5, allows remote attackers to cause a denial of service (buffer over-read and application crash) via a crafted GIF image that is improperly handled by the gdImageCreateFromGif function. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DLA-189-1, DSA-3215-1 |
Debian Bugs | 835032 |
Vulnerable and fixed packages
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|
libgd2 (PTS) | jessie, jessie (lts) | 2.1.0-5+deb8u15 | fixed |
| stretch (security) | 2.2.4-2+deb9u4 | fixed |
| stretch (lts), stretch | 2.2.4-2+deb9u6 | fixed |
| buster (security), buster, buster (lts) | 2.2.5-5.2+deb10u1 | fixed |
| bullseye | 2.3.0-2 | fixed |
| bookworm | 2.3.3-9 | fixed |
| sid, trixie | 2.3.3-12 | fixed |
php5 (PTS) | jessie, jessie (lts) | 5.6.40+dfsg-0+deb8u21 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|
hhvm | source | (unstable) | 3.12.11+dfsg-1 | | | 835032 |
libgd2 | source | squeeze | 2.0.36~rc1~dfsg-5+deb6u1 | | DLA-189-1 | |
libgd2 | source | wheezy | 2.0.36~rc1~dfsg-6.1+deb7u1 | | DSA-3215-1 | |
libgd2 | source | (unstable) | 2.1.0-5 | | | |
php5 | source | (unstable) | 5.6.5+dfsg-1 | unimportant | | |
Notes
https://bugs.php.net/bug.php?id=68601
Fix in libgd2: https://bitbucket.org/libgd/gd-libgd/commits/47eb44b2e90ca88a08dca9f9a1aa9041e9587f43
Also related: https://bitbucket.org/libgd/gd-libgd/commits/81e9a993f2893d651d225646378e3fd1b7465467
https://git.php.net/?p=php-src.git;a=commitdiff;h=07b5896a1389c3e865cbd2fb353806b2cefe4f5c
https://git.php.net/?p=php-src.git;a=commitdiff;h=5fc2fede9c7c963c950d8b96dcc0f7af88b4d695
Starting with 5.4.0-1 Debian uses the system copy of libgd, the embedded copy was fixed upstream in 5.6.5
Fix in HHVM: https://github.com/facebook/hhvm/commit/469990b43c294692493f15f8400560fe5d966a02