CVE-2021-38115 json
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-…
published 2021-08-04 5 y ago modified 2026-07-25 3 mo ago also EUVD-2021-24588 , JLSEC-2026-360
- cvss
- 6.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.9%
- EPSS 1.9% chance of exploitation in 30 days, percentile 79%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- julia LibGD_jll 2.3.3+0
- libgd2 Debian 14, Debian 13, Debian 12 2.3.3-1
debian advisories DEBIAN-CVE-2021-38115
- libgd2 Ubuntu 18.04 LTS 2.2.5-4ubuntu0.5
- libgd2 Ubuntu 20.04 LTS 2.2.5-5.2ubuntu2.1
- libgd2 Ubuntu 22.04 LTS 2.3.0-2ubuntu1
- libgd2 Ubuntu Pro 14.04 LTS 2.1.0-3ubuntu0.11+esm2
- libgd2 Ubuntu Pro 16.04 LTS 2.1.1-4ubuntu0.16.04.12+esm1
ubuntu advisories UBUNTU-CVE-2021-38115
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 Alpine 3.11 2.2.5-r4
- gd Alpine 3.24, Alpine 3.23, Alpine 3.22 +10 more 2.3.0-r1
alpine advisories ALPINE-CVE-2021-38115
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- gd CBL-Mariner 2.0 2.3.3-1
azure linux advisories AZL-6431
Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT
- gd Arch Linux 2.3.3-1
arch linux advisories AVG-2258
- github.com/libgd/libgd#711 commit
Exploit prediction
1.87% chance of exploitation in the next 30 days, higher than 79% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/libgd/libgd/issues/697 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 6.5 | CVSS:3.1/AV:N/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 |
| OSV | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| julia | LibGD_jll | <2.3.3+0 |
2.3.3+0 |
Classification
- Weakness
-
- CWE-125 Out-of-bounds Read
References
-
github.com
/libgd/libgd/pull/711/commits/8b111b2b4a4842179be66db68d84dda91a246032
patch, third-party-advisory, web
-
github.com
/libgd/libgd/issues/697
exploit, issue-tracking, third-party-advisory, web
-
lists.debian.org
/debian-lts-announce/2024/04/msg00003.html
mailing-list, web
Sources
- CVE List CVE-2021-38115
- NVD CVE-2021-38115
- OSV JLSEC-2026-360
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.