gd: gdImageFillToBorder deep recursion leading to stack overflow
Published May 16, 2016
7.5
HIGHCVSS 3.0
EPSS 8.61%
Description
Stack consumption vulnerability in GD in PHP before 5.6.12 allows remote attackers to cause a denial of service via a crafted imagefilltoborder call.
Affected products
No data.
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
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 Software Collections
php54-php
Will not fix
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 | 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 Software Collections | php54-php | Will not fix | n/a |
| Red Hat Software Collections | php55-php | Will not fix | 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:N/I:N/A:H
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 (49 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 8.61% (0.08607) | 94.93th | v5 (v2026.06.15) |
| Jun 15, 2026 | 8.28% (0.08276) | 94.18th | v5 (v2026.06.15) |
| Mar 4, 2026 | 3.77% (0.03775) | 87.82th | v4 (v2025.03.14) |
| Mar 1, 2026 | 1.72% (0.01718) | 82.17th | v4 (v2025.03.14) |
| Feb 4, 2026 | 3.77% (0.03775) | 87.76th | v4 (v2025.03.14) |
| Feb 1, 2026 | 1.72% (0.01718) | 82.05th | v4 (v2025.03.14) |
| Jan 4, 2026 | 2.92% (0.02921) | 85.98th | v4 (v2025.03.14) |
| Jan 1, 2026 | 1.32% (0.01321) | 79.53th | v4 (v2025.03.14) |
| Dec 28, 2025 | 2.92% (0.02921) | 85.97th | v4 (v2025.03.14) |
| Dec 27, 2025 | 1.72% (0.01717) | 81.96th | v4 (v2025.03.14) |
| Dec 4, 2025 | 2.92% (0.02921) | 85.94th | v4 (v2025.03.14) |
| Dec 1, 2025 | 1.32% (0.01321) | 79.37th | v4 (v2025.03.14) |
| Nov 4, 2025 | 2.92% (0.02921) | 85.88th | v4 (v2025.03.14) |
| Nov 1, 2025 | 1.32% (0.01321) | 79.33th | v4 (v2025.03.14) |
| Oct 28, 2025 | 2.92% (0.02921) | 85.87th | v4 (v2025.03.14) |
| Oct 27, 2025 | 1.72% (0.01717) | 81.75th | v4 (v2025.03.14) |
| Oct 4, 2025 | 2.92% (0.02921) | 85.88th | v4 (v2025.03.14) |
| Jul 30, 2025 | 1.72% (0.01717) | 81.60th | v4 (v2025.03.14) |
| Jul 12, 2025 | 2.92% (0.02921) | 85.82th | v4 (v2025.03.14) |
| Jul 4, 2025 | 4.08% (0.04079) | 88.07th | v4 (v2025.03.14) |
| Jul 1, 2025 | 1.57% (0.01569) | 80.74th | v4 (v2025.03.14) |
| Jun 4, 2025 | 4.08% (0.04079) | 87.99th | v4 (v2025.03.14) |
| Jun 1, 2025 | 1.57% (0.01569) | 80.68th | v4 (v2025.03.14) |
| May 30, 2025 | 4.08% (0.04079) | 87.97th | v4 (v2025.03.14) |
| May 4, 2025 | 2.72% (0.02724) | 85.13th | v4 (v2025.03.14) |
| May 1, 2025 | 1.08% (0.01080) | 76.72th | v4 (v2025.03.14) |
| Apr 18, 2025 | 2.72% (0.02724) | 85.13th | v4 (v2025.03.14) |
| Apr 17, 2025 | 1.08% (0.01080) | 76.63th | v4 (v2025.03.14) |
| Apr 12, 2025 | 2.80% (0.02800) | 84.93th | v4 (v2025.03.14) |
| Apr 11, 2025 | 1.05% (0.01047) | 75.67th | v4 (v2025.03.14) |
| Apr 10, 2025 | 2.80% (0.02800) | 84.93th | v4 (v2025.03.14) |
| Apr 9, 2025 | 1.05% (0.01047) | 75.66th | v4 (v2025.03.14) |
| Apr 7, 2025 | 2.80% (0.02800) | 84.91th | v4 (v2025.03.14) |
| Apr 6, 2025 | 1.05% (0.01047) | 75.63th | v4 (v2025.03.14) |
| Mar 30, 2025 | 2.80% (0.02800) | 84.85th | v4 (v2025.03.14) |
| Mar 29, 2025 | 4.92% (0.04924) | 82.30th | v4 (v2025.03.14) |
| Mar 27, 2025 | 2.80% (0.02800) | 84.38th | v4 (v2025.03.14) |
| Mar 26, 2025 | 1.05% (0.01047) | 75.40th | v4 (v2025.03.14) |
| Mar 22, 2025 | 2.80% (0.02800) | 84.93th | v4 (v2025.03.14) |
| Mar 21, 2025 | 1.05% (0.01047) | 75.60th | v4 (v2025.03.14) |
| Mar 18, 2025 | 2.80% (0.02800) | 85.20th | v4 (v2025.03.14) |
| Mar 17, 2025 | 1.05% (0.01047) | 75.99th | v4 (v2025.03.14) |
| Dec 12, 2024 | 3.50% (0.03495) | 91.90th | v3 (v2023.03.01) |
| Aug 17, 2023 | 3.50% (0.03495) | 90.31th | v3 (v2023.03.01) |
| Mar 7, 2023 | 2.50% (0.02496) | 88.40th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.32% (0.01319) | 71.27th | v2 (v2022.01.01) |
| Feb 23, 2023 | 1.32% (0.01319) | 71.23th | v2 (v2022.01.01) |
| Apr 1, 2022 | 1.32% (0.01319) | 69.22th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.32% (0.01319) | 44.98th | v2 (v2022.01.01) |
References (11)
- http://lists.opensuse.org/opensuse-updates/2016-06/msg00027.html vendor-advisoryx_refsource_SUSE
- http://php.net/ChangeLog-5.php x_refsource_CONFIRM
- http://rhn.redhat.com/errata/RHSA-2016-2750.html vendor-advisoryx_refsource_REDHAT
- http://www.debian.org/security/2016/dsa-3587 vendor-advisoryx_refsource_DEBIAN
- http://www.ubuntu.com/usn/USN-2987-1 vendor-advisoryx_refsource_UBUNTU
- https://access.redhat.com/security/cve/CVE-2015-8874 Vendor Advisory
- https://bugs.php.net/bug.php?id=66387 x_refsource_CONFIRMExploit
- https://bugzilla.redhat.com/show_bug.cgi?id=1336772 Issue Tracking
- https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05240731 x_refsource_CONFIRM
- https://nvd.nist.gov/vuln/detail/CVE-2015-8874
- https://www.cve.org/CVERecord?id=CVE-2015-8874
| Link | Providers | Tags |
|---|---|---|
| http://lists.opensuse.org/opensuse-updates/2016-06/msg00027.html | vendor-advisoryx_refsource_SUSE | |
| http://php.net/ChangeLog-5.php | x_refsource_CONFIRM | |
| http://rhn.redhat.com/errata/RHSA-2016-2750.html | vendor-advisoryx_refsource_REDHAT | |
| http://www.debian.org/security/2016/dsa-3587 | vendor-advisoryx_refsource_DEBIAN | |
| http://www.ubuntu.com/usn/USN-2987-1 | vendor-advisoryx_refsource_UBUNTU | |
| https://access.redhat.com/security/cve/CVE-2015-8874 | Vendor Advisory | |
| https://bugs.php.net/bug.php?id=66387 | x_refsource_CONFIRMExploit | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1336772 | Issue Tracking | |
| https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05240731 | x_refsource_CONFIRM | |
| https://nvd.nist.gov/vuln/detail/CVE-2015-8874 | ||
| https://www.cve.org/CVERecord?id=CVE-2015-8874 |
Change history (0)
No recorded changes yet.