CVE-2016-9317
The gdImageCreate function in the GD Graphics Library (aka libgd) before 2.2.4 allows remote...
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.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
5.5
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.
- Record
CVE-2016-9317- CVSS 3.0
- 5.5 Medium
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - CVSS 2.0
- 7.1 High
AV:N/AC:M/Au:N/C:N/I:N/A:C - Weakness
- CWE-20
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2016-9317- Updated
- 2026-11-02
EUVDEUVD-2016-10127 No score
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.
- Record
EUVD-2016-10127- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-7pf6-3qr6-mjfr
5.5
The gdImageCreate function in the GD Graphics Library (aka libgd) before 2.2.4 allows remote...
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.
- Record
GHSA-7pf6-3qr6-mjfr- CVSS 3.0
- 5.5 Medium
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Weakness
- CWE-20
- Updated
- 2026-11-02
OSVALPINE-CVE-2016-9317
5.5
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.
- Record
ALPINE-CVE-2016-9317- CVSS 3.0
- 5.5 Medium
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSV
5.5
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.
- Record
CVE-2016-9317- CVSS 3.0
- 5.5 Medium
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
Show 8 moreShow less
OSVDEBIAN-CVE-2016-9317
5.5
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.
- Record
DEBIAN-CVE-2016-9317- CVSS 3.0
- 5.5 Medium
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2016-9317
5.5
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.
- Record
UBUNTU-CVE-2016-9317- CVSS 3.0
- 5.5 Medium
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVMGASA-2017-0055 No score
Updated libgd packages fix security vulnerability
OOB reads of the TGA decompression buffer (CVE-2016-6906).
Double-free in gdImageWebPtr() (CVE-2016-6912).
gdImageCreate() doesn't check for oversized images and as such is prone to DoS vulnerabilities (CVE-2016-9317).
Potential unsigned underflow in gd_interpolation.c (CVE-2016-10166).
DOS vulnerability in gdImageCreateFromGd2Ctx() (CVE-2016-10167).
Signed Integer Overflow gd_io.c (CVE-2016-10168).
- Record
MGASA-2017-0055- Updated
- 2026-11-02
OSVMGASA-2017-0086 No score
Updated libwmf packages fix security vulnerability
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. (CVE-2016-9317)
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. (CVE-2016-10167)
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 vectors involving the number of horizontal and vertical chunks in an image. (CVE-2016-10168)
- Record
MGASA-2017-0086- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:10777-1 No score
gd-2.3.3-1.1 on GA media
These are all security issues fixed in the gd-2.3.3-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:10777-1- Updated
- 2026-11-02
OSVSUSE-SU-2017:0459-1 No score
Security update for gd
This update for gd fixes the following security issues:
- CVE-2016-9317: The gdImageCreate function in the GD Graphics Library (aka libgd) allowed remote attackers to cause a denial of service (system hang) via an oversized image. (bsc#1022283)
- CVE-2016-10167: A denial of service problem in gdImageCreateFromGd2Ctx() could lead to libgd running out of memory even on small files. (bsc#1022264)
- CVE-2016-10168: A signed integer overflow in the GD Graphics Library (aka libgd) could lead to memory corruption (bsc#1022265)
- Record
SUSE-SU-2017:0459-1- Updated
- 2026-11-02
OSVSUSE-SU-2017:0468-1 No score
Security update for gd
This update for gd fixes the following security issues:
- CVE-2016-6906: An out-of-bounds read in TGA decompression was fixed which could have lead to crashes. (bsc#1022553)
- CVE-2016-6912: Double free vulnerability in the gdImageWebPtr function in the GD Graphics Library (aka libgd) allowed remote attackers to have unspecified impact via large width and height values. (bsc#1022284)
- CVE-2016-9317: The gdImageCreate function in the GD Graphics Library (aka libgd) allowed remote attackers to cause a denial of service (system hang) via an oversized image. (bsc#1022283)
- CVE-2016-10166: A potential unsigned underflow in gd interpolation functions could lead to memory corruption in the GD Graphics Library (aka libgd) (bsc#1022263)
- CVE-2016-10167: A denial of service problem in gdImageCreateFromGd2Ctx() could lead to libgd running out of memory even on small files. (bsc#1022264)
- CVE-2016-10168: A signed integer overflow in the GD Graphics Library (aka libgd) could lead to memory corruption (bsc#1022265)
- Record
SUSE-SU-2017:0468-1- Updated
- 2026-11-02
OSVUSN-3213-1 No score
libgd2 vulnerabilities
Stefan Esser discovered that the GD library incorrectly handled memory when processing certain images. If a user or automated system were tricked into processing a specially crafted image, an attacker could cause a denial of service, or possibly execute arbitrary code. This issue only affected Ubuntu 14.04 LTS, Ubuntu 16.04 LTS and Ubuntu 16.10. (CVE-2016-10166)
It was discovered that the GD library incorrectly handled certain malformed images. If a user or automated system were tricked into processing a specially crafted image, an attacker could cause a denial of service. (CVE-2016-10167)
It was discovered that the GD library incorrectly handled certain malformed images. If a user or automated system were tricked into processing a specially crafted image, an attacker could cause a denial of service, or possibly execute arbitrary code. (CVE-2016-10168)
Ibrahim El-Sayed discovered that the GD library incorrectly handled certain malformed TGA images. If a user or automated system were tricked into processing a specially crafted TGA image, an attacker could cause a denial of service. This issue only affected Ubuntu 14.04 LTS, Ubuntu 16.04 LTS and Ubuntu 16.10. (CVE-2016-6906)
Ibrahim El-Sayed discovered that the GD library incorrectly handled certain malformed WebP images. If a user or automated system were tricked into processing a specially crafted WebP image, an attacker could cause a denial of service, or possibly execute arbitrary code. This issue only affected Ubuntu 14.04 LTS, Ubuntu 16.04 LTS and Ubuntu 16.10. (CVE-2016-6912)
It was discovered that the GD library incorrectly handled creating oversized images. If a user or automated system were tricked into creating a specially crafted image, an attacker could cause a denial of service. (CVE-2016-9317)
It was discovered that the GD library incorrectly handled filling certain images. If a user or automated system were tricked into filling an image, an attacker could cause a denial of service. (CVE-2016-9933)
- Record
USN-3213-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
gdAlpine:v3.3 |
before 2.2.4-r0 | 2.2.4-r0 |
gdAlpine:v3.4 |
before 2.2.4-r0 | 2.2.4-r0 |
gdAlpine:v3.5 |
before 2.2.4-r0 | 2.2.4-r0 |
libgd2Debian:12 |
before 2.2.4-1 | 2.2.4-1 |
libgd2Debian:13 |
before 2.2.4-1 | 2.2.4-1 |
libgd2Debian:14 |
before 2.2.4-1 | 2.2.4-1 |
libgd2Debian:7 |
before 2.0.36~rc1~dfsg-6.1+deb7u8, plus listed versions 2.0.36~rc1~dfsg-6.12.0.36~rc1~dfsg-6.1+deb7u12.0.36~rc1~dfsg-6.1+deb7u22.0.36~rc1~dfsg-6.1+deb7u32.0.36~rc1~dfsg-6.1+deb7u42.0.36~rc1~dfsg-6.1+deb7u52.0.36~rc1~dfsg-6.1+deb7u62.0.36~rc1~dfsg-6.1+deb7u7 |
2.0.36~rc1~dfsg-6.1+deb7u8 |
libgd2Debian:8 |
before 2.1.0-5+deb8u9, plus listed versions 2.1.0-52.1.0-5+deb8u12.1.0-5+deb8u22.1.0-5+deb8u32.1.0-5+deb8u4 Show 4 moreShow less2.1.0-5+deb8u52.1.0-5+deb8u62.1.0-5+deb8u72.1.0-5+deb8u8 |
2.1.0-5+deb8u9 |
libgdMageia:5 |
before 2.2.4-1.1.mga5 | 2.2.4-1.1.mga5 |
libwmfMageia:5 |
before 0.2.8.4-32.4.mga5 | 0.2.8.4-32.4.mga5 |
Show 17 moreShow less
| Package | Affected | Fixed |
|---|---|---|
gdSUSE:Linux Enterprise Software Development Kit 11 SP4 |
before 2.0.36.RC1-52.32.1 | 2.0.36.RC1-52.32.1 |
gdSUSE:Linux Enterprise Server 11 SP4 |
before 2.0.36.RC1-52.32.1 | 2.0.36.RC1-52.32.1 |
gdSUSE:Linux Enterprise Server for SAP Applications 11 SP4 |
before 2.0.36.RC1-52.32.1 | 2.0.36.RC1-52.32.1 |
gdSUSE:Linux Enterprise Desktop 12 SP1 |
before 2.1.0-23.1 | 2.1.0-23.1 |
gdSUSE:Linux Enterprise Desktop 12 SP2 |
before 2.1.0-23.1 | 2.1.0-23.1 |
gdSUSE:Linux Enterprise Server for Raspberry Pi 12 SP2 |
before 2.1.0-23.1 | 2.1.0-23.1 |
gdSUSE:Linux Enterprise Software Development Kit 12 SP1 |
before 2.1.0-23.1 | 2.1.0-23.1 |
gdSUSE:Linux Enterprise Software Development Kit 12 SP2 |
before 2.1.0-23.1 | 2.1.0-23.1 |
gdSUSE:Linux Enterprise Server 12 SP1 |
before 2.1.0-23.1 | 2.1.0-23.1 |
gdSUSE:Linux Enterprise Server for SAP Applications 12 SP1 |
before 2.1.0-23.1 | 2.1.0-23.1 |
gdSUSE:Linux Enterprise Server 12 SP2 |
before 2.1.0-23.1 | 2.1.0-23.1 |
gdSUSE:Linux Enterprise Server for SAP Applications 12 SP2 |
before 2.1.0-23.1 | 2.1.0-23.1 |
gdSUSE:Linux Enterprise Workstation Extension 12 SP1 |
before 2.1.0-23.1 | 2.1.0-23.1 |
gdSUSE:Linux Enterprise Workstation Extension 12 SP2 |
before 2.1.0-23.1 | 2.1.0-23.1 |
libgd2Ubuntu:14.04:LTS |
before 2.1.0-3ubuntu0.6, plus listed versions 2.1.0-22.1.0-32.1.0-3ubuntu0.12.1.0-3ubuntu0.22.1.0-3ubuntu0.32.1.0-3ubuntu0.5 |
2.1.0-3ubuntu0.6 |
libgd2Ubuntu:16.04:LTS |
before 2.1.1-4ubuntu0.16.04.6, plus listed versions 2.1.1-4build12.1.1-4build22.1.1-4ubuntu0.16.04.12.1.1-4ubuntu0.16.04.22.1.1-4ubuntu0.16.04.32.1.1-4ubuntu0.16.04.5 |
2.1.1-4ubuntu0.16.04.6 |
gdopenSUSE:Tumbleweed |
before 2.3.3-1.1 | 2.3.3-1.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2016-9317 is a medium vulnerability (CVSS 5.5) in Libgd, published January 26, 2017. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 3.73%, the 89th percentile. Fixed in gd 2.2.4-r0.
References
github.com/libgd/libgd/blob/gd-2.2.4/CHANGELOG.md
github.com/libgd/libgd/commit/1846f48e5fcdde996e7c27a4bbac5d0aef183e4b
debian.org/security/2017/dsa-3777
securityfocus.com/bid/95841
nvd.nist.gov/vuln/detail/CVE-2016-9317
github.com/advisories/GHSA-7pf6-3qr6-mjfr
Show 41 moreShow less
security.alpinelinux.org/vuln/CVE-2016-9317
security-tracker.debian.org/tracker/CVE-2016-9317
advisories.mageia.org/MGASA-2017-0055.html
bugs.mageia.org/show_bug.cgi?id=20171
github.com/libgd/libgd/releases/tag/gd-2.2.4
openwall.com/lists/oss-security/2017/01/26/1
openwall.com/lists/oss-security/2017/01/28/6
advisories.mageia.org/MGASA-2017-0086.html
bugs.mageia.org/show_bug.cgi?id=20474
suse.com/support/update/announcement/2017/suse-su-20170459-1
bugzilla.suse.com/1022264
bugzilla.suse.com/1022265
bugzilla.suse.com/1022283
suse.com/security/cve/CVE-2016-10167
suse.com/security/cve/CVE-2016-10168
suse.com/security/cve/CVE-2016-9317
suse.com/support/update/announcement/2017/suse-su-20170468-1
bugzilla.suse.com/1022263
bugzilla.suse.com/1022284
bugzilla.suse.com/1022553
suse.com/security/cve/CVE-2016-10166
suse.com/security/cve/CVE-2016-6906
suse.com/security/cve/CVE-2016-6912
ubuntu.com/security/CVE-2016-9317
ubuntu.com/security/notices/USN-3213-1
cve.org/CVERecord?id=CVE-2016-9317
ubuntu.com/security/CVE-2016-6906
ubuntu.com/security/CVE-2016-6912
ubuntu.com/security/CVE-2016-9933
ubuntu.com/security/CVE-2016-10166
ubuntu.com/security/CVE-2016-10167
ubuntu.com/security/CVE-2016-10168
suse.com/security/cve/CVE-2007-2756
suse.com/security/cve/CVE-2017-6362
suse.com/security/cve/CVE-2017-7890
suse.com/security/cve/CVE-2018-1000222
suse.com/security/cve/CVE-2018-14553
suse.com/security/cve/CVE-2018-5711
suse.com/security/cve/CVE-2019-11038
suse.com/security/cve/CVE-2019-6977
suse.com/security/cve/CVE-2019-6978