CVE-2016-6905
The read_image_tga function in gd_tga.c in the GD Graphics Library (aka libgd) before 2.2.3...
CVE-2016-6905 is a medium vulnerability (CVSS 6.5) in Libgd, published July 15, 2016. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.56%, the 85th percentile. Fixed in libgd2 2.2.2-29-g3c2b605-1.
The read_image_tga function in gd_tga.c in the GD Graphics Library (aka libgd) before 2.2.3 allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted TGA image.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
6.5
The read_image_tga function in gd_tga.c in the GD Graphics Library (aka libgd) before 2.2.3 allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted TGA image.
- Record
CVE-2016-6905- CVSS 3.0
- 6.5 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - CVSS 2.0
- 4.3 Medium
AV:N/AC:M/Au:N/C:N/I:N/A:P - Weakness
- CWE-125
- Updated
- 2026-11-02
CVE List No score
The read_image_tga function in gd_tga.c in the GD Graphics Library (aka libgd) before 2.2.3 allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted TGA image.
- Record
CVE-2016-6905- Updated
- 2026-11-02
EUVDEUVD-2016-7790 No score
The read_image_tga function in gd_tga.c in the GD Graphics Library (aka libgd) before 2.2.3 allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted TGA image.
- Record
EUVD-2016-7790- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-6hhv-cvx8-rhvf
6.5
The read_image_tga function in gd_tga.c in the GD Graphics Library (aka libgd) before 2.2.3...
The read_image_tga function in gd_tga.c in the GD Graphics Library (aka libgd) before 2.2.3 allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted TGA image.
- Record
GHSA-6hhv-cvx8-rhvf- CVSS 3.0
- 6.5 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Weakness
- CWE-125
- Updated
- 2026-11-02
OSV
6.5
The read_image_tga function in gd_tga.c in the GD Graphics Library (aka libgd) before 2.2.3 allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted TGA image.
- Record
CVE-2016-6905- CVSS 3.0
- 6.5 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2016-6905
6.5
The read_image_tga function in gd_tga.c in the GD Graphics Library (aka libgd) before 2.2.3 allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted TGA image.
- Record
DEBIAN-CVE-2016-6905- CVSS 3.0
- 6.5 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2016-6905
6.5
The read_image_tga function in gd_tga.c in the GD Graphics Library (aka libgd) before 2.2.3 allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted TGA image.
- Record
UBUNTU-CVE-2016-6905- CVSS 3.0
- 6.5 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVopenSUSE-SU-2024:10062-1 No score
gd-2.2.3-2.1 on GA media
These are all security issues fixed in the gd-2.2.3-2.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:10062-1- Updated
- 2026-11-02
OSVSUSE-SU-2016:2303-1 No score
Security update for gd
This update for gd fixes the following issues:
- CVE-2016-6214: Buffer over-read issue when parsing crafted TGA file [bsc#991436]
- CVE-2016-6132: read out-of-bands was found in the parsing of TGA files using libgd [bsc#987577]
- CVE-2016-6128: Invalid color index not properly handled [bsc#991710]
- CVE-2016-6207: Integer overflow error within _gdContributionsAlloc() [bsc#991622]
- CVE-2016-6161: global out of bounds read when encoding gif from malformed input withgd2togif [bsc#988032]
- CVE-2016-5116: avoid stack overflow (read) with large names [bsc#982176]
- CVE-2016-6905: Out-of-bounds read in function read_image_tga in gd_tga.c [bsc#995034]
- Record
SUSE-SU-2016:2303-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
libgd2Debian:12 |
before 2.2.2-29-g3c2b605-1 | 2.2.2-29-g3c2b605-1 |
libgd2Debian:13 |
before 2.2.2-29-g3c2b605-1 | 2.2.2-29-g3c2b605-1 |
libgd2Debian:14 |
before 2.2.2-29-g3c2b605-1 | 2.2.2-29-g3c2b605-1 |
libgd2Debian:8 |
before 2.1.0-5+deb8u4, plus listed versions 2.1.0-52.1.0-5+deb8u12.1.0-5+deb8u22.1.0-5+deb8u3 |
2.1.0-5+deb8u4 |
gdSUSE:Linux Enterprise Desktop 12 SP1 |
before 2.1.0-12.1 | 2.1.0-12.1 |
gdSUSE:Linux Enterprise Software Development Kit 12 SP1 |
before 2.1.0-12.1 | 2.1.0-12.1 |
gdSUSE:Linux Enterprise Server 12 SP1 |
before 2.1.0-12.1 | 2.1.0-12.1 |
gdSUSE:Linux Enterprise Server for SAP Applications 12 SP1 |
before 2.1.0-12.1 | 2.1.0-12.1 |
gdSUSE:Linux Enterprise Workstation Extension 12 SP1 |
before 2.1.0-12.1 | 2.1.0-12.1 |
libgd2Ubuntu:14.04:LTS |
before 2.1.0-3ubuntu0.3, plus listed versions 2.1.0-22.1.0-32.1.0-3ubuntu0.12.1.0-3ubuntu0.2 |
2.1.0-3ubuntu0.3 |
libgd2Ubuntu:16.04:LTS |
before 2.1.1-4ubuntu0.16.04.3, plus listed versions 2.1.1-4build12.1.1-4build22.1.1-4ubuntu0.16.04.12.1.1-4ubuntu0.16.04.2 |
2.1.1-4ubuntu0.16.04.3 |
gdopenSUSE:Tumbleweed |
before 2.2.3-2.1 | 2.2.3-2.1 |
History
| When | Changed | Sources |
|---|---|---|
| 2026-11-03 | aliases | EUVD |
| 2026-11-02 | created | CVE List, GitHub Advisories, NVD, OSV |
References
lists.opensuse.org/opensuse-updates/2016-09/msg00078.html
securityfocus.com/bid/91743
libgd.github.io/release-2.2.3.html
lists.opensuse.org/opensuse-updates/2016-08/msg00121.html
github.com/libgd/libgd/issues/248
github.com/libgd/libgd/pull/251
Show 27 moreShow less
github.com/libgd/libgd/commit/3c2b605d72e8b080dace1d98a6e50b46c1d12186
github.com/libgd/libgd/commit/01c61f8ab110a77ae64b5ca67c244c728c506f03
openwall.com/lists/oss-security/2016/08/23/1
nvd.nist.gov/vuln/detail/CVE-2016-6905
github.com/advisories/GHSA-6hhv-cvx8-rhvf
security-tracker.debian.org/tracker/CVE-2016-6905
suse.com/support/update/announcement/2016/suse-su-20162303-1
bugzilla.suse.com/982176
bugzilla.suse.com/987577
bugzilla.suse.com/988032
bugzilla.suse.com/991436
bugzilla.suse.com/991622
bugzilla.suse.com/991710
bugzilla.suse.com/995034
suse.com/security/cve/CVE-2016-5116
suse.com/security/cve/CVE-2016-6128
suse.com/security/cve/CVE-2016-6132
suse.com/security/cve/CVE-2016-6161
suse.com/security/cve/CVE-2016-6207
suse.com/security/cve/CVE-2016-6214
suse.com/security/cve/CVE-2016-6905
ubuntu.com/security/CVE-2016-6905
openwall.com/lists/oss-security/2016/07/12/4
ubuntu.com/security/notices/USN-3060-1
cve.org/CVERecord?id=CVE-2016-6905
suse.com/security/cve/CVE-2014-2497
suse.com/security/cve/CVE-2016-5766