cve.bz

CVE-2021-20193 gnu tar: Out-of-bounds Read

3.3 lowEPSS 1.1%Fix available

Low (3.3) in gnu tar. EPSS 1.1% estimated probability of exploitation activity in the next 30 days.

On this page
A flaw was found in the src/list.c of tar 1.33 and earlier. This flaw allows an attacker who can submit a crafted input file to tar to cause uncontrolled consumption of memory. The highest threat from this vulnerability is to system availability.

Severity

CVSS 3.1

3.3 low
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
EPSS
1.1% (unchanged from 1.1% a week ago; 1.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 66th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-10-08. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-125 Out-of-bounds Read
CWE-401 Missing Release of Memory after Effective Lifetime
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-20193 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-20193?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-20193?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-20193 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2021-20193

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2021-20193](https://cve.bz/cve/badge/CVE-2021-20193.svg)](https://cve.bz/cve/CVE-2021-20193)

HTML:

<a href="https://cve.bz/cve/CVE-2021-20193"><img src="https://cve.bz/cve/badge/CVE-2021-20193.svg" alt="CVE-2021-20193"></a>

Affected

Versions

From the NVD's CPE matches.

ProductAffected
gnu:tarthrough 1.33

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14tar1.34+dfsg-1DEBIAN-CVE-2021-20193
Ubuntu18.04:LTStar1.29b-2ubuntu0.3UBUNTU-CVE-2021-20193 USN-5329-1
Ubuntu20.04:LTStar1.30+dfsg-7ubuntu0.20.04.2UBUNTU-CVE-2021-20193 USN-5329-1
Ubuntu22.04:LTStar1.34+dfsg-1build1UBUNTU-CVE-2021-20193
UbuntuPro:14.04:LTStar1.27.1-1ubuntu0.1+esm2UBUNTU-CVE-2021-20193 USN-5329-1
UbuntuPro:16.04:LTStar1.28-2.1ubuntu0.2+esm1UBUNTU-CVE-2021-20193 USN-5329-1
SUSELinux Enterprise Micro 5.0, Linux Enterprise Micro 5.1, Linux Enterprise Micro 5.2 and 2 moretar1.34-150000.3.12.1SUSE-SU-2022:1548-1
SUSELinux Enterprise Micro 5.0, Linux Enterprise Module for Basesystem 15 SP2tar1.30-3.6.1SUSE-SU-2021:0974-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5tar1.27.1-15.9.1SUSE-SU-2021:0975-1
openSUSELeap 15.2tar1.30-lp152.4.3.1openSUSE-SU-2021:0494-1
openSUSELeap 15.3tar1.34-150000.3.12.1SUSE-SU-2022:1548-1
openSUSETumbleweedtar1.34-5.1openSUSE-SU-2024:11620-1
Alpinev3.10tar1.32-r1ALPINE-CVE-2021-20193
Alpinev3.11, v3.12tar1.32-r2ALPINE-CVE-2021-20193
Alpinev3.13, v3.14, v3.15 and 9 moretar1.34-r0ALPINE-CVE-2021-20193

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

The vulnerability in GNU Tar is rated as moderate severity because, while it results in a denial of service through memory leaks, its exploitation is constrained to the application's operational context without impacting the broader system integrity or security. The leak occurs in the `read_header()` function, where memory allocated for handling tar entries is not properly released, leading to resource exhaustion. However, this vulnerability does not facilitate arbitrary code execution, privilege escalation, or data corruption, which are characteristic of higher-severity vulnerabilities. Furthermore, the memory leak is contingent upon user interaction, as it requires the extraction of maliciously crafted tar files, thereby limiting its potential for widespread exploitation.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6tarOut of support scope
Red Hat Enterprise Linux 7tarOut of support scope
Red Hat Enterprise Linux 8tarFix deferred
Red Hat Enterprise Linux 9tarNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-20193.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-23-348-10Siemens SIMATIC S7-15002023-12-12Critical Manufacturing, Transportation Systems, Energy, Healthcare and Public Health, Financial Services, Government Services and FacilitiesSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0), SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0), SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) and 2 morenone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

  • CAPEC-540 Overread Buffers Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON