CVE-2016-6906 json
The read_image_tga function in gd_tga.c in the GD Graphics Library (aka libgd) before 2.2.4 allows remote attackers to cause a denial of se…
published 2017-03-15 9 y ago modified 2026-06-17 4 mo ago also EUVD-2016-7791
- cvss
- 5.5
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.0%
- EPSS 2.0% chance of exploitation in 30 days, percentile 80%
- public exploits
- 0
- none known
Summary
The read_image_tga function in gd_tga.c in the GD Graphics Library (aka libgd) before 2.2.4 allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted TGA file, related to the decompression buffer.
Patch / fix
- libgd2 Debian 14, Debian 13, Debian 12 2.2.4-1
debian advisories DEBIAN-CVE-2016-6906
- libgd2 Ubuntu 14.04 LTS 2.1.0-3ubuntu0.6
- libgd2 Ubuntu 16.04 LTS 2.1.1-4ubuntu0.16.04.6
ubuntu advisories UBUNTU-CVE-2016-6906
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 SP2, SLES for SAP 12 SP1, SLES for Raspberry Pi 12 SP2 +8 more 2.1.0-23.1
suse advisories SUSE-SU-2017:0468-1
- gd Alpine 3.5, Alpine 3.4, Alpine 3.3 2.2.4-r0
alpine advisories ALPINE-CVE-2016-6906
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- github.com/libgd/libgd@58b6dde commit
- github.com/libgd/libgd@fb0e0cc commit
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-6906 updated cvss 5.3
gd: Out-of-bounds read in read_image_tga function
-
Red Hat Enterprise Linux 5 gd, php, php53, libwmf Red Hat Enterprise Linux 6 gd, php, libwmf, php-gd, php-cli, php-dba, +24 more Red Hat Enterprise Linux 7 gd, php, libwmf, php-gd, php-cli, php-dba, +22 more Red Hat OpenShift Enterprise 2 php Red Hat Software Collections rh-php56-php, rh-php70-php, rh-php56-php-gd, rh-php70-php-gd, rh-php56-php-cli, rh-php56-php-dba, +52 morenot 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
1.99% chance of exploitation in the next 30 days, higher than 80% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 5.5 | CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:N/A:P |
Classification
- Weakness
-
- CWE-125 Out-of-bounds Read
References
-
github.com
/libgd/libgd/commit/58b6dde319c301b0eae27d12e2a659e067d80558
patch, third-party-advisory
-
github.com
/libgd/libgd/commit/fb0e0cce0b9f25389ab56604c3547351617e1415
patch, third-party-advisory
-
debian.org
/security/2017/dsa-3777
vendor-advisory
-
github.com
/libgd/libgd/blob/gd-2.2.4/CHANGELOG.md
release-notes, third-party-advisory
-
securityfocus.com
/bid/96503
vdb-entry, third-party-advisory
Sources
- CVE List CVE-2016-6906
- NVD CVE-2016-6906
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.