gd: Unsigned integer underflow _gdContributionsAlloc()
Published Mar 15, 2017
9.8
CRITICALCVSS 3.0
EPSS 10.69%
Description
Integer underflow in the _gdContributionsAlloc function in gd_interpolation.c in the GD Graphics Library (aka libgd) before 2.2.4 allows remote attackers to have unspecified impact via vectors related to decrementing the u variable.
Affected products
No data.
No data.
Red Hat Software Collections for Red Hat Enterprise Linux 7
rh-php71-php-0:7.1.30-1.el7
Fixed · RHSA-2019:2519
Red Hat Software Collections for Red Hat Enterprise Linux 7
rh-php72-php-0:7.2.24-1.el7
Fixed · RHSA-2019:3299
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS
rh-php71-php-0:7.1.30-1.el7
Fixed · RHSA-2019:2519
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS
rh-php71-php-0:7.1.30-1.el7
Fixed · RHSA-2019:2519
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS
rh-php72-php-0:7.2.24-1.el7
Fixed · RHSA-2019:3299
Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS
rh-php71-php-0:7.1.30-1.el7
Fixed · RHSA-2019:2519
Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS
rh-php72-php-0:7.2.24-1.el7
Fixed · RHSA-2019:3299
Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUS
rh-php72-php-0:7.2.24-1.el7
Fixed · RHSA-2019:3299
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 Enterprise Linux 8
gd
Not affected
Red Hat Enterprise Linux 8
php:7.2/php
Not affected
Red Hat OpenShift Enterprise 2
php
Not affected
Red Hat Software Collections
rh-php56-php
Will not fix
Red Hat Software Collections
rh-php70-php
Affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-php71-php-0:7.1.30-1.el7 | Fixed | RHSA-2019:2519 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-php72-php-0:7.2.24-1.el7 | Fixed | RHSA-2019:3299 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS | rh-php71-php-0:7.1.30-1.el7 | Fixed | RHSA-2019:2519 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS | rh-php71-php-0:7.1.30-1.el7 | Fixed | RHSA-2019:2519 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS | rh-php72-php-0:7.2.24-1.el7 | Fixed | RHSA-2019:3299 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS | rh-php71-php-0:7.1.30-1.el7 | Fixed | RHSA-2019:2519 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS | rh-php72-php-0:7.2.24-1.el7 | Fixed | RHSA-2019:3299 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUS | rh-php72-php-0:7.2.24-1.el7 | Fixed | RHSA-2019:3299 |
| 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 Enterprise Linux 8 | gd | Not affected | n/a |
| Red Hat Enterprise Linux 8 | php:7.2/php | Not affected | n/a |
| Red Hat OpenShift Enterprise 2 | php | Not affected | n/a |
| Red Hat Software Collections | rh-php56-php | Will not fix | n/a |
| Red Hat Software Collections | rh-php70-php | Affected | n/a |
No package ranges for this CVE.
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
1 other source (Red Hat) ▾
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L
AV:N/AC:L/Au:N/C:P/I:P/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 (45 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 10.69% (0.10687) | 95.68th | v5 (v2026.06.15) |
| Jun 15, 2026 | 10.69% (0.10687) | 95.23th | v5 (v2026.06.15) |
| May 29, 2026 | 6.87% (0.06873) | 91.51th | v4 (v2025.03.14) |
| Mar 4, 2026 | 8.33% (0.08333) | 92.13th | v4 (v2025.03.14) |
| Mar 1, 2026 | 3.51% (0.03513) | 87.45th | v4 (v2025.03.14) |
| Feb 4, 2026 | 8.33% (0.08333) | 92.06th | v4 (v2025.03.14) |
| Feb 1, 2026 | 3.51% (0.03513) | 87.37th | v4 (v2025.03.14) |
| Jan 4, 2026 | 8.33% (0.08333) | 91.99th | v4 (v2025.03.14) |
| Jan 1, 2026 | 3.51% (0.03513) | 87.33th | v4 (v2025.03.14) |
| Dec 4, 2025 | 8.33% (0.08333) | 91.93th | v4 (v2025.03.14) |
| Dec 1, 2025 | 3.51% (0.03513) | 87.26th | v4 (v2025.03.14) |
| Nov 4, 2025 | 8.33% (0.08333) | 91.88th | v4 (v2025.03.14) |
| Nov 1, 2025 | 3.51% (0.03513) | 87.17th | v4 (v2025.03.14) |
| Oct 4, 2025 | 8.33% (0.08333) | 91.92th | v4 (v2025.03.14) |
| Oct 1, 2025 | 3.51% (0.03513) | 87.19th | v4 (v2025.03.14) |
| Sep 4, 2025 | 8.33% (0.08333) | 91.97th | v4 (v2025.03.14) |
| Sep 1, 2025 | 3.51% (0.03513) | 87.24th | v4 (v2025.03.14) |
| Aug 4, 2025 | 8.33% (0.08333) | 91.91th | v4 (v2025.03.14) |
| Aug 1, 2025 | 3.51% (0.03513) | 87.27th | v4 (v2025.03.14) |
| Jul 4, 2025 | 8.33% (0.08333) | 91.85th | v4 (v2025.03.14) |
| Jul 1, 2025 | 3.51% (0.03513) | 87.18th | v4 (v2025.03.14) |
| Jun 6, 2025 | 8.33% (0.08333) | 91.80th | v4 (v2025.03.14) |
| Jun 5, 2025 | 5.26% (0.05259) | 89.47th | v4 (v2025.03.14) |
| Jun 4, 2025 | 6.97% (0.06974) | 90.94th | v4 (v2025.03.14) |
| Jun 1, 2025 | 0.84% (0.00841) | 73.68th | v4 (v2025.03.14) |
| May 4, 2025 | 3.99% (0.03994) | 87.77th | v4 (v2025.03.14) |
| May 1, 2025 | 1.31% (0.01310) | 78.77th | v4 (v2025.03.14) |
| Apr 13, 2025 | 3.99% (0.03994) | 87.41th | v4 (v2025.03.14) |
| Apr 12, 2025 | 1.31% (0.01310) | 78.09th | v4 (v2025.03.14) |
| Apr 8, 2025 | 3.99% (0.03994) | 87.39th | v4 (v2025.03.14) |
| Apr 6, 2025 | 0.84% (0.00841) | 72.70th | v4 (v2025.03.14) |
| Mar 30, 2025 | 3.18% (0.03184) | 85.81th | v4 (v2025.03.14) |
| Mar 29, 2025 | 7.81% (0.07815) | 86.35th | v4 (v2025.03.14) |
| Mar 27, 2025 | 3.18% (0.03184) | 85.35th | v4 (v2025.03.14) |
| Mar 26, 2025 | 0.84% (0.00841) | 72.47th | v4 (v2025.03.14) |
| Mar 23, 2025 | 3.18% (0.03184) | 84.55th | v4 (v2025.03.14) |
| Mar 22, 2025 | 0.84% (0.00841) | 72.69th | v4 (v2025.03.14) |
| Mar 17, 2025 | 3.18% (0.03184) | 86.11th | v4 (v2025.03.14) |
| Dec 12, 2024 | 1.80% (0.01797) | 88.61th | v3 (v2023.03.01) |
| Jun 18, 2024 | 1.80% (0.01797) | 88.20th | v3 (v2023.03.01) |
| Mar 7, 2023 | 1.80% (0.01797) | 86.20th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.41% (0.01408) | 72.89th | v2 (v2022.01.01) |
| Mar 2, 2023 | 1.41% (0.01408) | 72.88th | v2 (v2022.01.01) |
| Apr 1, 2022 | 1.41% (0.01408) | 70.87th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.41% (0.01408) | 49.94th | v2 (v2022.01.01) |
References (12)
- http://libgd.github.io/release-2.2.4.html x_refsource_CONFIRMRelease NotesVendor Advisory
- http://www.debian.org/security/2017/dsa-3777 vendor-advisoryx_refsource_DEBIAN
- http://www.openwall.com/lists/oss-security/2017/01/26/1 mailing-listx_refsource_MLISTMailing ListPatchThird Party Advisory
- http://www.openwall.com/lists/oss-security/2017/01/28/6 mailing-listx_refsource_MLISTMailing ListPatchThird Party Advisory
- http://www.securityfocus.com/bid/95869 vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry
- https://access.redhat.com/errata/RHSA-2019:2519 vendor-advisoryx_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2019:3299 vendor-advisoryx_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2016-10166 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1418983 Issue Tracking
- https://github.com/libgd/libgd/commit/60bfb401ad5a4a8ae995dcd36372fe15c71e1a35 x_refsource_CONFIRMIssue TrackingPatchThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2016-10166
- https://www.cve.org/CVERecord?id=CVE-2016-10166
Change history (0)
No recorded changes yet.