CVE-2016-3074 in Canonical Ubuntu Linux and 5 more products
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.
Affects 6 products from 6 vendors. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Canonical | Ubuntu Linux | 12.04 14.04 15.10 16.04 |
| Debian | Debian Linux | 7.0 8.0 |
| Fedoraproject | Fedora | 23 24 |
| Libgd | Libgd | 2.1.1 |
| Opensuse | Opensuse | 13.2 |
| Php | Php | ≥ 5.5.0, < 5.5.35 ≥ 5.6.0, < 5.6.21 ≥ 7.0.0, < 7.0.6 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Reported · reference |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2016-3074 |
|---|---|
| BreachSpider ID | BS-2016-GLOBAL-159013-C |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Published | 2016-04-26 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-681: CWE-681
Analysis AI-written, not human-reviewed
An integer signedness error in GD Graphics Library 2.1.1 can lead to a denial of service or arbitrary code execution due to a heap-based buffer overflow.
Remote attackers can exploit this vulnerability by sending specially crafted compressed gd2 data to a system using the affected version of the GD Graphics Library, potentially causing a crash or executing arbitrary code.
Questions
What is CVE-2016-3074?
An integer signedness error in GD Graphics Library 2.1.1 can lead to a denial of service or arbitrary code execution due to a heap-based buffer overflow.
What is the CVSS score for CVE-2016-3074?
CVE-2016-3074 has CVSS 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. EPSS: 35.7%.
Is CVE-2016-3074 actively exploited?
Public exploit available for CVE-2016-3074. Exploitation risk elevated.
How do I remediate CVE-2016-3074?
Priority: IMMEDIATE.
What systems are affected by CVE-2016-3074?
CVE-2016-3074 affects Canonical Ubuntu Linux; Debian Debian Linux; Fedoraproject Fedora; Libgd Libgd; Opensuse Opensuse; Php Php.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Canonical","product":"Ubuntu Linux","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.