CVE-2016-3074

critical
Published 2016-04-26 ยท Modified 2026-05-06
CVSS v3
9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4 NEW
โ€”
not yet in upstream
VIR risk
10.0

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.

Predictions

Exploit likelihood
97%
Patch ETA
โ€”

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

No mitigations published for this CVE yet.

The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ€” if you've already worked around this in production โ€” publish your fix to the community-verified tier.

โœš Propose a mitigation on Community โ†’ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here with source_tier=community-verified.

Exploits

Public proof-of-concept code below. AS-IS, for defenders and authorised testing only.

Exploit-DB

EDB-39736 remote linux
Hans Jerry Illikainen ยท 2016-04-26

libgd 2.1.1 - Signedness Heap Overflow

Source code queued for fetch โ€” refresh in a moment.

OS impact

fedora Fedora Affected 2 releases
VersionStatusFixed in
24 Affected โ€”
23 Affected โ€”
suse SUSE Affected 2 releases
VersionStatusFixed in
13.2 Affected โ€”
โ€” Affected โ€”
ubuntu Ubuntu Affected 4 releases
VersionStatusFixed in
16.04 Affected โ€”
15.10 Affected โ€”
14.04 Affected โ€”
12.04 Affected โ€”
debian Debian Mixed 7 releases
VersionStatusFixed in
trixie Fixed 2.1.1-4.1
sid Fixed 2.1.1-4.1
forky Fixed 2.1.1-4.1
bullseye Fixed 2.1.1-4.1
bookworm Fixed 2.1.1-4.1
8.0 Affected โ€”
7.0 Affected โ€”

Application impact

VendorProductVersionsFixed
libgdlibgd2.1.1
php phpphp{"startIncluding":"5.5.0","endExcluding":"5.5.35"}5.5.35

References

CWEs

CWE-681

Community-verified mitigations for this CVE will appear above when contributors publish them.

Verify integrity in audit chain (admin only). AS-IS.