Vulnerabilities / CVE-2016-10166

critical

CVE-2016-10166

gd: Unsigned integer underflow _gdContributionsAlloc()

Published Modified CWE 191
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.8CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat4.8CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L

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

Description

Integer underflow in the _gdContributionsAlloc function in gd_interpolation.c in the GD Graphics Library (aka libgd) before 2.2.4 allows remote attackers to have unspecified impact via vectors related to decrementing the u variable.

Affected packages and fixed versions

SourcePackageFixed in
alpine 3.3gd2.2.4-r0
alpine 3.4gd2.2.4-r0
alpine 3.5gd, php52.2.4-r0 and 1 more
alpine 3.7php77.1.29-r0
debian 11libgd22.2.4-1
debian 12libgd22.2.4-1
debian 13libgd22.2.4-1
debian 14libgd22.2.4-1
debian 8libgd22.1.0-5+deb8u9
echolibgd22.2.4-1
ubuntu 14.04libgd22.1.0-3ubuntu0.6
ubuntu 14.04-ESMlibgd22.1.0-3ubuntu0.6
Show all 16 entries from 15 sources
SourcePackageFixed in
alpine 3.3gd2.2.4-r0
alpine 3.4gd2.2.4-r0
alpine 3.5gd2.2.4-r0
alpine 3.5php55.6.40-r0
alpine 3.7php77.1.29-r0
debian 11libgd22.2.4-1
debian 12libgd22.2.4-1
debian 13libgd22.2.4-1
debian 14libgd22.2.4-1
debian 8libgd22.1.0-5+deb8u9
echolibgd22.2.4-1
ubuntu 14.04libgd22.1.0-3ubuntu0.6
ubuntu 14.04-ESMlibgd22.1.0-3ubuntu0.6
ubuntu 16.04libgd22.1.1-4ubuntu0.16.04.6
ubuntu 16.04-ESMlibgd22.1.1-4ubuntu0.16.04.6
ubuntu 16.10libgd22.2.1-1ubuntu3.3

References

All 12 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.