CVE-2016-8670

Summary

CVECVE-2016-8670
StatePUBLISHED
Assignerdebian
Source PriorityCVE Program / NVD first with legacy fallback
Published2017-01-04 20:59:00 UTC
Updated2026-05-06 22:30:45 UTC
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.

Risk And Classification

Primary CVSS: v3.0 9.8 CRITICAL from [email protected]

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

EPSS: 0.016590000 probability, percentile 0.821870000 (date 2026-05-11)

Problem Types: CWE-119 | n/a


VersionSourceTypeScoreSeverityVector
3.0[email protected]Primary9.8CRITICALCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
2.0[email protected]Primary7.5AV:N/AC:L/Au:N/C:P/I:P/A:P

CVSS v3.0 Breakdown

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

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

CVSS v2.0 Breakdown

Access Vector
Network
Access Complexity
Low
Authentication
None
Confidentiality
Partial
Integrity
Partial
Availability
Partial

AV:N/AC:L/Au:N/C:P/I:P/A:P

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Libgd Libgd All All All All
Application Php Php 7.0.0 All All All
Application Php Php 7.0.1 All All All
Application Php Php 7.0.10 All All All
Application Php Php 7.0.11 All All All
Application Php Php 7.0.12 All All All
Application Php Php 7.0.2 All All All
Application Php Php 7.0.3 All All All
Application Php Php 7.0.4 All All All
Application Php Php 7.0.5 All All All
Application Php Php 7.0.6 All All All
Application Php Php 7.0.7 All All All
Application Php Php 7.0.8 All All All
Application Php Php 7.0.9 All All All
Application Php Php All All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Na N/a affected n/a Not specified

References

ReferenceSourceLinkTags
PHP LibGD CVE-2016-8670 Stack Buffer Overflow Vulnerability af854a3a-2127-422b-91ae-364da2661108 www.securityfocus.com
myF5 af854a3a-2127-422b-91ae-364da2661108 support.f5.com
PHP: PHP 5 ChangeLog af854a3a-2127-422b-91ae-364da2661108 www.php.net Release Notes, Vendor Advisory
oss-security - CVE Request: libgd: Stack Buffer Overflow in GD dynamicGetbuf af854a3a-2127-422b-91ae-364da2661108 www.openwall.com Third Party Advisory
PHP: PHP 7 ChangeLog af854a3a-2127-422b-91ae-364da2661108 www.php.net Release Notes, Vendor Advisory
PHP :: Sec Bug #73280 :: Stack Buffer Overflow in GD dynamicGetbuf af854a3a-2127-422b-91ae-364da2661108 bugs.php.net Vendor Advisory
Debian -- Security Information -- DSA-3693-1 libgd2 af854a3a-2127-422b-91ae-364da2661108 www.debian.org
Avoid potentially dangerous signed to unsigned conversion · libgd/libgd@5311087 · GitHub af854a3a-2127-422b-91ae-364da2661108 github.com Vendor Advisory
CONFIRM:https://support.f5.com/csp/article/K21336065?utm_source=f5support&utm_medium=RSS MITRE support.f5.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report