CVE-2016-5766

high
Published 2016-08-07 ยท Modified 2026-05-06
CVSS v3
8.8
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS v4 NEW
โ€”
not yet in upstream
VIR risk
8.8

Description

Integer overflow in the _gd2GetHeader function in gd_gd2.c in the GD Graphics Library (aka libgd) before 2.2.3, as used in PHP before 5.5.37, 5.6.x before 5.6.23, and 7.x before 7.0.8, allows remote attackers to cause a denial of service (heap-based buffer overflow and application crash) or possibly have unspecified other impact via crafted chunk dimensions in an image.

Predictions

Exploit likelihood
92%
Patch ETA
โ€”

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

No mitigations published for this CVE yet.

The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ€” if you've already worked around this in production โ€” publish your fix to the community-verified tier.

โœš Propose a mitigation on Community โ†’ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here with source_tier=community-verified.

OS impact

fedora Fedora Affected 3 releases
VersionStatusFixed in
24 Affected โ€”
23 Affected โ€”
22 Affected โ€”
freebsd FreeBSD Affected 13 releases
VersionStatusFixed in
10.3 Affected โ€”
10.2 Affected โ€”
10.1 Affected โ€”
10.0 Affected โ€”
9.3 Affected โ€”
9.2 Affected โ€”
9.1 Affected โ€”
9.0 Affected โ€”
8.4 Affected โ€”
8.3 Affected โ€”
8.2 Affected โ€”
8.1 Affected โ€”
8.0 Affected โ€”
redhat Red Hat Affected 3 releases
VersionStatusFixed in
7.0 Affected โ€”
6.0 Affected โ€”
5 Affected โ€”
suse SUSE Affected 1 release
VersionStatusFixed in
โ€” Affected โ€”
debian Debian Mixed 6 releases
VersionStatusFixed in
trixie Fixed 2.2.2-29-g3c2b605-1
sid Fixed 2.2.2-29-g3c2b605-1
forky Fixed 2.2.2-29-g3c2b605-1
bullseye Fixed 2.2.2-29-g3c2b605-1
bookworm Fixed 2.2.2-29-g3c2b605-1
8.0 Affected โ€”

Application impact

VendorProductVersionsFixed
libgdlibgd2.2.2
php phpphp{"endIncluding":"5.5.36"}
php phpphp5.6.0
php phpphp5.6.1
php phpphp5.6.2
php phpphp5.6.3
php phpphp5.6.4
php phpphp5.6.5
php phpphp5.6.6
php phpphp5.6.7
php phpphp5.6.8
php phpphp5.6.9
php phpphp5.6.10
php phpphp5.6.11
php phpphp5.6.12
php phpphp5.6.13
php phpphp5.6.14
php phpphp5.6.15
php phpphp5.6.16
php phpphp5.6.17
php phpphp5.6.18
php phpphp5.6.19
php phpphp5.6.20
php phpphp5.6.21
php phpphp5.6.22
php phpphp7.0.0
php phpphp7.0.1
php phpphp7.0.2
php phpphp7.0.3
php phpphp7.0.4
php phpphp7.0.5
php phpphp7.0.6
php phpphp7.0.7

References

CWEs

CWE-190

Community-verified mitigations for this CVE will appear above when contributors publish them.

Verify integrity in audit chain (admin only). AS-IS.