Integer signedness error in the dynamicGetbuf function in gd_io_dp.c in the GD Graphics…
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Will not fix Red Hat: no fix planned
Attack profile from CVSS 3.0 · NVD. Fix status from CNA and Red Hat. Impact type from CWE-119 and the CVSS impact.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
CPE configurations NVD · 15
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:libgd:libgd:*:*:*:*:*:*:*:* | up to 2.2.3 | Vulnerable | Libgd |
| cpe:2.3:a:php:php:*:*:*:*:*:*:*:* | up to 5.6.27 | Running on | PHP |
| cpe:2.3:a:php:php:7.0.0:*:*:*:*:*:*:* | 7.0.0 | Running on | PHP |
| cpe:2.3:a:php:php:7.0.1:*:*:*:*:*:*:* | 7.0.1 | Running on | PHP |
| cpe:2.3:a:php:php:7.0.2:*:*:*:*:*:*:* | 7.0.2 | Running on | PHP |
| cpe:2.3:a:php:php:7.0.3:*:*:*:*:*:*:* | 7.0.3 | Running on | PHP |
| cpe:2.3:a:php:php:7.0.4:*:*:*:*:*:*:* | 7.0.4 | Running on | PHP |
| cpe:2.3:a:php:php:7.0.5:*:*:*:*:*:*:* | 7.0.5 | Running on | PHP |
| cpe:2.3:a:php:php:7.0.6:*:*:*:*:*:*:* | 7.0.6 | Running on | PHP |
| cpe:2.3:a:php:php:7.0.7:*:*:*:*:*:*:* | 7.0.7 | Running on | PHP |
- cpe:2.3:a:libgd:libgd:*:*:*:*:*:*:*:* Versions up to 2.2.3 Vulnerable ·Libgd
- cpe:2.3:a:php:php:*:*:*:*:*:*:*:* Versions up to 5.6.27 Running on ·PHP
- cpe:2.3:a:php:php:7.0.0:*:*:*:*:*:*:* Versions 7.0.0 Running on ·PHP
- cpe:2.3:a:php:php:7.0.1:*:*:*:*:*:*:* Versions 7.0.1 Running on ·PHP
- cpe:2.3:a:php:php:7.0.2:*:*:*:*:*:*:* Versions 7.0.2 Running on ·PHP
- cpe:2.3:a:php:php:7.0.3:*:*:*:*:*:*:* Versions 7.0.3 Running on ·PHP
- cpe:2.3:a:php:php:7.0.4:*:*:*:*:*:*:* Versions 7.0.4 Running on ·PHP
- cpe:2.3:a:php:php:7.0.5:*:*:*:*:*:*:* Versions 7.0.5 Running on ·PHP
- cpe:2.3:a:php:php:7.0.6:*:*:*:*:*:*:* Versions 7.0.6 Running on ·PHP
- cpe:2.3:a:php:php:7.0.7:*:*:*:*:*:*:* Versions 7.0.7 Running on ·PHP
Show 5 more CPE
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:php:php:7.0.8:*:*:*:*:*:*:* | 7.0.8 | Running on | PHP |
| cpe:2.3:a:php:php:7.0.9:*:*:*:*:*:*:* | 7.0.9 | Running on | PHP |
| cpe:2.3:a:php:php:7.0.10:*:*:*:*:*:*:* | 7.0.10 | Running on | PHP |
| cpe:2.3:a:php:php:7.0.11:*:*:*:*:*:*:* | 7.0.11 | Running on | PHP |
| cpe:2.3:a:php:php:7.0.12:*:*:*:*:*:*:* | 7.0.12 | Running on | PHP |
- cpe:2.3:a:php:php:7.0.8:*:*:*:*:*:*:* Versions 7.0.8 Running on ·PHP
- cpe:2.3:a:php:php:7.0.9:*:*:*:*:*:*:* Versions 7.0.9 Running on ·PHP
- cpe:2.3:a:php:php:7.0.10:*:*:*:*:*:*:* Versions 7.0.10 Running on ·PHP
- cpe:2.3:a:php:php:7.0.11:*:*:*:*:*:*:* Versions 7.0.11 Running on ·PHP
- cpe:2.3:a:php:php:7.0.12:*:*:*:*:*:*:* Versions 7.0.12 Running on ·PHP
Remediation
No fixed version listed by the sources yet.
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 5 | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux 6 | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux 7 | Affected | No fix planned: Will not fix |
| Red Hat OpenShift Enterprise 2 | Affected | No fix planned: Will not fix |
| Red Hat Software Collections | Affected | No fix planned: Will not fix |
Timeline
- 2026-10-02 Threatist record created from CVE-2016-8670
- 2026-10-03 Alias added: GHSA-7hrm-234x-37p5
References
Advisory 6
More Libgd vulnerabilities
- TI-2019-04913 gdImageColorMatch in gd_color_match.c in the GD Graphics Library (aka LibGD) 2.2.5, as… CVSS 3.0HIGH 8.8
- TI-2016-02573 Integer signedness error in GD Graphics Library 2.1.1 (aka libgd or libgd2) allows remote… CVSS 3.1CRITICAL 9.8
- TI-2016-08242 Integer underflow in the _gdContributionsAlloc function in gd_interpolation.c in the GD… CVSS 3.0CRITICAL 9.8
- TI-2016-06432 Integer overflow in the gdImageWebpCtx function in gd_webp.c in the GD Graphics Library… CVSS 3.0CRITICAL 9.8
- TI-2019-04914 The GD Graphics Library (aka LibGD) 2.2.5 has a double free in the gdImage*Ptr()… CVSS 3.0CRITICAL 9.8
- TI-2016-05935 Double free vulnerability in the gdImageWebPtr function in the GD Graphics Library (aka… CVSS 3.0CRITICAL 9.8
Sources
- CVE-2016-8670 · CVE Program
- CVE-2016-8670 · NVD
- FIRST EPSS
- GHSA-7hrm-234x-37p5 · GitHub Advisory Database · CC BY 4.0
- CVE-2016-8670 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences