# CVE-2021-38115: readheadertga in gdtga.c in the GD Graphics Library (aka LibGD) through 2.3.2 allows remote attackers to cause a denial of service (out-of-…

- Severity: Medium 6.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.87%, higher than 79% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-08-04T00:00:00.000Z
- Modified: 2026-06-17T04:01:30.070Z
- Weaknesses: CWE-125
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- libgd libgd: up to 2.3.2

## Every score

- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:N/A:P`

## References

- <https://github.com/libgd/libgd/issues/697> (exploit, issue-tracking, third-party-advisory)
- <https://github.com/libgd/libgd/pull/711/commits/8b111b2b4a4842179be66db68d84dda91a246032> (patch, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2024/04/msg00003.html> (mailing-list)

## Sources

- CVE List: [CVE-2021-38115](https://www.cve.org/CVERecord?id=CVE-2021-38115), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2021-38115](https://nvd.nist.gov/vuln/detail/CVE-2021-38115), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-38115 · Whole record: https://cve.day/CVE-2021-38115.json · Rebuilt by cve.day 2026-11-25T22:58:03.001Z
