CVE-2016-10167 json
The gdImageCreateFromGd2Ctx function in gd_gd2.c in the GD Graphics Library (aka libgd) before 2.2.4 allows remote attackers to cause a den…
published 2017-03-15 9 y ago modified 2026-06-17 4 mo ago also EUVD-2016-1355
- 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 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.
Patch / fix
- libgd2 Debian 14, Debian 13, Debian 12 2.2.4-1
debian advisories DEBIAN-CVE-2016-10167
- 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-10167
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
- rh-php70-php RHEL 3 SOFTWARE_COLLECTIONS 7.0.27-1.el6
- rh-php70-php RHEL 3 SOFTWARE_COLLECTIONS 7.0.27-1.el7
- rh-php70-php-gd RHEL 3 SOFTWARE_COLLECTIONS 7.0.27-1.el6
- rh-php70-php-gd RHEL 3 SOFTWARE_COLLECTIONS 7.0.27-1.el7
- rh-php70-php-cli RHEL 3 SOFTWARE_COLLECTIONS 7.0.27-1.el6
- rh-php70-php-cli RHEL 3 SOFTWARE_COLLECTIONS 7.0.27-1.el7
- rh-php70-php-dba RHEL 3 SOFTWARE_COLLECTIONS 7.0.27-1.el6
- rh-php70-php-dba RHEL 3 SOFTWARE_COLLECTIONS 7.0.27-1.el7
red hat advisories RHSA-2018:1296RHSA-2017:3221
- php53 SLES for SAP 11 SP4, SLES 11 SP4, SLES 11 SP3-TERADATA +6 more 5.3.17-101.1
- php5 SLE Software Development Kit 12 SP2, SLE Software Development Kit 12 SP1, SLE Module for Web and Scripting 12 5.5.14-96.1
- php7 SLE Software Development Kit 12 SP2, SLE Software Development Kit 12 SP1, SLE Module for Web and Scripting 12 7.0.7-35.1
- 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:0568-1SUSE-SU-2017:0556-1SUSE-SU-2017:0534-1SUSE-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-10167
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-10167 updated cvss 5.3
gd: DoS vulnerability in gdImageCreateFromGd2Ctx()
-
Red Hat Enterprise Linux 5 gd, php, php53, libwmf Red Hat Enterprise Linux 6 gd, php, libwmf, php-gd, php-cli, php-dba, +24 more Red Hat Enterprise Linux 7 gd, libwmf, gd-progs, libwmf-lite Red Hat Software Collections rh-php56-php, rh-php56-php-gd, rh-php56-php-cli, rh-php56-php-dba, rh-php56-php-dbg, rh-php56-php-fpm, +22 moreaffected: no fix planned “Will not fix”
-
Red Hat Enterprise Linux Client Optional (v. 7) php 5.4.16-43.el7_4, php-gd 5.4.16-43.el7_4, php-cli 5.4.16-43.el7_4, php-dba 5.4.16-43.el7_4, php-fpm 5.4.16-43.el7_4, php-pdo 5.4.16-43.el7_4, +18 more Red Hat Enterprise Linux ComputeNode Optional (v. 7) php 5.4.16-43.el7_4, php-gd 5.4.16-43.el7_4, php-cli 5.4.16-43.el7_4, php-dba 5.4.16-43.el7_4, php-fpm 5.4.16-43.el7_4, php-pdo 5.4.16-43.el7_4, +18 more Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server (v. 7) php 5.4.16-43.el7_4, php-gd 5.4.16-43.el7_4, php-cli 5.4.16-43.el7_4, php-pdo 5.4.16-43.el7_4, php-xml 5.4.16-43.el7_4, php-ldap 5.4.16-43.el7_4, +8 more Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server Optional (v. 7) php-dba 5.4.16-43.el7_4, php-fpm 5.4.16-43.el7_4, php-intl 5.4.16-43.el7_4, php-snmp 5.4.16-43.el7_4, php-bcmath 5.4.16-43.el7_4, php-pspell 5.4.16-43.el7_4, +4 more Red Hat Enterprise Linux Server (v. 7) php 5.4.16-43.el7_4, php-gd 5.4.16-43.el7_4, php-cli 5.4.16-43.el7_4, php-pdo 5.4.16-43.el7_4, php-xml 5.4.16-43.el7_4, php-ldap 5.4.16-43.el7_4, +8 more Red Hat Enterprise Linux Server Optional (v. 7) php-dba 5.4.16-43.el7_4, php-fpm 5.4.16-43.el7_4, php-intl 5.4.16-43.el7_4, php-snmp 5.4.16-43.el7_4, php-bcmath 5.4.16-43.el7_4, php-pspell 5.4.16-43.el7_4, +4 morefixed: vendor fix RHSA-2017:3221
+2 more productsfewer
Red Hat Enterprise Linux Workstation (v. 7) php 5.4.16-43.el7_4, php-gd 5.4.16-43.el7_4, php-cli 5.4.16-43.el7_4, php-pdo 5.4.16-43.el7_4, php-xml 5.4.16-43.el7_4, php-ldap 5.4.16-43.el7_4, +8 more Red Hat Enterprise Linux Workstation Optional (v. 7) php-dba 5.4.16-43.el7_4, php-fpm 5.4.16-43.el7_4, php-intl 5.4.16-43.el7_4, php-snmp 5.4.16-43.el7_4, php-bcmath 5.4.16-43.el7_4, php-pspell 5.4.16-43.el7_4, +4 more -
Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) rh-php70-php 7.0.27-1.el6, rh-php70-php-gd 7.0.27-1.el6, rh-php70-php-cli 7.0.27-1.el6, rh-php70-php-dba 7.0.27-1.el6, rh-php70-php-dbg 7.0.27-1.el6, rh-php70-php-fpm 7.0.27-1.el6, +24 more Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) rh-php70-php 7.0.27-1.el7, rh-php70-php-gd 7.0.27-1.el7, rh-php70-php-cli 7.0.27-1.el7, rh-php70-php-dba 7.0.27-1.el7, rh-php70-php-dbg 7.0.27-1.el7, rh-php70-php-fpm 7.0.27-1.el7, +22 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.7) rh-php70-php 7.0.27-1.el6, rh-php70-php-gd 7.0.27-1.el6, rh-php70-php-cli 7.0.27-1.el6, rh-php70-php-dba 7.0.27-1.el6, rh-php70-php-dbg 7.0.27-1.el6, rh-php70-php-fpm 7.0.27-1.el6, +24 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.3) rh-php70-php 7.0.27-1.el7, rh-php70-php-gd 7.0.27-1.el7, rh-php70-php-cli 7.0.27-1.el7, rh-php70-php-dba 7.0.27-1.el7, rh-php70-php-dbg 7.0.27-1.el7, rh-php70-php-fpm 7.0.27-1.el7, +22 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.4) rh-php70-php 7.0.27-1.el7, rh-php70-php-gd 7.0.27-1.el7, rh-php70-php-cli 7.0.27-1.el7, rh-php70-php-dba 7.0.27-1.el7, rh-php70-php-dbg 7.0.27-1.el7, rh-php70-php-fpm 7.0.27-1.el7, +22 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.5) rh-php70-php 7.0.27-1.el7, rh-php70-php-gd 7.0.27-1.el7, rh-php70-php-cli 7.0.27-1.el7, rh-php70-php-dba 7.0.27-1.el7, rh-php70-php-dbg 7.0.27-1.el7, rh-php70-php-fpm 7.0.27-1.el7, +22 morefixed: vendor fix RHSA-2018:1296
+2 more productsfewer
Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) rh-php70-php 7.0.27-1.el6, rh-php70-php-gd 7.0.27-1.el6, rh-php70-php-cli 7.0.27-1.el6, rh-php70-php-dba 7.0.27-1.el6, rh-php70-php-dbg 7.0.27-1.el6, rh-php70-php-fpm 7.0.27-1.el6, +24 more Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) rh-php70-php 7.0.27-1.el7, rh-php70-php-gd 7.0.27-1.el7, rh-php70-php-cli 7.0.27-1.el7, rh-php70-php-dba 7.0.27-1.el7, rh-php70-php-dbg 7.0.27-1.el7, rh-php70-php-fpm 7.0.27-1.el7, +22 more -
Red Hat Software Collections rh-php71-php, rh-php71-php-gd, rh-php71-php-cli, rh-php71-php-dba, rh-php71-php-dbg, rh-php71-php-fpm, +22 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.74% chance of exploitation in the next 30 days, higher than 89% of all scored CVEs (FIRST EPSS, 2026-11-09).
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 | 4.3 | AV:N/AC:M/Au:N/C:N/I:N/A:P |
Classification
- Weakness
-
- CWE-20 Improper Input Validation
References
-
github.com
/libgd/libgd/commit/fe9ed49dafa993e3af96b6a5a589efeea9bfb36f
issue-tracking, patch, third-party-advisory
-
openwall.com
/lists/oss-security/2017/01/26/1
mailing-list, patch, third-party-advisory
-
openwall.com
/lists/oss-security/2017/01/28/6
mailing-list, patch, third-party-advisory
-
access.redhat.com
/errata/RHSA-2018:1296
vendor-advisory
-
debian.org
/security/2017/dsa-3777
vendor-advisory
-
access.redhat.com
/errata/RHSA-2017:3221
vendor-advisory
-
libgd.github.io
/release-2.2.4.html
release-notes, vendor-advisory
- tenable.com /security/tns-2017-04
-
securityfocus.com
/bid/95869
vdb-entry, third-party-advisory
-
securitytracker.com
/id/1037659
vdb-entry
Sources
- CVE List CVE-2016-10167
- NVD CVE-2016-10167
Fencer Intel 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.