CVE-2016-9317 json
The gdImageCreate function in the GD Graphics Library (aka libgd) before 2.2.4 allows remote attackers to cause a denial of service (system…
published 2017-01-26 9 y ago modified 2026-06-17 4 mo ago also EUVD-2016-10127
- cvss
- 5.5
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 3.7%
- EPSS 3.7% chance of exploitation in 30 days, percentile 89%
- public exploits
- 0
- none known
Summary
The gdImageCreate function in the GD Graphics Library (aka libgd) before 2.2.4 allows remote attackers to cause a denial of service (system hang) via an oversized image.
Patch / fix
- libgd2 Debian 14, Debian 13, Debian 12 2.2.4-1
debian advisories DEBIAN-CVE-2016-9317
- libgd2 Ubuntu 14.04 LTS 2.1.0-3ubuntu0.6
- libgd2 Ubuntu 16.04 LTS 2.1.1-4ubuntu0.16.04.6
ubuntu advisories UBUNTU-CVE-2016-9317
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- gd SLES for SAP 12 SP2, SLES for SAP 12 SP1, SLES for Raspberry Pi 12 SP2 +8 more 2.1.0-23.1
- gd SLES for SAP 11 SP4, SLES 11 SP4, SLE Software Development Kit 11 SP4 2.0.36.RC1-52.32.1
suse advisories SUSE-SU-2017:0468-1SUSE-SU-2017:0459-1
- gd openSUSE Tumbleweed 2.3.3-1.1
opensuse advisories openSUSE-SU-2024:10777-1
- gd Alpine 3.5, Alpine 3.4, Alpine 3.3 2.2.4-r0
alpine advisories ALPINE-CVE-2016-9317
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2016-9317 updated cvss 8.1
gd: Missing check for oversized images in gdImageCreate()
-
Red Hat Enterprise Linux 5 gd, libwmf Red Hat Enterprise Linux 6 gd, gd-progs Red Hat Enterprise Linux 7 gd, gd-progs Red Hat OpenShift Enterprise 2 gdaffected: no fix planned “Will not fix”
-
Red Hat Enterprise Linux 5 php, php53 Red Hat Enterprise Linux 6 php, libwmf, php-gd, php-cli, php-dba, php-fpm, +22 more Red Hat Enterprise Linux 7 php, libwmf, php-gd, php-cli, php-dba, php-fpm, +20 more Red Hat OpenShift Enterprise 2 php Red Hat Software Collections rh-php56-php, rh-php70-php, rh-php56-php-gd, rh-php70-php-gd, rh-php56-php-cli, rh-php56-php-dba, +52 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
3.73% chance of exploitation in the next 30 days, higher than 89% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 5.5 | CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| NVD | 2.0 | 7.1 | AV:N/AC:M/Au:N/C:N/I:N/A:C |
Classification
- Weakness
-
- CWE-20 Improper Input Validation
References
-
github.com
/libgd/libgd/commit/1846f48e5fcdde996e7c27a4bbac5d0aef183e4b
issue-tracking, patch, third-party-advisory
-
github.com
/libgd/libgd/blob/gd-2.2.4/CHANGELOG.md
issue-tracking, patch, release-notes, third-party-advisory
-
debian.org
/security/2017/dsa-3777
vendor-advisory
-
securityfocus.com
/bid/95841
vdb-entry
Sources
- CVE List CVE-2016-9317
- NVD CVE-2016-9317
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.