CVE-2016-10167: The gdImageCreateFromGd2Ctx function in gd_gd2.c in the GD Graphics Library (aka libgd) before 2.2.4 allows remote attackers to cause a…
Noroxi assessment
Priority: Monitor (action score 23/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 3.7% (FIRST EPSS); higher than 90% of all records.
- Someone with local access to the system can trigger it. No account or password is required. A user must open a link or visit a page. No special conditions are required; it is repeatable.
- Fixed version: gd (Alpine:v3.3) 2.2.4-r0; libgd2 (Debian:12) 2.2.4-1; libgd2 (Debian:7) 2.0.36~rc1~dfsg-6.1+deb7u8.
Low priority for now. Upgrade to gd (Alpine:v3.3) 2.2.4-r0; libgd2 (Debian:12) 2.2.4-1; libgd2 (Debian:7) 2.0.36~rc1~dfsg-6.1+deb7u8 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
The gdImageCreateFromGd2Ctx function in gd_gd2.c in the GD Graphics Library (aka libgd) before 2.2.4 allows remote attackers to cause a denial of service (application crash) via a crafted image file.
- Published
- Mar 15, 2017
- Updated
- Jun 16, 2026
- EPSS
- 3.7% · 90th percentile
- CWE
- CWE-20
Report tools
Action score
23
Low priority for now.
- CVSS
- 22 / 40 · 5.5 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 1 / 30 · 3.7%
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| libgd | libgd | cpe:2.3:a:libgd:libgd |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- libgd libgdup to 2.2.3 inclusive
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Alpine:v3.3 | gd | before 2.2.4-r0 | 2.2.4-r0 |
| Debian:12 | libgd2 | before 2.2.4-1 | 2.2.4-1 |
| Debian:7 | libgd2 | before 2.0.36~rc1~dfsg-6.1+deb7u8 | 2.0.36~rc1~dfsg-6.1+deb7u8 |
| Debian:8 | libgd2 | before 2.1.0-5+deb8u9 | 2.1.0-5+deb8u9 |
| openSUSE:Tumbleweed | gd | before 2.3.3-1.1 | 2.3.3-1.1 |
| Red Hat:enterprise_linux:7::client | php | before 0:5.4.16-43.el7_4 | 0:5.4.16-43.el7_4 |
| Red Hat:enterprise_linux:7::client | php-bcmath | before 0:5.4.16-43.el7_4 | 0:5.4.16-43.el7_4 |
| Red Hat:enterprise_linux:7::client | php-cli | before 0:5.4.16-43.el7_4 | 0:5.4.16-43.el7_4 |
| Red Hat:enterprise_linux:7::client | php-common | before 0:5.4.16-43.el7_4 | 0:5.4.16-43.el7_4 |
| Red Hat:enterprise_linux:7::client | php-dba | before 0:5.4.16-43.el7_4 | 0:5.4.16-43.el7_4 |
| Red Hat:enterprise_linux:7::client | php-debuginfo | before 0:5.4.16-43.el7_4 | 0:5.4.16-43.el7_4 |
| Red Hat:enterprise_linux:7::client | php-devel | before 0:5.4.16-43.el7_4 | 0:5.4.16-43.el7_4 |
| Red Hat:enterprise_linux:7::client | php-embedded | before 0:5.4.16-43.el7_4 | 0:5.4.16-43.el7_4 |
| Red Hat:enterprise_linux:7::client | php-enchant | before 0:5.4.16-43.el7_4 | 0:5.4.16-43.el7_4 |
| Red Hat:enterprise_linux:7::client | php-fpm | before 0:5.4.16-43.el7_4 | 0:5.4.16-43.el7_4 |
| Red Hat:enterprise_linux:7::client | php-gd | before 0:5.4.16-43.el7_4 | 0:5.4.16-43.el7_4 |
| Red Hat:enterprise_linux:7::client | php-intl | before 0:5.4.16-43.el7_4 | 0:5.4.16-43.el7_4 |
| Red Hat:enterprise_linux:7::client | php-ldap | before 0:5.4.16-43.el7_4 | 0:5.4.16-43.el7_4 |
| Red Hat:enterprise_linux:7::client | php-mbstring | before 0:5.4.16-43.el7_4 | 0:5.4.16-43.el7_4 |
| Red Hat:enterprise_linux:7::client | php-mysql | before 0:5.4.16-43.el7_4 | 0:5.4.16-43.el7_4 |
| Red Hat:enterprise_linux:7::client | php-mysqlnd | before 0:5.4.16-43.el7_4 | 0:5.4.16-43.el7_4 |
| Red Hat:enterprise_linux:7::client | php-odbc | before 0:5.4.16-43.el7_4 | 0:5.4.16-43.el7_4 |
| Red Hat:enterprise_linux:7::client | php-pdo | before 0:5.4.16-43.el7_4 | 0:5.4.16-43.el7_4 |
| Red Hat:enterprise_linux:7::client | php-pgsql | before 0:5.4.16-43.el7_4 | 0:5.4.16-43.el7_4 |
+74
Same product
libgd: all recordsOther highest-scoring records for the same primary product.
- CVE-2019-6977gdImageColorMatch in gd_color_match.c in the GD Graphics Library (aka LibGD) 2.2.5, as used in the imagecolormatch function in PHP before 5.56Plan
- CVE-2016-3074Integer signedness error in GD Graphics Library 2.1.1 (aka libgd or libgd2) allows remote attackers to cause a denial of service (crash) or…50Plan
- CVE-2016-10166Integer underflow in the _gdContributionsAlloc function in gd_interpolation.c in the GD Graphics Library (aka libgd) before 2.2.4 allows…42Plan
Published before and after this one in the same product
- ← EarlierCVE-2016-9317Jan 26, 2017 · The gdImageCreate function in the GD Graphics Library (aka libgd) before 2.2.4 allows remote attackers to cause a denial of service (system…23Monitor
- ← EarlierCVE-2016-6906Mar 15, 2017 · The read_image_tga function in gd_tga.c in the GD Graphics Library (aka libgd) before 2.2.4 allows remote attackers to cause a denial of…23Monitor
- Later →CVE-2016-10168Mar 15, 2017 · Integer overflow in gd_io.c in the GD Graphics Library (aka libgd) before 2.2.4 allows remote attackers to have unspecified impact via…32Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| alpine:gd | 2.2.4-r0 · Alpine:v3.3 | Package registry (OSV) |
| debian:libgd2 | 2.2.4-1 · Debian:12 | Package registry (OSV) |
| opensuse:gd | 2.3.3-1.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| red hat:php | 0:5.4.16-43.el7_4 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:php-bcmath | 0:5.4.16-43.el7_4 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:php-cli | 0:5.4.16-43.el7_4 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:php-common | 0:5.4.16-43.el7_4 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:php-dba | 0:5.4.16-43.el7_4 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:php-debuginfo | 0:5.4.16-43.el7_4 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:php-devel | 0:5.4.16-43.el7_4 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:php-embedded | 0:5.4.16-43.el7_4 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:php-enchant | 0:5.4.16-43.el7_4 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:php-fpm | 0:5.4.16-43.el7_4 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:php-gd | 0:5.4.16-43.el7_4 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:php-intl | 0:5.4.16-43.el7_4 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| suse:gd | 2.0.36.RC1-52.32.1 · SUSE:Linux Enterprise Software Development Kit 11 SP4 | Package registry (OSV) |
| suse:php5 | 5.5.14-96.1 · SUSE:Linux Enterprise Module for Web and Scripting 12 | Package registry (OSV) |
| suse:php53 | 5.3.17-101.1 · SUSE:Linux Enterprise Software Development Kit 11 SP4 | Package registry (OSV) |
| suse:php7 | 7.0.7-35.1 · SUSE:Linux Enterprise Module for Web and Scripting 12 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
Not on record for this CVE: researcher credit · variant or chain candidate · public bounty program.
Technical details
Attack conditions
- Someone with local access to the system can trigger it.
- No account or password is required.
- A user must open a link or visit a page.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- none
- Integrity
- none
- Availability
- high · the service can be disrupted
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality impact
- None
- Integrity impact
- None
- Availability impact
- High
Weakness class (CWE)
CWE-20 · Improper Input ValidationCVSS vector
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
- Buffer Overflow via Environment VariablesCAPEC-10likelihood: High · High
- Server Side Include (SSI) InjectionCAPEC-101likelihood: High · High
- Cross Zone ScriptingCAPEC-104likelihood: Medium · High
- Command Line Execution through SQL InjectionCAPEC-108likelihood: Low · Very High
- Object Relational Mapping InjectionCAPEC-109likelihood: Low · High
- SQL Injection through SOAP Parameter TamperingCAPEC-110likelihood: High · Very High
- Double EncodingCAPEC-120likelihood: Low · Medium
- Subverting Environment Variable ValuesCAPEC-13likelihood: High · Very High
ATT&CK techniques
- Obfuscated Files or InformationT1027
- Masquerading: Invalid Code SignatureT1036.001
- Steal Web Session CookieT1539
- Subvert Trust Controls: Code SigningT1553.002
- Impair Defenses:Impair Command History LoggingT1562.003
- Hijack Execution Flow:Dynamic Linker HijackingT1574.006
- Hijack Execution Flow:Path Interception by PATH Environment VariableT1574.007
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (9 more)Show less
- www.debian.org/security/2017/dsa-3777
- www.openwall.com/lists/oss-security/2017/01/26/1
- www.openwall.com/lists/oss-security/2017/01/28/6
- www.securityfocus.com/bid/95869
- www.securitytracker.com/id/1037659
- access.redhat.com/errata/RHSA-2017:3221
- access.redhat.com/errata/RHSA-2018:1296
- github.com/libgd/libgd/commit/fe9ed49dafa993e3af96b6a5a589efeea9bfb36f
- www.tenable.com/security/tns-2017-04
Vendor advisories and official records. Exploit/PoC links are deliberately left out.