Skip to content
OpenAdvisories
Unscored Public exploit CVE-2016-3074 EUVD-2016-4144GHSA-cqf2-847w-787m

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 Apr 26, 2016 · Updated Aug 5, 2024 · Assigned by redhat

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libgd2 2.1.1-4.1 —
Debian 13 libgd2 2.1.1-4.1 —
Debian 12 libgd2 2.1.1-4.1 —
Debian 8 libgd2 2.1.0-5+deb8u1 DSA-3556-1
Debian 8 php5 5.6.22+dfsg-0+deb8u1 DSA-3602-1
Debian 7 libgd2 2.0.36~rc1~dfsg-6.1+deb7u2 DSA-3556-1
ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS libgd2 2.1.1-4ubuntu0.16.04.1 USN-2987-1
Ubuntu 14.04 LTS libgd2 2.1.0-3ubuntu0.1 USN-2987-1
ReleasePackageFixed inAdvisory
RHEL 2 rh-php56 +2 2.3-1.el6 RHSA-2016:2750
RHEL 2 rh-php56-php +27 5.6.25-1.el6 RHSA-2016:2750
RHEL 2 rh-php56-php-pear 1:1.9.5-4.el6 RHSA-2016:2750
ReleasePackageFixed inAdvisory
Alpine v3.4 gd 2.2.1-r0 —
Alpine v3.3 gd 2.2.1-r2 —
Alpine v3.2 gd 2.2.1-r2 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Exploit-DB 1

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 4

References