CVE-2016-10166: libgd Integer Underflow (Wrap or Wraparound)
Vulnerability summary
CVE-2016-10166 is a critical (CVSS 9.8) Integer Underflow (Wrap or Wraparound) vulnerability in libgd. EPSS estimates a 10.69% chance of exploitation in the next 30 days, higher than 95.8% of scored vulnerabilities.
Severe, CVSS 9.8 (NVD); no exploitation reported by the 5 checked sources; EPSS 11% (FIRST, 03-11-2026)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 10 · Related 6Timeline
- 15-03-2017PublishedVulnerability first disclosed.
- 06-08-2024Last modifiedVulnerability information updated.
Description
Integer underflow in the _gdContributionsAlloc function in gd_interpolation.c in the GD Graphics Library (aka libgd) before 2.2.4 allows remote attackers to have unspecified impact via vectors related to decrementing the u variable.
CVSS metrics
5 scores · 4 sources · 2 versions- OSV · AlpineEcosystem advisory · calculated9.8CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · UbuntuEcosystem advisory · calculated9.8CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated9.8CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
10.69%
Chance of exploitation in the next 30 days
Percentile
96%
Versus all other CVEs
30-day change
No change 0.00 pp
From 10.69% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Alpine3 products
- gd< 2.2.4-r0
- php5< 5.6.40-r0
- php7< 7.1.29-r0
Debian1 product
- libgd2< 2.2.4-1
Libgd1 product
- libgd≤ 2.2.3
Ubuntu1 product
- libgd2< 2.1.0-3ubuntu0.6 | < 2.1.1-4ubuntu0.16.04.6
4 vendors · 6 products
References
13 links- www.openwall.com/lists/oss-security/2017/01/26/1Mailing ListX Refsource MLISTPatchThird Party AdvisoryREPORT
- www.openwall.com/lists/oss-security/2017/01/28/6Mailing ListX Refsource MLISTPatchThird Party Advisory
- github.com/libgd/libgd/commit/60bfb401ad5a4a8ae995dcd36372fe15c71e1a35X Refsource CONFIRMIssue TrackingPatchThird Party Advisory