Vulnerability · Published Aug 9, 2022 · Assigned by openEuler

CVE-2021-33644

High 8.1

In plain English

A high-severity out-of-bounds read in libtar. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.6% (higher than 76% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)8.1High
Exploit odds (30 days)1.6%top 24.4% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack tooling1Public PoC

Official 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_longname, causing an out-of-bounds read.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8libtar1.2.20-17.el8ALSA-2023:2898
Debian:12libtar1.2.20-8+deb12u1DEBIAN-CVE-2021-33644
Rocky Linux:8libtar0:1.2.20-17.el8RLSA-2023:2898
Ubuntu:22.04:LTSlibtar1.2.20-8ubuntu0.22.04.1UBUNTU-CVE-2021-33644
Ubuntu:22.04:LTSlibtar1.2.20-8ubuntu0.22.04.1USN-7398-1
Ubuntu:24.04:LTSlibtar1.2.20-8.1ubuntu0.24.04.1USN-7398-1
Ubuntu:24.04:LTSlibtar1.2.20-8.1ubuntu0.24.04.1UBUNTU-CVE-2021-33644

Affected products (as reported)

VendorProductVersions
n/a libtar <1.2.21

Weakness: CWE-125

References