CVE-2016-5116 json
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…
published 2016-08-07 10 y ago modified 2026-06-17 4 mo ago also EUVD-2016-6067
- cvss
- 9.1
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 3.8%
- EPSS 3.8% chance of exploitation in 30 days, percentile 90%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- libgd2 Debian 14, Debian 13, Debian 12 2.2.1-1
debian advisories DEBIAN-CVE-2016-5116
- libgd2 Ubuntu 14.04 LTS 2.1.0-3ubuntu0.2
- libgd2 Ubuntu 16.04 LTS 2.1.1-4ubuntu0.16.04.2
ubuntu advisories UBUNTU-CVE-2016-5116
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- gd SLES for SAP 12 SP1, SLES 12 SP1, SLED 12 SP1 +2 more 2.1.0-12.1
suse advisories SUSE-SU-2016:2303-1
- gd openSUSE Tumbleweed 2.2.3-2.1
opensuse advisories openSUSE-SU-2024:10062-1
- gd Alpine 3.3, Alpine 3.2 2.2.1-r2
alpine advisories ALPINE-CVE-2016-5116
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2016-5116 updated cvss 4.3
gd: Information leak due to stack overflow in gdCtxPrintf
-
Red Hat Enterprise Linux 5 gd Red Hat Enterprise Linux 6 gd, gd-progs Red Hat Enterprise Linux 7 gd, gd-progs Red Hat OpenShift Enterprise 2 gdnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
3.81% chance of exploitation in the next 30 days, higher than 90% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 9.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H |
| NVD | 2.0 | 6.4 | AV:N/AC:L/Au:N/C:P/I:N/A:P |
Classification
- Weakness
-
- CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
References
-
github.com
/libgd/libgd/commit/4dc1a2d7931017d3625f2d7cff70a17ce58b53b4
issue-tracking, patch, third-party-advisory
-
lists.opensuse.org
/opensuse-updates/2016-09/msg00078.html
vendor-advisory, third-party-advisory
-
debian.org
/security/2016/dsa-3619
vendor-advisory, third-party-advisory
-
ubuntu.com
/usn/USN-3030-1
vendor-advisory
-
github.com
/libgd/libgd/issues/211
issue-tracking, third-party-advisory
-
openwall.com
/lists/oss-security/2016/05/29/5
mailing-list
Sources
- CVE List CVE-2016-5116
- NVD CVE-2016-5116
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.