cve.bz

CVE-2016-6161 Out-of-bounds Read

6.5 mediumEPSS 2.9%

Medium (6.5). EPSS 2.9% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.0

6.5 medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
EPSS
2.9% (unchanged from 2.9% a week ago; 2.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 87th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-125 Out-of-bounds Read
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2016-6161 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2016-6161?via=ask-ai-copy and https://cve.bz/cve/CVE-2016-6161?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2016-6161 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
libgd:libgdthrough 2.2.2
debian:debian_linux8.0
opensuse:leap42.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian7libgd22.0.36~rc1~dfsg-6.1+deb7u5DLA-563-1
Debian8libgd22.1.0-5+deb8u4DSA-3619-1
Debian12, 13, 14libgd22.2.1-1DEBIAN-CVE-2016-6161
Ubuntu14.04:LTSlibgd22.1.0-3ubuntu0.2UBUNTU-CVE-2016-6161 USN-3030-1
Ubuntu16.04:LTSlibgd22.1.1-4ubuntu0.16.04.2UBUNTU-CVE-2016-6161 USN-3030-1
SUSELinux Enterprise Desktop 12 SP1, Linux Enterprise Server 12 SP1, Linux Enterprise Server for SAP Applications 12 SP1 and 2 moregd2.1.0-12.1SUSE-SU-2016:2303-1
SUSELinux Enterprise Module for Web and Scripting 12php77.0.7-15.1SUSE-SU-2016:2460-2
SUSELinux Enterprise Module for Web and Scripting 12, Linux Enterprise Software Development Kit 12 SP1php55.5.14-73.1SUSE-SU-2016:2408-1
SUSELinux Enterprise Module for Web and Scripting 12, Linux Enterprise Software Development Kit 12 SP1php77.0.7-15.1SUSE-SU-2016:2460-1
SUSELinux Enterprise Server 11 SP4, Linux Enterprise Server for SAP Applications 11 SP4, Linux Enterprise Software Development Kit 11 SP4gd2.0.36.RC1-52.22.1SUSE-SU-2016:2302-1
Alpinev3.2, v3.3gd2.2.1-r2ALPINE-CVE-2016-6161

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's 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/.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 5gdWill not fix
Red Hat Enterprise Linux 5phpWill not fix
Red Hat Enterprise Linux 5php53Will not fix
Red Hat Enterprise Linux 5tetexNot affected
Red Hat Enterprise Linux 6gdWill not fix
Red Hat Enterprise Linux 6graphvizNot affected
Red Hat Enterprise Linux 6phpWill not fix
Red Hat Enterprise Linux 6texliveNot affected
Red Hat Enterprise Linux 7gdWill not fix
Red Hat Enterprise Linux 7phpWill not fix
Red Hat OpenShift Enterprise 2phpWill not fix
Red Hat Software Collectionsphp54-phpWill not fix
Red Hat Software Collectionsphp55-phpWill not fix
Red Hat Software Collectionsrh-php56-phpWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2016-6161.

Attack patterns (CAPEC)

  • CAPEC-540 Overread Buffers Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON