Read the docs
TI-2016-07128 Aliases CVE-2016-8670GHSA-7hrm-234x-37p5

Integer signedness error in the dynamicGetbuf function in gd_io_dp.c in the GD Graphics…

Priority MEDIUM 50CWE-119Published · Updated

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

EPSS 0.04747 91st percentileScored 2026-11-07
Fix Will not fix Red Hat: no fix planned

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
——all versions—No fix listedCNA
  • — Vendor— Affected all versions Fixed in — No fix listed CNA

CPE configurations NVD · 15

CPEVersionsRoleVendor
cpe:2.3:a:libgd:libgd:*:*:*:*:*:*:*:*up to 2.2.3VulnerableLibgd
cpe:2.3:a:php:php:*:*:*:*:*:*:*:*up to 5.6.27Running onPHP
cpe:2.3:a:php:php:7.0.0:*:*:*:*:*:*:*7.0.0Running onPHP
cpe:2.3:a:php:php:7.0.1:*:*:*:*:*:*:*7.0.1Running onPHP
cpe:2.3:a:php:php:7.0.2:*:*:*:*:*:*:*7.0.2Running onPHP
cpe:2.3:a:php:php:7.0.3:*:*:*:*:*:*:*7.0.3Running onPHP
cpe:2.3:a:php:php:7.0.4:*:*:*:*:*:*:*7.0.4Running onPHP
cpe:2.3:a:php:php:7.0.5:*:*:*:*:*:*:*7.0.5Running onPHP
cpe:2.3:a:php:php:7.0.6:*:*:*:*:*:*:*7.0.6Running onPHP
cpe:2.3:a:php:php:7.0.7:*:*:*:*:*:*:*7.0.7Running onPHP
  • 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
CPEVersionsRoleVendor
cpe:2.3:a:php:php:7.0.8:*:*:*:*:*:*:*7.0.8Running onPHP
cpe:2.3:a:php:php:7.0.9:*:*:*:*:*:*:*7.0.9Running onPHP
cpe:2.3:a:php:php:7.0.10:*:*:*:*:*:*:*7.0.10Running onPHP
cpe:2.3:a:php:php:7.0.11:*:*:*:*:*:*:*7.0.11Running onPHP
cpe:2.3:a:php:php:7.0.12:*:*:*:*:*:*:*7.0.12Running onPHP
  • 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 →

ProductStatusPlan or fix
Red Hat Enterprise Linux 5AffectedNo fix planned: Will not fix
Red Hat Enterprise Linux 6AffectedNo fix planned: Will not fix
Red Hat Enterprise Linux 7AffectedNo fix planned: Will not fix
Red Hat OpenShift Enterprise 2AffectedNo fix planned: Will not fix
Red Hat Software CollectionsAffectedNo fix planned: Will not fix

Timeline

  1. 2026-10-02 Threatist record created from CVE-2016-8670
  2. 2026-10-03 Alias added: GHSA-7hrm-234x-37p5

References

  • 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
See all 33 →

Sources