gd: Information leak due to stack overflow in gdCtxPrintf
Published Aug 7, 2016
9.1
CRITICALCVSS 3.0
EPSS 3.81%
Description
gd_xbm.c in the GD Graphics Library (aka libgd) before 2.2.0, as used in certain custom PHP 5.5.x configurations, allows context-dependent attackers to obtain sensitive information from process memory or cause a denial of service (stack-based buffer under-read and application crash) via a long name.
Affected products
No data.
Configuration 1
Running on/with
- 5.5.0
- 5.5.0
- 5.5.0
- 5.5.0
- 5.5.0
- 5.5.0
- 5.5.0
- 5.5.0
- 5.5.0
- 5.5.0
- 5.5.0
- 5.5.0
- 5.5.0
- 5.5.1
- 5.5.2
- 5.5.3
- 5.5.4
- 5.5.5
- 5.5.6
- 5.5.7
- 5.5.8
- 5.5.9
- 5.5.10
- 5.5.11
- 5.5.12
- 5.5.13
- 5.5.14
- 5.5.18
- 5.5.19
- 5.5.20
- 5.5.21
- 5.5.22
- 5.5.23
- 5.5.24
- 5.5.25
- 5.5.26
- 5.5.27
- 5.5.28
- 5.5.29
- 5.5.30
- 5.5.31
- 5.5.32
- 5.5.33
- 5.5.34
- 5.5.35
- 5.5.37
Configuration 3
- 8.0
No data.
Red Hat Enterprise Linux 5
gd
Not affected
Red Hat Enterprise Linux 6
gd
Not affected
Red Hat Enterprise Linux 7
gd
Not affected
Red Hat OpenShift Enterprise 2
gd
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 5 | gd | Not affected | n/a |
| Red Hat Enterprise Linux 6 | gd | Not affected | n/a |
| Red Hat Enterprise Linux 7 | gd | Not affected | n/a |
| Red Hat OpenShift Enterprise 2 | gd | Not 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:N/A:H
AV:N/AC:L/Au:N/C:P/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 (18 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 3.81% (0.03809) | 89.70th | v5 (v2026.06.15) |
| Jun 15, 2026 | 3.71% (0.03706) | 88.29th | v5 (v2026.06.15) |
| Dec 28, 2025 | 2.73% (0.02731) | 85.52th | v4 (v2025.03.14) |
| Dec 27, 2025 | 1.68% (0.01684) | 81.78th | v4 (v2025.03.14) |
| Oct 28, 2025 | 2.73% (0.02731) | 85.41th | v4 (v2025.03.14) |
| Oct 27, 2025 | 1.68% (0.01684) | 81.58th | v4 (v2025.03.14) |
| Oct 4, 2025 | 2.73% (0.02731) | 85.42th | v4 (v2025.03.14) |
| Jul 30, 2025 | 1.68% (0.01684) | 81.44th | v4 (v2025.03.14) |
| Mar 30, 2025 | 2.73% (0.02731) | 84.67th | v4 (v2025.03.14) |
| Mar 29, 2025 | 6.09% (0.06087) | 84.19th | v4 (v2025.03.14) |
| Mar 17, 2025 | 2.73% (0.02731) | 84.98th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.75% (0.00746) | 81.60th | v3 (v2023.03.01) |
| Feb 8, 2024 | 0.75% (0.00746) | 80.32th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.75% (0.00746) | 77.99th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.11% (0.01108) | 55.18th | v2 (v2022.01.01) |
| Sep 17, 2022 | 1.11% (0.01108) | 53.57th | v2 (v2022.01.01) |
| Apr 1, 2022 | 1.11% (0.01108) | 51.54th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.11% (0.01108) | 29.61th | v2 (v2022.01.01) |
References (10)
- http://lists.opensuse.org/opensuse-updates/2016-09/msg00078.html vendor-advisoryx_refsource_SUSEThird Party Advisory
- http://www.debian.org/security/2016/dsa-3619 vendor-advisoryx_refsource_DEBIANThird Party Advisory
- http://www.openwall.com/lists/oss-security/2016/05/29/5 mailing-listx_refsource_MLISTMailing List
- http://www.ubuntu.com/usn/USN-3030-1 vendor-advisoryx_refsource_UBUNTU
- https://access.redhat.com/security/cve/CVE-2016-5116 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1340856 Issue Tracking
- https://github.com/libgd/libgd/commit/4dc1a2d7931017d3625f2d7cff70a17ce58b53b4 x_refsource_CONFIRMIssue TrackingPatchThird Party Advisory
- https://github.com/libgd/libgd/issues/211 x_refsource_CONFIRMIssue TrackingThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2016-5116
- https://www.cve.org/CVERecord?id=CVE-2016-5116
| Link | Providers | Tags |
|---|---|---|
| http://lists.opensuse.org/opensuse-updates/2016-09/msg00078.html | vendor-advisoryx_refsource_SUSEThird Party Advisory | |
| http://www.debian.org/security/2016/dsa-3619 | vendor-advisoryx_refsource_DEBIANThird Party Advisory | |
| http://www.openwall.com/lists/oss-security/2016/05/29/5 | mailing-listx_refsource_MLISTMailing List | |
| http://www.ubuntu.com/usn/USN-3030-1 | vendor-advisoryx_refsource_UBUNTU | |
| https://access.redhat.com/security/cve/CVE-2016-5116 | Vendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1340856 | Issue Tracking | |
| https://github.com/libgd/libgd/commit/4dc1a2d7931017d3625f2d7cff70a17ce58b53b4 | x_refsource_CONFIRMIssue TrackingPatchThird Party Advisory | |
| https://github.com/libgd/libgd/issues/211 | x_refsource_CONFIRMIssue TrackingThird Party Advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2016-5116 | ||
| https://www.cve.org/CVERecord?id=CVE-2016-5116 |
Change history (0)
No recorded changes yet.