CVE-2016-6128 json
The gdImageCropThreshold function in gd_crop.c in the GD Graphics Library (aka libgd) before 2.2.3, as used in PHP before 7.0.9, allows rem…
published 2016-08-07 10 y ago modified 2026-06-17 4 mo ago also EUVD-2016-7062
- cvss
- 7.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 6.8%
- EPSS 6.8% chance of exploitation in 30 days, percentile 94%
- public exploits
- 0
- none known
Summary
The gdImageCropThreshold function in gd_crop.c in the GD Graphics Library (aka libgd) before 2.2.3, as used in PHP before 7.0.9, allows remote attackers to cause a denial of service (application crash) via an invalid color index.
Patch / fix
- libgd2 Debian 14, Debian 13, Debian 12 2.2.2-29-g3c2b605-1
debian advisories DEBIAN-CVE-2016-6128
- libgd2 Ubuntu 14.04 LTS 2.1.0-3ubuntu0.2
- libgd2 Ubuntu 16.04 LTS 2.1.1-4ubuntu0.16.04.2
ubuntu advisories UBUNTU-CVE-2016-6128
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-php56 RHEL 2 SOFTWARE_COLLECTIONS 2.3-1.el6
- rh-php56 RHEL 2 SOFTWARE_COLLECTIONS 2.3-1.el7
- rh-php56-php RHEL 2 SOFTWARE_COLLECTIONS 5.6.25-1.el6
- rh-php56-php RHEL 2 SOFTWARE_COLLECTIONS 5.6.25-1.el7
- rh-php56-php-gd RHEL 2 SOFTWARE_COLLECTIONS 5.6.25-1.el6
- rh-php56-php-gd RHEL 2 SOFTWARE_COLLECTIONS 5.6.25-1.el7
- rh-php56-php-cli RHEL 2 SOFTWARE_COLLECTIONS 5.6.25-1.el6
- rh-php56-php-cli RHEL 2 SOFTWARE_COLLECTIONS 5.6.25-1.el7
red hat advisories RHSA-2016:2750
- php7 SLE Software Development Kit 12 SP1, SLE Module for Web and Scripting 12 7.0.7-15.1
- php5 SLE Software Development Kit 12 SP1, SLE Module for Web and Scripting 12 5.5.14-73.1
- gd SLES for SAP 12 SP1, SLES 12 SP1, SLED 12 SP1 +2 more 2.1.0-12.1
suse advisories SUSE-SU-2016:2460-1SUSE-SU-2016:2460-2SUSE-SU-2016:2408-1SUSE-SU-2016:2303-1
- gd openSUSE Tumbleweed 2.2.3-2.1
opensuse advisories openSUSE-SU-2024:10062-1
- gd Alpine 3.3, Alpine 3.2 2.2.1-r2
- gd Alpine 3.4 2.2.3-r0
alpine advisories ALPINE-CVE-2016-6128
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- github.com/libgd/libgd@6ff72ae commit
- github.com/libgd/libgd@1ccfe21 commit
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-6128 updated cvss 3.7
gd: Invalid color index not properly handled
-
Red Hat Software Collections php55-php, php55-php-gd, php55-php-cli, php55-php-dba, php55-php-fpm, php55-php-gmp, +20 moreaffected: no fix planned “Will not fix”
-
Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) rh-php56 2.3-1.el6, rh-php56-php 5.6.25-1.el6, rh-php56-runtime 2.3-1.el6, rh-php56-scldevel 2.3-1.el6, rh-php56-php-gd 5.6.25-1.el6, rh-php56-php-cli 5.6.25-1.el6, +26 more Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) rh-php56 2.3-1.el7, rh-php56-php 5.6.25-1.el7, rh-php56-runtime 2.3-1.el7, rh-php56-scldevel 2.3-1.el7, rh-php56-php-gd 5.6.25-1.el7, rh-php56-php-cli 5.6.25-1.el7, +24 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.7) rh-php56 2.3-1.el6, rh-php56-php 5.6.25-1.el6, rh-php56-runtime 2.3-1.el6, rh-php56-scldevel 2.3-1.el6, rh-php56-php-gd 5.6.25-1.el6, rh-php56-php-cli 5.6.25-1.el6, +26 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.2) rh-php56 2.3-1.el7, rh-php56-php 5.6.25-1.el7, rh-php56-runtime 2.3-1.el7, rh-php56-scldevel 2.3-1.el7, rh-php56-php-gd 5.6.25-1.el7, rh-php56-php-cli 5.6.25-1.el7, +24 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.3) rh-php56 2.3-1.el7, rh-php56-php 5.6.25-1.el7, rh-php56-runtime 2.3-1.el7, rh-php56-scldevel 2.3-1.el7, rh-php56-php-gd 5.6.25-1.el7, rh-php56-php-cli 5.6.25-1.el7, +24 more Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) rh-php56 2.3-1.el6, rh-php56-php 5.6.25-1.el6, rh-php56-runtime 2.3-1.el6, rh-php56-scldevel 2.3-1.el6, rh-php56-php-gd 5.6.25-1.el6, rh-php56-php-cli 5.6.25-1.el6, +26 morefixed: vendor fix RHSA-2016:2750
+1 more productsfewer
Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) rh-php56 2.3-1.el7, rh-php56-php 5.6.25-1.el7, rh-php56-runtime 2.3-1.el7, rh-php56-scldevel 2.3-1.el7, rh-php56-php-gd 5.6.25-1.el7, rh-php56-php-cli 5.6.25-1.el7, +24 more -
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, php, libwmf, php-gd, php-cli, php-dba, +22 more Red Hat OpenShift Enterprise 2 gd Red Hat Software Collections php54-php, php54-php-gd, php54-php-cli, php54-php-dba, php54-php-fpm, php54-php-pdo, +18 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
6.80% chance of exploitation in the next 30 days, higher than 94% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Classification
- Weakness
-
- CWE-20 Improper Input Validation
References
-
github.com
/libgd/libgd/commit/6ff72ae40c7c20ece939afb362d98cc37f4a1c96
issue-tracking, third-party-advisory
-
github.com
/libgd/libgd/commit/1ccfe21e14c4d18336f9da8515cd17db88c3de61
issue-tracking, patch, third-party-advisory
-
lists.opensuse.org
/opensuse-updates/2016-08/msg00086.html
vendor-advisory, mailing-list, third-party-advisory
-
lists.opensuse.org
/opensuse-updates/2016-09/msg00078.html
vendor-advisory, mailing-list, third-party-advisory
-
rhn.redhat.com
/errata/RHSA-2016-2750.html
vendor-advisory, third-party-advisory
-
security.gentoo.org
/glsa/201612-09
vendor-advisory, third-party-advisory
-
debian.org
/security/2016/dsa-3619
vendor-advisory, third-party-advisory
-
ubuntu.com
/usn/USN-3030-1
vendor-advisory, third-party-advisory
-
openwall.com
/lists/oss-security/2016/06/30/1
mailing-list, third-party-advisory
-
securityfocus.com
/bid/91509
vdb-entry, third-party-advisory
-
libgd.github.io
/release-2.2.3.html
release-notes, third-party-advisory
-
bugs.php.net
/72494
issue-tracking, permissions-required
-
securitytracker.com
/id/1036276
vdb-entry, third-party-advisory
Sources
- CVE List CVE-2016-6128
- NVD CVE-2016-6128
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.