CVE-2016-8670Libgd
Critical 9.8 No auth needed
Follow: this CVE · Libgd · Libgd We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.0
- 9.8
- EPSS
- 4.7% probability of exploitation in 30 days · percentile 93
- Auth required
- No
- Published
- Jan 4, 2017
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-119
- Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Libgd.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| libgd | libgd | ≤ 2.2.3 |
Official sources
References
Links published by the sources. Open them with care.
- www.debian.org
- www.openwall.com Third Party Advisory
- www.php.net Release Notes Vendor Advisory
- www.php.net Release Notes Vendor Advisory
- www.securityfocus.com
- bugs.php.net Vendor Advisory
- github.com Vendor Advisory
- support.f5.com