Vulnerabilities / CVE-2021-33643

critical

CVE-2021-33643

libtar: out-of-bounds read in gnu_longlink

Published Modified CWE 125
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
Red Hat7.4CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:H

Trivy's own label is CRITICAL. Rated critical by NVD, Azure Linux, CBL-Mariner, Photon OS. Rated lower by Red Hat (medium), AlmaLinux (medium), Oracle (medium), Rocky Linux (medium), Ubuntu (medium).

Description

An attacker who submits a crafted tar file with size in header struct being 0 may be able to trigger an calling of malloc(0) for a variable gnu_longlink, causing an out-of-bounds read.

Affected packages and fixed versions

SourcePackageFixed in
Azure Linux 3.0libtar0:1.2.20-11.azl3
CBL-Mariner 1.0libtar0:1.2.20-10.cm1
CBL-Mariner 2.0libtar0:1.2.20-10.cm2
Photon OS 2.0libtar1.2.20-6.ph2
Photon OS 3.0libtar1.2.20-6.ph3
Photon OS 4.0libtar, libtar-devel1.2.20-6.ph4
Photon OS 5.0libtar, libtar-devel1.2.20-7.ph5
alma 8libtar1.2.20-17.el8
debian 11libtar1.2.20-8+deb12u1~deb11u1
debian 12libtar1.2.20-8+deb12u1
echolibtar1.2.20-8+deb12u1
Oracle Linux 8libtar1.2.20-17.el8
Show all 26 entries from 22 sources
SourcePackageFixed in
Azure Linux 3.0libtar0:1.2.20-11.azl3
CBL-Mariner 1.0libtar0:1.2.20-10.cm1
CBL-Mariner 2.0libtar0:1.2.20-10.cm2
Photon OS 2.0libtar1.2.20-6.ph2
Photon OS 3.0libtar1.2.20-6.ph3
Photon OS 4.0libtar1.2.20-6.ph4
Photon OS 4.0libtar-devel1.2.20-6.ph4
Photon OS 5.0libtar1.2.20-7.ph5
Photon OS 5.0libtar-devel1.2.20-7.ph5
alma 8libtar1.2.20-17.el8
debian 11libtar1.2.20-8+deb12u1~deb11u1
debian 12libtar1.2.20-8+deb12u1
echolibtar1.2.20-8+deb12u1
Oracle Linux 8libtar1.2.20-17.el8
Red Hatlibtarno fix listed
Red Hatlibtar-develno fix listed
rocky 8libtar1.2.20-17.el8
seal Red Hat 7libtar1.2.11-29.el7+sp999
seal Red Hat 7seal-libtar1.2.11-29.el7+sp999
ubuntu 16.04-ESMlibtar1.2.20-4ubuntu0.1~esm1
ubuntu 18.04-ESMlibtar1.2.20-7ubuntu0.1~esm1
ubuntu 20.04libtar1.2.20-8ubuntu0.20.04.1
ubuntu 20.04-ESMlibtar1.2.20-8ubuntu0.20.04.1
ubuntu 22.04libtar1.2.20-8ubuntu0.22.04.1
ubuntu 24.04libtar1.2.20-8.1ubuntu0.24.04.1
ubuntu 24.10libtar1.2.20-8.1ubuntu0.24.10.1

References

All 29 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.