Buffer overflow in Libgd

CVE-2016-8670

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.

Vulnerability class: Buffer Overflow

EPSS: 0.048 (91.0th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.

Affected products

  • Libgd
  • Php — versions 7.0.0, 7.0.1, 7.0.2
  • N/a — versions n/a

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2016-8670?
CVE-2016-8670 is a critical-severity vulnerability in Libgd, classified under Improper Restriction of Operations within the Bounds of a Memory Buffer. CVSS score: 9.8/10. Published 2017-01-04.
How severe is CVE-2016-8670?
Critical severity. CVSS v3 base score is 9.8 out of 10.