cve.bz

CVE-2016-5116

9.1 criticalEPSS 3.8%Fix available

Critical (9.1). EPSS 3.8% estimated probability of exploitation activity in the next 30 days.

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

Severity

CVSS 3.0

9.1 critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
EPSS
3.8% (unchanged from 3.8% a week ago; 3.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 90th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
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-5116 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2016-5116?via=ask-ai-copy and https://cve.bz/cve/CVE-2016-5116?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-5116 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.1
opensuse:leap42.1
debian:debian_linux8.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian8libgd22.1.0-5+deb8u4DSA-3619-1
Debian12, 13, 14libgd22.2.1-1DEBIAN-CVE-2016-5116
Ubuntu14.04:LTSlibgd22.1.0-3ubuntu0.2UBUNTU-CVE-2016-5116 USN-3030-1
Ubuntu16.04:LTSlibgd22.1.1-4ubuntu0.16.04.2UBUNTU-CVE-2016-5116 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
openSUSETumbleweedgd2.2.3-2.1openSUSE-SU-2024:10062-1
Alpinev3.2, v3.3gd2.2.1-r2ALPINE-CVE-2016-5116

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 · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 5gdNot affected
Red Hat Enterprise Linux 6gdNot affected
Red Hat Enterprise Linux 7gdNot affected
Red Hat OpenShift Enterprise 2gdNot affected

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-5116.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-119 (12).

References

Check your stackJSON