CVE-2016-8670

critical
Published 2017-01-04 · Modified 2026-05-06
CVSS v3
9.8
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v2
7.5
VIR risk
9.8

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.

Predictions

Exploit likelihood
97%
Patch ETA

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

vendor Authored 2026-05-27

Vendor advisory: debian — https://security-tracker.debian.org/tracker/CVE-2016-8670

vendor Authored 2026-05-27

Vendor advisory: suse — https://www.suse.com/security/cve/CVE-2016-8670.html

vendor Authored 2026-05-27

Vendor advisory: security@debian.org — https://github.com/libgd/libgd/commit/53110871935244816bbb9d131da0bccff734bfe9

vendor Authored 2026-05-27

Vendor advisory: security@debian.org — https://bugs.php.net/bug.php?id=73280

vendor Authored 2026-05-27

Vendor advisory: security@debian.org — http://www.php.net/ChangeLog-7.php

vendor Authored 2026-05-27

Vendor advisory: security@debian.org — http://www.php.net/ChangeLog-5.php

vendor Authored 2026-05-27

Vendor advisory: arch — https://security.archlinux.org/ASA-201611-19

OS impact

OSVersionStatusFixed in
suse slesaffected
arch archfixed7.0.13-1
debian debianbookwormfixed2.2.3-87-gd0fec80-1
debian debianbullseyefixed2.2.3-87-gd0fec80-1
debian debianforkyfixed2.2.3-87-gd0fec80-1
debian debiansidfixed2.2.3-87-gd0fec80-1
debian debiantrixiefixed2.2.3-87-gd0fec80-1

Application impact

VendorProductVersionsFixed
libgdlibgd{"endIncluding":"2.2.3"}
phpphp{"endIncluding":"5.6.27"}
phpphp7.0.0
phpphp7.0.1
phpphp7.0.2
phpphp7.0.3
phpphp7.0.4
phpphp7.0.5
phpphp7.0.6
phpphp7.0.7
phpphp7.0.8
phpphp7.0.9
phpphp7.0.10
phpphp7.0.11
phpphp7.0.12

References

CWEs

CWE-119

Verify integrity in audit chain (admin only). AS-IS.