CVE-2021-38115
published 2021-08-04CVE-2021-38115: read_header_tga in gd_tga.c in the GD Graphics Library (aka LibGD) through 2.3.2 allows remote attackers to cause a denial of service (out-of-bounds read) via…
PriorityP427medium6.5CVSS 3.1
AVNACLPRNUIRSUCNINAH
EPSS
1.87%
76.7th percentile
read_header_tga in gd_tga.c in the GD Graphics Library (aka LibGD) through 2.3.2 allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted TGA file.
Affected
4 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | libgd2 | < libgd2 2.3.3-1 (bookworm) | libgd2 2.3.3-1 (bookworm) |
| libgd | libgd | <= 2.3.2 | — |
| msrc | cbl2_gd_2.3.3-1_on_cbl_mariner_2.0 | — | — |
| msrc | cm1_gd_2.3.3-1_on_cbl_mariner_1.0 | — | — |
CVSS provenance
nvdv3.16.5MEDIUMCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
nvdv2.04.3MEDIUMAV:N/AC:M/Au:N/C:N/I:N/A:P
osv6.5MEDIUM
vendor_ubuntu8.1HIGH
vendor_debian6.5MEDIUM
vendor_msrc6.5MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
GHSA-26x8-wc99-6x99: read_header_tga in gd_tga
ghsa_unreviewed·2022-05-24
CVE-2021-38115 [MEDIUM] CWE-125 GHSA-26x8-wc99-6x99: read_header_tga in gd_tga
read_header_tga in gd_tga.c in the GD Graphics Library (aka LibGD) through 2.3.2 allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted TGA file.
OSV
CVE-2021-38115: read_header_tga in gd_tga
osv·2021-08-04·CVSS 6.5
CVE-2021-38115 [MEDIUM] CVE-2021-38115: read_header_tga in gd_tga
read_header_tga in gd_tga.c in the GD Graphics Library (aka LibGD) through 2.3.2 allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted TGA file.
Ubuntu
GD library vulnerabilities
vendor_ubuntu·2021-09-08·CVSS 8.1
CVE-2021-40145 [HIGH] GD library vulnerabilities
Title: GD library vulnerabilities
Summary: Several security issues were fixed in GD library.
It was discovered that GD Graphics Library incorrectly handled certain GD and GD2 files.
An attacker could possibly use this issue to cause a crash or expose sensitive information.
This issue only affected Ubuntu 20.04 LTS, Ubuntu 18.04 LTS, Ubuntu 16.04 ESM, and Ubuntu 14.04 ESM.
(CVE-2017-6363)
It was discovered that GD Graphics Library incorrectly handled certain TGA files.
An attacker could possibly use this issue to cause a denial of service or
expose sensitive information. (CVE-2021-381)
It was discovered that GD Graphics Library incorrectly handled certain files.
An attacker could possibly use this issue to cause a crash.
(CVE-2021-40145)
Instructions: In general, a standard system upda
Microsoft
read_header_tga in gd_tga.c in the GD Graphics Library (aka LibGD) through 2.3.2 allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted TGA file.
vendor_msrc·2021-08-10·CVSS 6.5
CVE-2021-38115 [MEDIUM] CWE-125 read_header_tga in gd_tga.c in the GD Graphics Library (aka LibGD) through 2.3.2 allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted TGA file.
read_header_tga in gd_tga.c in the GD Graphics Library (aka LibGD) through 2.3.2 allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted TGA file.
FAQ: Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog post for more information. If impact to additional products is identified, we will update the CVE to reflect this.
Debian
CVE-2021-38115: libgd2 - read_header_tga in gd_tga.c in the GD Graphics Library (aka LibGD) through 2.3.2...
vendor_debian·2021·CVSS 6.5
CVE-2021-38115 [MEDIUM] CVE-2021-38115: libgd2 - read_header_tga in gd_tga.c in the GD Graphics Library (aka LibGD) through 2.3.2...
read_header_tga in gd_tga.c in the GD Graphics Library (aka LibGD) through 2.3.2 allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted TGA file.
Scope: local
bookworm: resolved (fixed in 2.3.3-1)
bullseye: resolved (fixed in 2.3.0-2+deb11u1)
forky: resolved (fixed in 2.3.3-1)
sid: resolved (fixed in 2.3.3-1)
trixie: resolved (fixed in 2.3.3-1)
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://github.com/libgd/libgd/issues/697https://github.com/libgd/libgd/pull/711/commits/8b111b2b4a4842179be66db68d84dda91a246032https://lists.debian.org/debian-lts-announce/2024/04/msg00003.htmlhttps://github.com/libgd/libgd/issues/697https://github.com/libgd/libgd/pull/711/commits/8b111b2b4a4842179be66db68d84dda91a246032https://lists.debian.org/debian-lts-announce/2024/04/msg00003.html
2021-08-04
Published