CVE-2016-3074

CRITICAL

libgd 2.1.1 - Denial of Service and Potential Remote Code Execution via Crafted Compressed GD2 Data

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2016-3074. PoCs published by Hans Jerry Illikainen.

AI-analyzed exploit summary Exploit for CVE-2016-3074, a signedness vulnerability in libgd 2.1.1 leading to a heap overflow when processing compressed gd2 data. The PoC demonstrates remote code execution against a vulnerable PHP installation.

Description

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.

Exploits (1)

exploitdb WORKING POC
by Hans Jerry Illikainen · textremotelinux
https://www.exploit-db.com/exploits/39736

Exploit for CVE-2016-3074, a signedness vulnerability in libgd 2.1.1 leading to a heap overflow when processing compressed gd2 data. The PoC demonstrates remote code execution against a vulnerable PHP installation.

Classification
Working Poc 100%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: libgd 2.1.1 (via PHP with gd extension)
No auth needed
Prerequisites: Vulnerable libgd version (2.1.1) · PHP with gd extension enabled · Ability to upload a malicious gd2 file
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (18)

Core 18
Core References
Third Party Advisory vendor-advisory x_refsource_debian
http://www.debian.org/security/2016/dsa-3556
Exploit, Third Party Advisory, VDB Entry exploit x_refsource_exploit-db
https://www.exploit-db.com/exploits/39736/
Third Party Advisory vendor-advisory x_refsource_gentoo
https://security.gentoo.org/glsa/201611-22
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/87087
Third Party Advisory vendor-advisory x_refsource_redhat
http://rhn.redhat.com/errata/RHSA-2016-2750.html
Exploit, Mailing List, Third Party Advisory mailing-list x_refsource_fulldisc
http://seclists.org/fulldisclosure/2016/Apr/72
Third Party Advisory vendor-advisory x_refsource_debian
http://www.debian.org/security/2016/dsa-3602
Mailing List, Third Party Advisory vendor-advisory x_refsource_fedora
http://lists.fedoraproject.org/pipermail/package-announce/2016-May/183724.html
Broken Link, Third Party Advisory, VDB Entry vdb-entry x_refsource_sectrack
http://www.securitytracker.com/id/1035659
Third Party Advisory vendor-advisory x_refsource_gentoo
https://security.gentoo.org/glsa/201607-04
Third Party Advisory vendor-advisory x_refsource_ubuntu
http://www.ubuntu.com/usn/USN-2987-1
Exploit, Third Party Advisory, VDB Entry x_refsource_misc
http://packetstormsecurity.com/files/136757/libgd-2.1.1-Signedness.html
Third Party Advisory, VDB Entry mailing-list x_refsource_bugtraq
http://www.securityfocus.com/archive/1/538160/100/0/threaded
Mailing List, Third Party Advisory vendor-advisory x_refsource_fedora
http://lists.fedoraproject.org/pipermail/package-announce/2016-April/183263.html
Mailing List, Third Party Advisory vendor-advisory x_refsource_suse
http://lists.opensuse.org/opensuse-security-announce/2016-05/msg00031.html

Scores

CVSS v3 9.8
EPSS 0.6049
EPSS Percentile 98.3%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Details

CWE
CWE-681
Status published
Products (11)
canonical/ubuntu_linux 12.04
canonical/ubuntu_linux 14.04
canonical/ubuntu_linux 15.10
canonical/ubuntu_linux 16.04
debian/debian_linux 7.0
debian/debian_linux 8.0
fedoraproject/fedora 23
fedoraproject/fedora 24
libgd/libgd 2.1.1
opensuse/opensuse 13.2
... and 1 more
Published Apr 26, 2016
Tracked Since Feb 18, 2026