CVE-2016-8670
Summary
| CVE | CVE-2016-8670 |
|---|---|
| State | PUBLISHED |
| Assigner | debian |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2017-01-04 20:59:00 UTC |
| Updated | 2026-05-06 22:30:45 UTC |
| 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. |
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
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.0 | [email protected] | Primary | 9.8 | CRITICAL | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| 2.0 | [email protected] | Primary | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
CVSS v3.0 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
NoneUser Interaction
NoneScope
UnchangedConfidentiality
HighIntegrity
HighAvailability
HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v2.0 Breakdown
Access Vector
NetworkAccess Complexity
LowAuthentication
NoneConfidentiality
PartialIntegrity
PartialAvailability
PartialAV:N/AC:L/Au:N/C:P/I:P/A:P
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| 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
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| 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 |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.