CVE-2016-8670

NameCVE-2016-8670
DescriptionInteger signedness error in the dynamicGetbuf function in gd_io_dp.c in the GD Graphics Library (aka libgd) through 2.2.3, as used in PHP before 5.6.28 and 7.x before 7.0.13, allows remote attackers to cause a denial of service (stack-based buffer overflow) or possibly have unspecified other impact via a crafted imagecreatefromstring call.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-665-1, DSA-3693-1
Debian Bugs840805

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
libgd2 (PTS)jessie, jessie (lts)2.1.0-5+deb8u15fixed
stretch (security)2.2.4-2+deb9u4fixed
stretch (lts), stretch2.2.4-2+deb9u6fixed
buster (security), buster, buster (lts)2.2.5-5.2+deb10u1fixed
bullseye2.3.0-2fixed
bookworm2.3.3-9fixed
sid, trixie2.3.3-12fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
libgd2sourcewheezy2.0.36~rc1~dfsg-6.1+deb7u6DLA-665-1
libgd2sourcejessie2.1.0-5+deb8u7DSA-3693-1
libgd2source(unstable)2.2.3-87-gd0fec80-1840805

Notes

PHP Bug: https://bugs.php.net/bug.php?id=73280
https://github.com/libgd/libgd/commit/53110871935244816bbb9d131da0bccff734bfe9
https://www.openwall.com/lists/oss-security/2016/10/15/1

Search for package or bug name: Reporting problems