CVE-2016-3074 in the critical feed json
Integer signedness error in GD Graphics Library 2.1.1 (aka libgd or libgd2) allows remote attackers to cause a denial of service (crash) or…
published 2016-04-26 10 y ago modified 2026-06-17 4 mo ago also EUVD-2016-4144
- cvss
- 9.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 37.2%
- EPSS 37.2% chance of exploitation in 30 days, percentile 98%
- public exploits
- 1
- Exploit-DB
Summary
Integer signedness error in GD Graphics Library 2.1.1 (aka libgd or libgd2) allows remote attackers to cause a denial of service (crash) or potentially execute arbitrary code via crafted compressed gd2 data, which triggers a heap-based buffer overflow.
Patch / fix
- php php 5.5.35, 5.6.21, 7.0.6
- libgd2 Debian 14, Debian 13, Debian 12 2.1.1-4.1
debian advisories DEBIAN-CVE-2016-3074
- libgd2 Ubuntu 14.04 LTS 2.1.0-3ubuntu0.1
- libgd2 Ubuntu 16.04 LTS 2.1.1-4ubuntu0.16.04.1
ubuntu advisories UBUNTU-CVE-2016-3074
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- rh-php56 RHEL 2 SOFTWARE_COLLECTIONS 2.3-1.el6
- rh-php56 RHEL 2 SOFTWARE_COLLECTIONS 2.3-1.el7
- rh-php56-php RHEL 2 SOFTWARE_COLLECTIONS 5.6.25-1.el6
- rh-php56-php RHEL 2 SOFTWARE_COLLECTIONS 5.6.25-1.el7
- rh-php56-php-gd RHEL 2 SOFTWARE_COLLECTIONS 5.6.25-1.el6
- rh-php56-php-gd RHEL 2 SOFTWARE_COLLECTIONS 5.6.25-1.el7
- rh-php56-php-cli RHEL 2 SOFTWARE_COLLECTIONS 5.6.25-1.el6
- rh-php56-php-cli RHEL 2 SOFTWARE_COLLECTIONS 5.6.25-1.el7
red hat advisories RHSA-2016:2750
- gd Alpine 3.3, Alpine 3.2 2.2.1-r2
- gd Alpine 3.4 2.2.1-r0
alpine advisories ALPINE-CVE-2016-3074
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2016-3074 updated cvss 5.1
php: Signedness vulnerability causing heap overflow in libgd
-
Red Hat Enterprise Linux 5 php, php53 Red Hat Enterprise Linux 6 gd, php, php-gd, php-cli, php-dba, php-fpm, +22 more Red Hat Enterprise Linux 7 gd, php, php-gd, php-cli, php-dba, php-fpm, +20 more Red Hat Software Collections php54-php, php55-php, php54-php-gd, php55-php-gd, php54-php-cli, php54-php-dba, +44 moreaffected: no fix planned “Will not fix”
-
Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) rh-php56 2.3-1.el6, rh-php56-php 5.6.25-1.el6, rh-php56-runtime 2.3-1.el6, rh-php56-scldevel 2.3-1.el6, rh-php56-php-gd 5.6.25-1.el6, rh-php56-php-cli 5.6.25-1.el6, +26 more Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) rh-php56 2.3-1.el7, rh-php56-php 5.6.25-1.el7, rh-php56-runtime 2.3-1.el7, rh-php56-scldevel 2.3-1.el7, rh-php56-php-gd 5.6.25-1.el7, rh-php56-php-cli 5.6.25-1.el7, +24 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.7) rh-php56 2.3-1.el6, rh-php56-php 5.6.25-1.el6, rh-php56-runtime 2.3-1.el6, rh-php56-scldevel 2.3-1.el6, rh-php56-php-gd 5.6.25-1.el6, rh-php56-php-cli 5.6.25-1.el6, +26 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.2) rh-php56 2.3-1.el7, rh-php56-php 5.6.25-1.el7, rh-php56-runtime 2.3-1.el7, rh-php56-scldevel 2.3-1.el7, rh-php56-php-gd 5.6.25-1.el7, rh-php56-php-cli 5.6.25-1.el7, +24 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.3) rh-php56 2.3-1.el7, rh-php56-php 5.6.25-1.el7, rh-php56-runtime 2.3-1.el7, rh-php56-scldevel 2.3-1.el7, rh-php56-php-gd 5.6.25-1.el7, rh-php56-php-cli 5.6.25-1.el7, +24 more Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) rh-php56 2.3-1.el6, rh-php56-php 5.6.25-1.el6, rh-php56-runtime 2.3-1.el6, rh-php56-scldevel 2.3-1.el6, rh-php56-php-gd 5.6.25-1.el6, rh-php56-php-cli 5.6.25-1.el6, +26 morefixed: vendor fix RHSA-2016:2750
+1 more productsfewer
Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) rh-php56 2.3-1.el7, rh-php56-php 5.6.25-1.el7, rh-php56-runtime 2.3-1.el7, rh-php56-scldevel 2.3-1.el7, rh-php56-php-gd 5.6.25-1.el7, rh-php56-php-cli 5.6.25-1.el7, +24 more
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Timeline
- First public exploit (EDB-39736)
- Published
Exploit prediction
37.23% chance of exploitation in the next 30 days, higher than 98% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- EDB-39736 libgd 2.1.1 - Signedness Heap Overflow remote, 2016-04-26
- seclists.org http://seclists.org/fulldisclosure/2016/Apr/72 referenced PoC, tagged "exploit" by a source, unverified
- packetstormsecurity.com http://packetstormsecurity.com/files/136757/libgd-2.1.1-Signedness.html referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Classification
- Weakness
-
- CWE-681 Incorrect Conversion between Numeric Types
- Technology feeds
References
-
github.com
/libgd/libgd/commit/2bb97f407c1145c850416a3bfbcc8cf124e68a19
patch, third-party-advisory
-
exploit-db.com
/exploits/39736/
exploit, third-party-advisory, vdb-entry
-
seclists.org
/fulldisclosure/2016/Apr/72
mailing-list, exploit, third-party-advisory
-
packetstormsecurity.com
/files/136757/libgd-2.1.1-Signedness.html
exploit, third-party-advisory, vdb-entry
-
debian.org
/security/2016/dsa-3556
vendor-advisory, third-party-advisory
-
security.gentoo.org
/glsa/201611-22
vendor-advisory, third-party-advisory
-
rhn.redhat.com
/errata/RHSA-2016-2750.html
vendor-advisory, third-party-advisory
-
debian.org
/security/2016/dsa-3602
vendor-advisory, third-party-advisory
-
lists.fedoraproject.org
/pipermail/package-announce/2016-May/183724.html
vendor-advisory, mailing-list, third-party-advisory
-
security.gentoo.org
/glsa/201607-04
vendor-advisory, third-party-advisory
-
ubuntu.com
/usn/USN-2987-1
vendor-advisory, third-party-advisory
-
slackware.com
/security/viewer.php?l=slackware-security&y=2016&m=slackware-security.383127
vendor-advisory, third-party-advisory
-
lists.fedoraproject.org
/pipermail/package-announce/2016-April/183263.html
vendor-advisory, mailing-list, third-party-advisory
-
lists.opensuse.org
/opensuse-security-announce/2016-05/msg00031.html
vendor-advisory, mailing-list, third-party-advisory
-
securityfocus.com
/bid/87087
vdb-entry, third-party-advisory
-
securitytracker.com
/id/1035659
vdb-entry, broken-link, third-party-advisory
-
h20566.www2.hpe.com
/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05240731
third-party-advisory
-
securityfocus.com
/archive/1/538160/100/0/threaded
mailing-list, third-party-advisory, vdb-entry
Sources
- CVE List CVE-2016-3074
- NVD CVE-2016-3074
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.