CVE-2016-5766: debian debian_linux Integer Overflow or Wraparound
Vulnerability summary
CVE-2016-5766 is a high (CVSS 8.8) Integer Overflow or Wraparound vulnerability in debian debian_linux. EPSS estimates a 7.50% chance of exploitation in the next 30 days, higher than 94.4% of scored vulnerabilities. 2 public exploits are recorded.
Public exploit (GitHub, Date unknown)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 12 · Related 8Timeline
- 07-08-2016PublishedVulnerability first disclosed.
- 06-08-2024Last modifiedVulnerability information updated.
Description
Integer overflow in the _gd2GetHeader function in gd_gd2.c in the GD Graphics Library (aka libgd) before 2.2.3, as used in PHP before 5.5.37, 5.6.x before 5.6.23, and 7.x before 7.0.8, allows remote attackers to cause a denial of service (heap-based buffer overflow and application crash) or possibly have unspecified other impact via crafted chunk dimensions in an image.
CVSS metrics
6 scores · 5 sources · 2 versions- OSV · AlpineEcosystem advisory · calculated8.8HighCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · Red hatEcosystem advisory · calculated5.6MediumCVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:LDiffers
- OSV · UbuntuEcosystem advisory · calculated8.8HighCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated8.8HighCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS trend
Probability
7.50%
Chance of exploitation in the next 30 days
Percentile
94%
Versus all other CVEs
30-day change
No change 0.00 pp
From 7.50% 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
2 foundPhp Src
Maturity: poc
Exploit Reference (bugs.php.net)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Redhat6 products
- enterprise_linuxEOL6.0 | 5 | 7.0
- openshift2.0
- gd< 0:2.0.35-27.el7_9
- gd-debuginfo< 0:2.0.35-27.el7_9
- gd-devel< 0:2.0.35-27.el7_9
Debian2 products
- libgd2< 2.2.2-29-g3c2b605-1 | < 2.0.36~rc1~dfsg-6.1+deb7u4
- debian_linuxEOL8.0
Alpine1 product
- gd< 2.2.1-r2 | < 2.2.3-r0
Fedoraproject1 product
- fedoraEOL23 | 24 | 22
Freebsd1 product
- freebsdEOL8.3 | 8.0 | 10.0 | 10.1 | 8.4 | 9.2 | 8.2 | 8.1 | 9.0 | 10.2 | 9.3 | 10.3 | 9.1
Libgd1 product
- libgd2.2.2
Ubuntu1 product
- libgd2< 2.1.0-3ubuntu0.2 | < 2.1.1-4ubuntu0.16.04.2
7 vendors · 13 products
References
26 links- github.com/php/php-src/commit/7722455726bec8c53458a32851d2a87982cf0eac?w=1X Refsource CONFIRMExploitPatch