CVE-2021-38115: libgd Out-of-bounds Read
Vulnerability summary
CVE-2021-38115 is a medium (CVSS 6.5) Out-of-bounds Read vulnerability in libgd. EPSS estimates a 1.87% chance of exploitation in the next 30 days, higher than 79.3% of scored vulnerabilities. 1 public exploit is recorded.
Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 4 · Related 1Timeline
- 04-08-2021PublishedVulnerability first disclosed.
- 04-08-2024Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
5 scores · 4 sources · 2 versions- OSV · AlpineEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- OSV · UbuntuEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
EPSS trend
Probability
1.87%
Chance of exploitation in the next 30 days
Percentile
79%
Versus all other CVEs
30-day change
No change 0.00 pp
From 1.87% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundLibgd
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Alpine1 product
- gd< 2.2.5-r4 | < 2.3.0-r1
Debian1 product
- libgd2< 2.3.3-1
Libgd1 product
- libgd≤ 2.3.2
Ubuntu1 product
- libgd2< 2.1.0-3ubuntu0.11+esm2 | < 2.1.1-4ubuntu0.16.04.12+esm1 | < 2.2.5-4ubuntu0.5 | < 2.2.5-5.2ubuntu2.1 | < 2.3.0-2ubuntu1
4 vendors · 4 products
References
10 links- github.com/libgd/libgd/pull/711/commits/8b111b2b4a4842179be66db68d84dda91a246032REPORTPatchThird Party Advisory