Skip to content
Fencer Vulns
medium 6.5

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

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

References

Sources

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.