gd: Stack overflow in gdImageFillToBorder on truecolor images
Published Jan 4, 2017
7.5
HIGHCVSS 3.0
EPSS 6.93%
Description
Stack consumption vulnerability in the gdImageFillToBorder function in gd.c in the GD Graphics Library (aka libgd) before 2.2.2, as used in PHP before 5.6.28 and 7.x before 7.0.13, allows remote attackers to cause a denial of service (segmentation violation) via a crafted imagefilltoborder call that triggers use of a negative color value.
Affected products
No data.
Running on/with
- ≤ 5.6.27
- 7.0.0
- 7.0.1
- 7.0.2
- 7.0.3
- 7.0.4
- 7.0.5
- 7.0.6
- 7.0.7
- 7.0.8
- 7.0.9
- 7.0.10
- 7.0.11
No data.
Red Hat Software Collections for Red Hat Enterprise Linux 6
rh-php70-php-0:7.0.27-1.el6
Fixed · RHSA-2018:1296
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS
rh-php70-php-0:7.0.27-1.el6
Fixed · RHSA-2018:1296
Red Hat Software Collections for Red Hat Enterprise Linux 7
rh-php70-php-0:7.0.27-1.el7
Fixed · RHSA-2018:1296
Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS
rh-php70-php-0:7.0.27-1.el7
Fixed · RHSA-2018:1296
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS
rh-php70-php-0:7.0.27-1.el7
Fixed · RHSA-2018:1296
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS
rh-php70-php-0:7.0.27-1.el7
Fixed · RHSA-2018:1296
Red Hat Enterprise Linux 5
gd
Will not fix
Red Hat Enterprise Linux 5
php
Will not fix
Red Hat Enterprise Linux 5
php53
Will not fix
Red Hat Enterprise Linux 6
gd
Will not fix
Red Hat Enterprise Linux 6
php
Will not fix
Red Hat Enterprise Linux 7
gd
Will not fix
Red Hat Enterprise Linux 7
php
Will not fix
Red Hat OpenShift Enterprise 2
gd
Will not fix
Red Hat OpenShift Enterprise 2
php
Will not fix
Red Hat Software Collections
rh-php56-php
Will not fix
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Software Collections for Red Hat Enterprise Linux 6 | rh-php70-php-0:7.0.27-1.el6 | Fixed | RHSA-2018:1296 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS | rh-php70-php-0:7.0.27-1.el6 | Fixed | RHSA-2018:1296 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-php70-php-0:7.0.27-1.el7 | Fixed | RHSA-2018:1296 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS | rh-php70-php-0:7.0.27-1.el7 | Fixed | RHSA-2018:1296 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS | rh-php70-php-0:7.0.27-1.el7 | Fixed | RHSA-2018:1296 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS | rh-php70-php-0:7.0.27-1.el7 | Fixed | RHSA-2018:1296 |
| Red Hat Enterprise Linux 5 | gd | Will not fix | n/a |
| Red Hat Enterprise Linux 5 | php | Will not fix | n/a |
| Red Hat Enterprise Linux 5 | php53 | Will not fix | n/a |
| Red Hat Enterprise Linux 6 | gd | Will not fix | n/a |
| Red Hat Enterprise Linux 6 | php | Will not fix | n/a |
| Red Hat Enterprise Linux 7 | gd | Will not fix | n/a |
| Red Hat Enterprise Linux 7 | php | Will not fix | n/a |
| Red Hat OpenShift Enterprise 2 | gd | Will not fix | n/a |
| Red Hat OpenShift Enterprise 2 | php | Will not fix | n/a |
| Red Hat Software Collections | rh-php56-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.
No CVSS v3.1 score for this CVE.
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
1 other source (Red Hat) ▾
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/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 (23 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 6.93% (0.06927) | 93.91th | v5 (v2026.06.15) |
| Jun 15, 2026 | 6.87% (0.06871) | 93.20th | v5 (v2026.06.15) |
| May 31, 2026 | 8.29% (0.08286) | 92.38th | v4 (v2025.03.14) |
| Dec 28, 2025 | 11.10% (0.11102) | 93.22th | v4 (v2025.03.14) |
| Dec 27, 2025 | 5.33% (0.05329) | 89.77th | v4 (v2025.03.14) |
| Oct 28, 2025 | 11.10% (0.11102) | 93.12th | v4 (v2025.03.14) |
| Oct 27, 2025 | 5.33% (0.05329) | 89.61th | v4 (v2025.03.14) |
| Oct 1, 2025 | 11.10% (0.11102) | 93.23th | v4 (v2025.03.14) |
| Jul 30, 2025 | 5.33% (0.05329) | 89.66th | v4 (v2025.03.14) |
| May 30, 2025 | 11.23% (0.11233) | 93.12th | v4 (v2025.03.14) |
| Apr 12, 2025 | 4.50% (0.04504) | 88.15th | v4 (v2025.03.14) |
| Mar 30, 2025 | 8.29% (0.08286) | 91.44th | v4 (v2025.03.14) |
| Mar 29, 2025 | 11.39% (0.11385) | 89.24th | v4 (v2025.03.14) |
| Mar 17, 2025 | 8.29% (0.08286) | 91.64th | v4 (v2025.03.14) |
| Dec 17, 2024 | 10.45% (0.10445) | 94.99th | v3 (v2023.03.01) |
| Apr 6, 2024 | 13.56% (0.13565) | 95.49th | v3 (v2023.03.01) |
| Jan 17, 2024 | 12.22% (0.12221) | 94.87th | v3 (v2023.03.01) |
| Dec 8, 2023 | 8.89% (0.08889) | 93.95th | v3 (v2023.03.01) |
| Oct 26, 2023 | 8.40% (0.08400) | 93.69th | v3 (v2023.03.01) |
| Mar 7, 2023 | 5.75% (0.05750) | 92.14th | 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 (19)
- http://lists.opensuse.org/opensuse-updates/2016-12/msg00133.html vendor-advisoryx_refsource_SUSE
- http://lists.opensuse.org/opensuse-updates/2016-12/msg00142.html vendor-advisoryx_refsource_SUSE
- http://lists.opensuse.org/opensuse-updates/2017-01/msg00002.html vendor-advisoryx_refsource_SUSE
- http://lists.opensuse.org/opensuse-updates/2017-01/msg00034.html vendor-advisoryx_refsource_SUSE
- http://lists.opensuse.org/opensuse-updates/2017-01/msg00054.html vendor-advisoryx_refsource_SUSE
- http://www.debian.org/security/2017/dsa-3751 vendor-advisoryx_refsource_DEBIAN
- http://www.openwall.com/lists/oss-security/2016/12/12/2 mailing-listx_refsource_MLISTThird Party Advisory
- http://www.php.net/ChangeLog-5.php x_refsource_CONFIRMRelease NotesVendor Advisory
- http://www.php.net/ChangeLog-7.php x_refsource_CONFIRMRelease NotesVendor Advisory
- http://www.securityfocus.com/bid/94865 vdb-entryx_refsource_BID
- https://access.redhat.com/errata/RHSA-2018:1296 vendor-advisoryx_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2016-9933 Vendor Advisory
- https://bugs.php.net/bug.php?id=72696 x_refsource_CONFIRMVendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1404723 Issue Tracking
- https://github.com/libgd/libgd/commit/77f619d48259383628c3ec4654b1ad578e9eb40e x_refsource_CONFIRMPatchVendor Advisory
- https://github.com/libgd/libgd/issues/215 x_refsource_CONFIRMVendor Advisory
- https://github.com/php/php-src/commit/863d37ea66d5c960db08d6f4a2cbd2518f0f80d1 x_refsource_CONFIRMVendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2016-9933
- https://www.cve.org/CVERecord?id=CVE-2016-9933
Change history (0)
No recorded changes yet.