gd: Global out-of-bounds read when encoding gif from malformed gd2 input
Published Aug 12, 2016
6.5
MEDIUMCVSS 3.0
EPSS 2.77%
Description
The output function in gd_gif_out.c in the GD Graphics Library (aka libgd) allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted image.
Affected products
No data.
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 5
tetex
Not affected
Red Hat Enterprise Linux 6
gd
Will not fix
Red Hat Enterprise Linux 6
graphviz
Not affected
Red Hat Enterprise Linux 6
php
Will not fix
Red Hat Enterprise Linux 6
texlive
Not affected
Red Hat Enterprise Linux 7
gd
Will not fix
Red Hat Enterprise Linux 7
php
Will not fix
Red Hat OpenShift Enterprise 2
php
Will not fix
Red Hat Software Collections
php54-php
Will not fix
Red Hat Software Collections
php55-php
Will not fix
Red Hat Software Collections
rh-php56-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 5 | tetex | Not affected | n/a |
| Red Hat Enterprise Linux 6 | gd | Will not fix | n/a |
| Red Hat Enterprise Linux 6 | graphviz | Not affected | n/a |
| Red Hat Enterprise Linux 6 | php | Will not fix | n/a |
| Red Hat Enterprise Linux 6 | texlive | Not affected | 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 | 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 |
| 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 Moderate 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:R/S:U/C:N/I:N/A:H
1 other source (Red Hat) ▾
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
AV:N/AC:M/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 2, 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 (12 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 2, 2026 | 2.77% (0.02772) | 85.82th | v5 (v2026.06.15) |
| Jun 15, 2026 | 2.79% (0.02795) | 84.52th | v5 (v2026.06.15) |
| Mar 17, 2025 | 0.59% (0.00593) | 67.40th | v4 (v2025.03.14) |
| Dec 17, 2024 | 3.45% (0.03453) | 91.32th | v3 (v2023.03.01) |
| Dec 12, 2024 | 1.44% (0.01435) | 87.11th | v3 (v2023.03.01) |
| Nov 13, 2023 | 1.44% (0.01435) | 85.09th | v3 (v2023.03.01) |
| Aug 25, 2023 | 1.27% (0.01270) | 83.97th | v3 (v2023.03.01) |
| Mar 7, 2023 | 1.08% (0.01082) | 82.05th | 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-08/msg00086.html vendor-advisoryx_refsource_SUSE
- 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/07/05/6 mailing-listx_refsource_MLISTMailing ListThird Party Advisory
- http://www.openwall.com/lists/oss-security/2016/07/05/7 mailing-listx_refsource_MLISTMailing ListThird Party Advisory
- http://www.ubuntu.com/usn/USN-3030-1 vendor-advisoryx_refsource_UBUNTU
- https://access.redhat.com/security/cve/CVE-2016-6161 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1353550 Issue Tracking
- https://github.com/libgd/libgd/issues/209 x_refsource_CONFIRMThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2016-6161
- https://www.cve.org/CVERecord?id=CVE-2016-6161
| Link | Providers | Tags |
|---|---|---|
| http://lists.opensuse.org/opensuse-updates/2016-08/msg00086.html | vendor-advisoryx_refsource_SUSE | |
| 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/07/05/6 | mailing-listx_refsource_MLISTMailing ListThird Party Advisory | |
| http://www.openwall.com/lists/oss-security/2016/07/05/7 | mailing-listx_refsource_MLISTMailing ListThird Party Advisory | |
| http://www.ubuntu.com/usn/USN-3030-1 | vendor-advisoryx_refsource_UBUNTU | |
| https://access.redhat.com/security/cve/CVE-2016-6161 | Vendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1353550 | Issue Tracking | |
| https://github.com/libgd/libgd/issues/209 | x_refsource_CONFIRMThird Party Advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2016-6161 | ||
| https://www.cve.org/CVERecord?id=CVE-2016-6161 |
Change history (0)
No recorded changes yet.