gd: Invalid color index not properly handled
Published Aug 7, 2016
7.5
HIGHCVSS 3.1
EPSS 6.80%
Description
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.
Affected products
No data.
Configuration 1
- 8.0
Configuration 3
Configuration 4
- 12.04
- 14.04
- 15.10
- 16.04
No data.
Red Hat Software Collections for Red Hat Enterprise Linux 6
rh-php56-0:2.3-1.el6
Fixed · RHSA-2016:2750
Red Hat Software Collections for Red Hat Enterprise Linux 6
rh-php56-php-0:5.6.25-1.el6
Fixed · RHSA-2016:2750
Red Hat Software Collections for Red Hat Enterprise Linux 6
rh-php56-php-pear-1:1.9.5-4.el6
Fixed · RHSA-2016:2750
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS
rh-php56-0:2.3-1.el6
Fixed · RHSA-2016:2750
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS
rh-php56-php-0:5.6.25-1.el6
Fixed · RHSA-2016:2750
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS
rh-php56-php-pear-1:1.9.5-4.el6
Fixed · RHSA-2016:2750
Red Hat Software Collections for Red Hat Enterprise Linux 7
rh-php56-0:2.3-1.el7
Fixed · RHSA-2016:2750
Red Hat Software Collections for Red Hat Enterprise Linux 7
rh-php56-php-0:5.6.25-1.el7
Fixed · RHSA-2016:2750
Red Hat Software Collections for Red Hat Enterprise Linux 7
rh-php56-php-pear-1:1.9.5-4.el7
Fixed · RHSA-2016:2750
Red Hat Software Collections for Red Hat Enterprise Linux 7.2 EUS
rh-php56-0:2.3-1.el7
Fixed · RHSA-2016:2750
Red Hat Software Collections for Red Hat Enterprise Linux 7.2 EUS
rh-php56-php-0:5.6.25-1.el7
Fixed · RHSA-2016:2750
Red Hat Software Collections for Red Hat Enterprise Linux 7.2 EUS
rh-php56-php-pear-1:1.9.5-4.el7
Fixed · RHSA-2016:2750
Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS
rh-php56-0:2.3-1.el7
Fixed · RHSA-2016:2750
Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS
rh-php56-php-0:5.6.25-1.el7
Fixed · RHSA-2016:2750
Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS
rh-php56-php-pear-1:1.9.5-4.el7
Fixed · RHSA-2016:2750
Red Hat Enterprise Linux 5
gd
Not affected
Red Hat Enterprise Linux 5
libwmf
Not affected
Red Hat Enterprise Linux 5
php
Not affected
Red Hat Enterprise Linux 5
php53
Not affected
Red Hat Enterprise Linux 6
gd
Not affected
Red Hat Enterprise Linux 6
libwmf
Not affected
Red Hat Enterprise Linux 6
php
Not affected
Red Hat Enterprise Linux 7
gd
Not affected
Red Hat Enterprise Linux 7
libwmf
Not affected
Red Hat Enterprise Linux 7
php
Not affected
Red Hat OpenShift Enterprise 2
gd
Not affected
Red Hat Software Collections
php54-php
Not affected
Red Hat Software Collections
php55-php
Will not fix
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Software Collections for Red Hat Enterprise Linux 6 | rh-php56-0:2.3-1.el6 | Fixed | RHSA-2016:2750 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6 | rh-php56-php-0:5.6.25-1.el6 | Fixed | RHSA-2016:2750 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6 | rh-php56-php-pear-1:1.9.5-4.el6 | Fixed | RHSA-2016:2750 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS | rh-php56-0:2.3-1.el6 | Fixed | RHSA-2016:2750 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS | rh-php56-php-0:5.6.25-1.el6 | Fixed | RHSA-2016:2750 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS | rh-php56-php-pear-1:1.9.5-4.el6 | Fixed | RHSA-2016:2750 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-php56-0:2.3-1.el7 | Fixed | RHSA-2016:2750 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-php56-php-0:5.6.25-1.el7 | Fixed | RHSA-2016:2750 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-php56-php-pear-1:1.9.5-4.el7 | Fixed | RHSA-2016:2750 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.2 EUS | rh-php56-0:2.3-1.el7 | Fixed | RHSA-2016:2750 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.2 EUS | rh-php56-php-0:5.6.25-1.el7 | Fixed | RHSA-2016:2750 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.2 EUS | rh-php56-php-pear-1:1.9.5-4.el7 | Fixed | RHSA-2016:2750 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS | rh-php56-0:2.3-1.el7 | Fixed | RHSA-2016:2750 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS | rh-php56-php-0:5.6.25-1.el7 | Fixed | RHSA-2016:2750 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS | rh-php56-php-pear-1:1.9.5-4.el7 | Fixed | RHSA-2016:2750 |
| Red Hat Enterprise Linux 5 | gd | Not affected | n/a |
| Red Hat Enterprise Linux 5 | libwmf | Not affected | n/a |
| Red Hat Enterprise Linux 5 | php | Not affected | n/a |
| Red Hat Enterprise Linux 5 | php53 | Not affected | n/a |
| Red Hat Enterprise Linux 6 | gd | Not affected | n/a |
| Red Hat Enterprise Linux 6 | libwmf | Not affected | n/a |
| Red Hat Enterprise Linux 6 | php | Not affected | n/a |
| Red Hat Enterprise Linux 7 | gd | Not affected | n/a |
| Red Hat Enterprise Linux 7 | libwmf | Not affected | n/a |
| Red Hat Enterprise Linux 7 | php | Not affected | n/a |
| Red Hat OpenShift Enterprise 2 | gd | Not affected | n/a |
| Red Hat Software Collections | php54-php | Not affected | n/a |
| Red Hat Software Collections | php55-php | Will not fix | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
Red Hat Product Security has rated this issue as having Low security impact. This issue is not currently planned to be addressed in future updates. For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
AV:N/AC:L/Au:N/C:N/I:N/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2022–2026- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (25 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 6.80% (0.06805) | 93.81th | v5 (v2026.06.15) |
| Jun 15, 2026 | 6.68% (0.06677) | 93.02th | v5 (v2026.06.15) |
| Jun 6, 2026 | 9.01% (0.09006) | 92.78th | v4 (v2025.03.14) |
| Feb 18, 2026 | 12.38% (0.12384) | 93.72th | v4 (v2025.03.14) |
| Jan 14, 2026 | 15.59% (0.15586) | 94.47th | v4 (v2025.03.14) |
| Dec 28, 2025 | 6.82% (0.06819) | 91.02th | v4 (v2025.03.14) |
| Dec 27, 2025 | 3.49% (0.03493) | 87.27th | v4 (v2025.03.14) |
| Oct 28, 2025 | 6.82% (0.06819) | 90.91th | v4 (v2025.03.14) |
| Oct 27, 2025 | 3.49% (0.03493) | 87.10th | v4 (v2025.03.14) |
| Oct 25, 2025 | 6.82% (0.06819) | 90.90th | v4 (v2025.03.14) |
| Oct 1, 2025 | 19.23% (0.19232) | 95.17th | v4 (v2025.03.14) |
| Sep 14, 2025 | 9.32% (0.09320) | 92.45th | v4 (v2025.03.14) |
| Jul 30, 2025 | 5.84% (0.05837) | 90.18th | v4 (v2025.03.14) |
| May 30, 2025 | 11.07% (0.11067) | 93.07th | v4 (v2025.03.14) |
| Mar 30, 2025 | 13.68% (0.13677) | 93.65th | v4 (v2025.03.14) |
| Mar 29, 2025 | 18.02% (0.18021) | 92.03th | v4 (v2025.03.14) |
| Mar 17, 2025 | 13.68% (0.13677) | 93.72th | v4 (v2025.03.14) |
| Dec 12, 2024 | 3.37% (0.03372) | 91.75th | v3 (v2023.03.01) |
| Jul 11, 2023 | 3.37% (0.03372) | 90.08th | v3 (v2023.03.01) |
| May 29, 2023 | 3.17% (0.03174) | 89.71th | v3 (v2023.03.01) |
| Mar 11, 2023 | 2.67% (0.02670) | 88.76th | v3 (v2023.03.01) |
| Mar 7, 2023 | 2.89% (0.02894) | 89.19th | v3 (v2023.03.01) |
| Mar 6, 2023 | 3.78% (0.03779) | 85.48th | v2 (v2022.01.01) |
| Apr 1, 2022 | 3.78% (0.03779) | 84.01th | v2 (v2022.01.01) |
| Feb 4, 2022 | 3.78% (0.03779) | 67.21th | v2 (v2022.01.01) |
References (17)
- http://lists.opensuse.org/opensuse-updates/2016-08/msg00086.html vendor-advisoryx_refsource_SUSEMailing ListThird Party Advisory
- http://lists.opensuse.org/opensuse-updates/2016-09/msg00078.html vendor-advisoryx_refsource_SUSEMailing ListThird Party Advisory
- http://rhn.redhat.com/errata/RHSA-2016-2750.html vendor-advisoryx_refsource_REDHATThird Party Advisory
- http://www.debian.org/security/2016/dsa-3619 vendor-advisoryx_refsource_DEBIANThird Party Advisory
- http://www.openwall.com/lists/oss-security/2016/06/30/1 mailing-listx_refsource_MLISTMailing ListThird Party Advisory
- http://www.securityfocus.com/bid/91509 vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry
- http://www.securitytracker.com/id/1036276 vdb-entryx_refsource_SECTRACKThird Party AdvisoryVDB Entry
- http://www.ubuntu.com/usn/USN-3030-1 vendor-advisoryx_refsource_UBUNTUThird Party Advisory
- https://access.redhat.com/security/cve/CVE-2016-6128 Vendor Advisory
- https://bugs.php.net/72494 x_refsource_CONFIRMIssue TrackingPermissions Required
- https://bugzilla.redhat.com/show_bug.cgi?id=1351603 Issue Tracking
- https://github.com/libgd/libgd/commit/1ccfe21e14c4d18336f9da8515cd17db88c3de61 x_refsource_CONFIRMIssue TrackingPatchThird Party Advisory
- https://github.com/libgd/libgd/commit/6ff72ae40c7c20ece939afb362d98cc37f4a1c96 x_refsource_CONFIRMIssue TrackingThird Party Advisory
- https://libgd.github.io/release-2.2.3.html x_refsource_CONFIRMRelease NotesThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2016-6128
- https://security.gentoo.org/glsa/201612-09 vendor-advisoryx_refsource_GENTOOThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2016-6128
Change history (0)
No recorded changes yet.