cve.bz

CVE-2016-3074

9.8 criticalExploitEPSS 36%Fix available

Critical (9.8). EPSS 36% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
36% (unchanged from 36% a week ago; 37% 30 days ago) estimated probability of exploitation activity in the next 30 days; 99th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-681 Incorrect Conversion between Numeric Types
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2016-3074 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2016-3074?via=ask-ai-copy and https://cve.bz/cve/CVE-2016-3074?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2016-3074 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
libgd:libgd2.1.1
debian:debian_linux7.0
debian:debian_linux8.0
fedoraproject:fedora23
fedoraproject:fedora24
canonical:ubuntu_linux12.04
canonical:ubuntu_linux14.04
canonical:ubuntu_linux15.10
canonical:ubuntu_linux16.04
opensuse:opensuse13.2
php:phpfrom 5.5.0 before 5.5.35
php:phpfrom 5.6.0 before 5.6.21
php:phpfrom 7.0.0 before 7.0.6

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian7libgd22.0.36~rc1~dfsg-6.1+deb7u2DSA-3556-1
Debian8libgd22.1.0-5+deb8u1DSA-3556-1
Debian8php55.6.22+dfsg-0+deb8u1DSA-3602-1
Debian12, 13, 14libgd22.1.1-4.1DEBIAN-CVE-2016-3074
Ubuntu14.04:LTSlibgd22.1.0-3ubuntu0.1UBUNTU-CVE-2016-3074 USN-2987-1
Ubuntu16.04:LTSlibgd22.1.1-4ubuntu0.16.04.1UBUNTU-CVE-2016-3074 USN-2987-1
Red Hatrhel_software_collections:2::el6rh-php56, rh-php56-runtime, rh-php56-scldevel0:2.3-1.el6RHSA-2016:2750
Red Hatrhel_software_collections:2::el6rh-php56-php, rh-php56-php-gd, rh-php56-php-cli and 27 more0:5.6.25-1.el6RHSA-2016:2750
Red Hatrhel_software_collections:2::el6rh-php56-php-pear1:1.9.5-4.el6RHSA-2016:2750
Red Hatrhel_software_collections:2::el7rh-php56, rh-php56-runtime, rh-php56-scldevel0:2.3-1.el7RHSA-2016:2750
Red Hatrhel_software_collections:2::el7rh-php56-php, rh-php56-php-gd, rh-php56-php-cli and 25 more0:5.6.25-1.el7RHSA-2016:2750
Red Hatrhel_software_collections:2::el7rh-php56-php-pear1:1.9.5-4.el7RHSA-2016:2750
Alpinev3.2, v3.3gd2.2.1-r2ALPINE-CVE-2016-3074
Alpinev3.4gd2.2.1-r0ALPINE-CVE-2016-3074

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · Alpine.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Software Collections for Red Hat Enterprise Linux 6rh-php56-0:2.3-1.el6Fixed 2016-11-15RHSA-2016:2750
Red Hat Software Collections for Red Hat Enterprise Linux 6rh-php56-php-0:5.6.25-1.el6Fixed 2016-11-15RHSA-2016:2750
Red Hat Software Collections for Red Hat Enterprise Linux 6rh-php56-php-pear-1:1.9.5-4.el6Fixed 2016-11-15RHSA-2016:2750
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUSrh-php56-0:2.3-1.el6Fixed 2016-11-15RHSA-2016:2750
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUSrh-php56-php-0:5.6.25-1.el6Fixed 2016-11-15RHSA-2016:2750
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUSrh-php56-php-pear-1:1.9.5-4.el6Fixed 2016-11-15RHSA-2016:2750
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-php56-0:2.3-1.el7Fixed 2016-11-15RHSA-2016:2750
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-php56-php-0:5.6.25-1.el7Fixed 2016-11-15RHSA-2016:2750
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-php56-php-pear-1:1.9.5-4.el7Fixed 2016-11-15RHSA-2016:2750
Red Hat Software Collections for Red Hat Enterprise Linux 7.2 EUSrh-php56-0:2.3-1.el7Fixed 2016-11-15RHSA-2016:2750
Red Hat Software Collections for Red Hat Enterprise Linux 7.2 EUSrh-php56-php-0:5.6.25-1.el7Fixed 2016-11-15RHSA-2016:2750
Red Hat Software Collections for Red Hat Enterprise Linux 7.2 EUSrh-php56-php-pear-1:1.9.5-4.el7Fixed 2016-11-15RHSA-2016:2750
Red Hat Enterprise Linux 5phpWill not fix
Red Hat Enterprise Linux 5php53Will not fix
Red Hat Enterprise Linux 6gdWill not fix
Red Hat Enterprise Linux 6phpWill not fix
Red Hat Enterprise Linux 7gdWill not fix
Red Hat Enterprise Linux 7phpWill not fix
Red Hat Software Collectionsphp54-phpWill not fix
Red Hat Software Collectionsphp55-phpWill not fix
3 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2016-3074.

Public exploits

Detection rules

Ways to detect this CVE, not exploit code: the nuclei template that checks a system for it, and the Suricata and Snort rules that name it. A rule set may ship a rule turned off, so check yours by its sid.

References

Check your stackJSON