php: Stack based buffer overflow in dynamicGetbuf
Published Jan 4, 2017
9.8
CRITICALCVSS 3.0
EPSS 4.79%
Description
Integer signedness error in the dynamicGetbuf function in gd_io_dp.c in the GD Graphics Library (aka libgd) through 2.2.3, as used in PHP before 5.6.28 and 7.x before 7.0.13, allows remote attackers to cause a denial of service (stack-based buffer overflow) or possibly have unspecified other impact via a crafted imagecreatefromstring call.
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
- 7.0.12
No data.
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
Red Hat Software Collections
rh-php70-php
Will not fix
| Product | Package | State | Advisory |
|---|---|---|---|
| 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 |
| Red Hat Software Collections | rh-php70-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:H/I:H/A:H
1 other source (Red Hat) ▾
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
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 (15 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 4.79% (0.04786) | 91.65th | v5 (v2026.06.15) |
| Jun 15, 2026 | 4.79% (0.04786) | 90.75th | v5 (v2026.06.15) |
| Mar 30, 2025 | 1.75% (0.01746) | 80.86th | v4 (v2025.03.14) |
| Mar 29, 2025 | 3.71% (0.03708) | 79.67th | v4 (v2025.03.14) |
| Mar 17, 2025 | 1.75% (0.01746) | 81.28th | v4 (v2025.03.14) |
| Dec 12, 2024 | 3.87% (0.03873) | 92.27th | v3 (v2023.03.01) |
| Apr 6, 2024 | 3.87% (0.03873) | 91.75th | v3 (v2023.03.01) |
| Jan 17, 2024 | 3.44% (0.03441) | 90.55th | v3 (v2023.03.01) |
| Dec 8, 2023 | 2.94% (0.02944) | 89.75th | v3 (v2023.03.01) |
| Oct 26, 2023 | 2.77% (0.02770) | 89.43th | v3 (v2023.03.01) |
| Mar 7, 2023 | 2.48% (0.02482) | 88.38th | 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://www.debian.org/security/2016/dsa-3693 vendor-advisoryx_refsource_DEBIAN
- http://www.openwall.com/lists/oss-security/2016/10/15/1 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/93594 vdb-entryx_refsource_BID
- https://access.redhat.com/security/cve/CVE-2016-8670 Vendor Advisory
- https://bugs.php.net/bug.php?id=73280 x_refsource_CONFIRMVendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1391068 Issue Tracking
- https://github.com/libgd/libgd/commit/53110871935244816bbb9d131da0bccff734bfe9 x_refsource_CONFIRMVendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2016-8670
- https://support.f5.com/csp/article/K21336065?utm_source=f5support&%3Butm_medium=RSS x_refsource_CONFIRM
- https://www.cve.org/CVERecord?id=CVE-2016-8670
| Link | Providers | Tags |
|---|---|---|
| http://www.debian.org/security/2016/dsa-3693 | vendor-advisoryx_refsource_DEBIAN | |
| http://www.openwall.com/lists/oss-security/2016/10/15/1 | 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/93594 | vdb-entryx_refsource_BID | |
| https://access.redhat.com/security/cve/CVE-2016-8670 | Vendor Advisory | |
| https://bugs.php.net/bug.php?id=73280 | x_refsource_CONFIRMVendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1391068 | Issue Tracking | |
| https://github.com/libgd/libgd/commit/53110871935244816bbb9d131da0bccff734bfe9 | x_refsource_CONFIRMVendor Advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2016-8670 | ||
| https://support.f5.com/csp/article/K21336065?utm_source=f5support&%3Butm_medium=RSS | x_refsource_CONFIRM | |
| https://www.cve.org/CVERecord?id=CVE-2016-8670 |
Change history (0)
No recorded changes yet.