Vulnerability · Published Aug 9, 2022 · Assigned by openEuler

CVE-2021-33643

Medium 6.5

In plain English

A medium-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.9% (higher than 80% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.5Medium
Exploit odds (30 days)1.9%top 20.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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_longlink, 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-33643
Rocky Linux:8libtar0:1.2.20-17.el8RLSA-2023:2898
Ubuntu:22.04:LTSlibtar1.2.20-8ubuntu0.22.04.1UBUNTU-CVE-2021-33643
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-33643

Affected products (as reported)

VendorProductVersions
n/a libtar <1.2.21

Weakness: CWE-125 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L

References