Vulnerabilities / CVE-2016-5116

critical

CVE-2016-5116

gd: Information leak due to stack overflow in gdCtxPrintf

Published Modified CWE 119
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.1CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
Red Hat4.3AV:N/AC:M/Au:N/C:P/I:N/A:N

Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by Red Hat (medium), Ubuntu (low).

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 packages and fixed versions

SourcePackageFixed in
alpine 3.2gd2.2.1-r2
alpine 3.3gd2.2.1-r2
debian 11libgd22.2.1-1
debian 12libgd22.2.1-1
debian 13libgd22.2.1-1
debian 14libgd22.2.1-1
debian 8libgd22.1.0-5+deb8u4
echolibgd22.2.1-1
ubuntu 14.04libgd22.1.0-3ubuntu0.2
ubuntu 14.04-ESMlibgd22.1.0-3ubuntu0.2
ubuntu 15.10libgd22.1.1-4ubuntu0.15.10.2
ubuntu 16.04libgd22.1.1-4ubuntu0.16.04.2
Show all 13 entries from 13 sources
SourcePackageFixed in
alpine 3.2gd2.2.1-r2
alpine 3.3gd2.2.1-r2
debian 11libgd22.2.1-1
debian 12libgd22.2.1-1
debian 13libgd22.2.1-1
debian 14libgd22.2.1-1
debian 8libgd22.1.0-5+deb8u4
echolibgd22.2.1-1
ubuntu 14.04libgd22.1.0-3ubuntu0.2
ubuntu 14.04-ESMlibgd22.1.0-3ubuntu0.2
ubuntu 15.10libgd22.1.1-4ubuntu0.15.10.2
ubuntu 16.04libgd22.1.1-4ubuntu0.16.04.2
ubuntu 16.04-ESMlibgd22.1.1-4ubuntu0.16.04.2

References

All 11 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.