CVE-2016-8670

Publication date 14 October 2016

Last updated 25 August 2025


Ubuntu priority

Cvss 3 Severity Score

9.8 · Critical

Score breakdown

Description

Integer 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.

Read the notes from the security team

Status

Package Ubuntu Release Status
php5 16.10 yakkety Not in release
16.04 LTS xenial Not in release
14.04 LTS trusty
Not affected
12.04 LTS precise
Not affected
libgd2 16.10 yakkety
Fixed 2.2.1-1ubuntu3.2
16.04 LTS xenial
Fixed 2.1.1-4ubuntu0.16.04.5
14.04 LTS trusty
Fixed 2.1.0-3ubuntu0.5
12.04 LTS precise
Fixed 2.0.36~rc1~dfsg-6ubuntu2.3
php7.0 16.10 yakkety
Not affected
16.04 LTS xenial
Not affected
14.04 LTS trusty Not in release
12.04 LTS precise Not in release

Notes


mdeslaur

php uses the system libgd2 0019-Patch-for-security-bug-https-bugs.php.net-bug.php-id.patch in Debian jessie update.

Patch details

For informational purposes only. We recommend not to cherry-pick updates. How can I get the fixes?

Package Patch details
libgd2

Severity score breakdown

CVSS version: CVSS v3.0

Base score 9.8 · Critical

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

References

Related Ubuntu Security Notices (USN)

    • USN-3117-1
    • GD library vulnerabilities
    • 1 November 2016

Other references


Access our resources on patching vulnerabilities