CVEfocus › CVE database › CVE-2021-38115

CVE-2021-38115

CVSS 6.5 MediumEPSS 1.9% (higher than 80% of CVEs)Published 2021-08-04Updated 2024-08-04Assigner: mitre

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.

What to do

Fixed builds are available from Alpine, Debian, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

20Fixed
2Fix pending
1Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04libgd2Fixed2.3.0-2ubuntu1UBUNTU-CVE-2021-38115
Ubuntu 20.04libgd2Fixed2.2.5-5.2ubuntu2.1UBUNTU-CVE-2021-38115
Ubuntu 18.04libgd2Fixed2.2.5-4ubuntu0.5UBUNTU-CVE-2021-38115
Ubuntu 16.04libgd2Fix pending2.1.1-4ubuntu0.16.04.12+esm1 (Ubuntu Pro)UBUNTU-CVE-2021-38115
Ubuntu 16.04php7.0Not affected
vulnerable_code_not_present
Ubuntu 14.04libgd2Fix pending2.1.0-3ubuntu0.11+esm2 (Ubuntu Pro)UBUNTU-CVE-2021-38115
Debian 14libgd2Fixed2.3.3-1DEBIAN-CVE-2021-38115
Debian 13libgd2Fixed2.3.3-1DEBIAN-CVE-2021-38115
Debian 12libgd2Fixed2.3.3-1DEBIAN-CVE-2021-38115
Alpine Linux 3.24gdFixed2.3.0-r1ALPINE-CVE-2021-38115
Alpine Linux 3.23gdFixed2.3.0-r1ALPINE-CVE-2021-38115
Alpine Linux 3.22gdFixed2.3.0-r1ALPINE-CVE-2021-38115
Alpine Linux 3.21gdFixed2.3.0-r1ALPINE-CVE-2021-38115
Alpine Linux 3.20gdFixed2.3.0-r1ALPINE-CVE-2021-38115
Alpine Linux 3.19gdFixed2.3.0-r1ALPINE-CVE-2021-38115
Alpine Linux 3.18gdFixed2.3.0-r1ALPINE-CVE-2021-38115
Alpine Linux 3.17gdFixed2.3.0-r1ALPINE-CVE-2021-38115
Alpine Linux 3.16gdFixed2.3.0-r1ALPINE-CVE-2021-38115
Alpine Linux 3.15gdFixed2.3.0-r1ALPINE-CVE-2021-38115
Alpine Linux 3.14gdFixed2.3.0-r1ALPINE-CVE-2021-38115
Alpine Linux 3.13gdFixed2.3.0-r1ALPINE-CVE-2021-38115
Alpine Linux 3.12gdFixed2.3.0-r1ALPINE-CVE-2021-38115
Alpine Linux 3.11gdFixed2.2.5-r4ALPINE-CVE-2021-38115

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.