Every CVE Search/ Get API key

CVE-2021-20193

Out-of-bounds Read and Missing Release of Memory after Effective Lifetime in tar

3.3 LowFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Local
Complexity
Low
Privileges needed
None
User interaction
Required

What an attacker can affect

Confidentiality
None
Integrity
None
Availability
Low

Exploit likelihood

1.10%Up 0.3 points since Apr 14, 2021
90%50%10%1%

What each source reports

NVD Score used 3.3

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.

Record
CVE-2021-20193
CVSS 3.1
3.3 LowCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
CVSS 2.0
4.3 MediumAV:N/AC:M/Au:N/C:N/I:N/A:P
Weakness
CWE-401, CWE-125
Updated
2026-11-02
CVE List No score

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.

Record
CVE-2021-20193
Weakness
CWE-401
Updated
2026-11-02
EUVDEUVD-2021-7640 No score

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.

Record
EUVD-2021-7640
Updated
2026-11-02
GitHub AdvisoriesGHSA-mwq4-jmcc-2cx4 5.5

Out-of-bounds Read and Missing Release of Memory after Effective Lifetime in tar

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.

Record
GHSA-mwq4-jmcc-2cx4
CVSS 3.1
5.5 MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Weakness
CWE-125, CWE-401
Updated
2026-11-02
OSVALPINE-CVE-2021-20193 3.3

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.

Record
ALPINE-CVE-2021-20193
CVSS 3.1
3.3 LowCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
Updated
2026-11-02
OSVBELL-CVE-2021-20193 3.3

CVE-2021-20193 does not affect BellSoft software

Record
BELL-CVE-2021-20193
CVSS 3.1
3.3 LowCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
Updated
2026-11-02
Show 13 moreShow less
OSV 3.3

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.

Record
CVE-2021-20193
CVSS 3.1
3.3 LowCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
Updated
2026-11-02
OSVDEBIAN-CVE-2021-20193 3.3

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.

Record
DEBIAN-CVE-2021-20193
CVSS 3.1
3.3 LowCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
Updated
2026-11-02
OSVJLSEC-2026-183 3.3

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.

Record
JLSEC-2026-183
CVSS 3.1
3.3 LowCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
CVSS 2.0
4.3 MediumAV:N/AC:M/Au:N/C:N/I:N/A:P
Updated
2026-11-02
OSVOESA-2021-1173 5.5

tar security update

GNU Tar provides the ability to create tar archives, as well as various other kinds of manipulation. For example, you can use Tar on previously created archives to extract files, to store additional files, or to update or list files which were already stored.

Security Fix(es):

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.(CVE-2021-20193)

Record
OESA-2021-1173
CVSS 3.1
5.5 MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVUBUNTU-CVE-2021-20193 3.3

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.

Record
UBUNTU-CVE-2021-20193
CVSS 3.1
3.3 LowCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
Updated
2026-11-02
OSVCLSA-2023-1677784249 No score

Fix CVE(s): CVE-2022-48303, CVE-2021-20193

  • SECURITY UPDATE: memory leak in read_header
    • debian/patches/CVE-2021-20193.patch: Don't return directly from the loop. Instead set the status and break. Return the status.
    • CVE-2021-20193.patch
  • SECURITY UPDATE: a heap buffer overflow
    • debian/patches/CVE-2022-48303.patch: Check for the end of field after leading byte (0x80 or 0xff) of base-256 encoded header value.
    • CVE-2022-48303.patch
  • improve debian/rules to build the project by root
Record
CLSA-2023-1677784249
Updated
2026-11-02
OSVMGASA-2021-0233 No score

Updated tar package fix a security vulnerability

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 (CVE-2021-20193).

Record
MGASA-2021-0233
Updated
2026-11-02
OSVopenSUSE-SU-2021:0494-1 No score

Security update for tar

This update for tar fixes the following issues:

CVE-2021-20193: Memory leak in read_header() in list.c (bsc#1181131)

This update was imported from the SUSE:SLE-15:Update update project.

Record
openSUSE-SU-2021:0494-1
Updated
2026-11-02
OSVopenSUSE-SU-2024:11620-1 No score

tar-1.34-5.1 on GA media

These are all security issues fixed in the tar-1.34-5.1 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:11620-1
Updated
2026-11-02
OSVSUSE-SU-2021:0974-1 No score

Security update for tar

This update for tar fixes the following issues:

CVE-2021-20193: Memory leak in read_header() in list.c (bsc#1181131)

Record
SUSE-SU-2021:0974-1
Updated
2026-11-02
OSVSUSE-SU-2021:0975-1 No score

Security update for tar

This update for tar fixes the following issues:

CVE-2021-20193: Memory leak in read_header() in list.c (bsc#1181131)

Record
SUSE-SU-2021:0975-1
Updated
2026-11-02
OSVSUSE-SU-2022:1548-1 No score

Security update for tar

This update for tar fixes the following issues:

  • CVE-2021-20193: Fixed a memory leak in read_header() in list.c (bsc#1181131).

  • CVE-2019-9923: Fixed a null-pointer dereference in pax_decode_header in sparse.c (bsc#1130496).

  • CVE-2018-20482: Fixed infinite read loop in sparse_dump_region in sparse.c (bsc#1120610).

  • Update to GNU tar 1.34:

    • Fix extraction over pipe
    • Fix memory leak in read_header (CVE-2021-20193) (bsc#1181131)
    • Fix extraction when . and .. are unreadable
    • Gracefully handle duplicate symlinks when extracting
    • Re-initialize supplementary groups when switching to user privileges
  • Update to GNU tar 1.33:

    • POSIX extended format headers do not include PID by default
    • --delay-directory-restore works for archives with reversed member ordering
    • Fix extraction of a symbolic link hardlinked to another symbolic link
    • Wildcards in exclude-vcs-ignore mode don't match slash
    • Fix the --no-overwrite-dir option
    • Fix handling of chained renames in incremental backups
    • Link counting works for file names supplied with -T
    • Accept only position-sensitive (file-selection) options in file list files
  • prepare usrmerge (bsc#1029961)

  • Update to GNU 1.32

    • Fix the use of --checkpoint without explicit --checkpoint-action
    • Fix extraction with the -U option
    • Fix iconv usage on BSD-based systems
    • Fix possible NULL dereference (savannah bug #55369) [bsc#1130496] [CVE-2019-9923]
    • Improve the testsuite
  • Update to GNU 1.31

    • Fix heap-buffer-overrun with --one-top-level, bug introduced with the addition of that option in 1.28
    • Support for zstd compression
    • New option '--zstd' instructs tar to use zstd as compression program. When listing, extractng and comparing, zstd compressed archives are recognized automatically. When '-a' option is in effect, zstd compression is selected if the destination archive name ends in '.zst' or '.tzst'.
    • The -K option interacts properly with member names given in the command line. Names of members to extract can be specified along with the '-K NAME' option. In this case, tar will extract NAME and those of named members that appear in the archive after it, which is consistent with the semantics of the option. Previous versions of tar extracted NAME, those of named members that appeared before it, and everything after it.
    • Fix CVE-2018-20482 - When creating archives with the --sparse option, previous versions of tar would loop endlessly if a sparse file had been truncated while being archived.
Record
SUSE-SU-2022:1548-1
Updated
2026-11-02
OSVUSN-5329-1 No score

tar vulnerability

It was discovered that tar incorrectly handled certain files. An attacker could possibly use this issue to cause tar to crash, resulting in a denial of service.

Record
USN-5329-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
tar
Alpine:v3.10
before 1.32-r1
1.32-r1
tar
Alpine:v3.11
before 1.32-r2
1.32-r2
tar
Alpine:v3.12
before 1.32-r2
1.32-r2
tar
Alpine:v3.13
before 1.34-r0
1.34-r0
tar
Alpine:v3.14
before 1.34-r0
1.34-r0
tar
Alpine:v3.15
before 1.34-r0
1.34-r0
tar
Alpine:v3.16
before 1.34-r0
1.34-r0
tar
Alpine:v3.17
before 1.34-r0
1.34-r0
tar
Alpine:v3.18
before 1.34-r0
1.34-r0
tar
Alpine:v3.19
before 1.34-r0
1.34-r0
Show 31 moreShow less
Affected packages
PackageAffectedFixed
tar
Alpine:v3.20
before 1.34-r0
1.34-r0
tar
Alpine:v3.21
before 1.34-r0
1.34-r0
tar
Alpine:v3.22
before 1.34-r0
1.34-r0
tar
Alpine:v3.23
before 1.34-r0
1.34-r0
tar
Alpine:v3.24
before 1.34-r0
1.34-r0
tar
TuxCare:Ubuntu:16.04
From an advisory covering 2 CVEs
before 1.28-2.1ubuntu0.2+tuxcare.els1
1.28-2.1ubuntu0.2+tuxcare.els1
tar-scripts
TuxCare:Ubuntu:16.04
From an advisory covering 2 CVEs
before 1.28-2.1ubuntu0.2+tuxcare.els1
1.28-2.1ubuntu0.2+tuxcare.els1
tar
Debian:12
before 1.34+dfsg-1
1.34+dfsg-1
tar
Debian:13
before 1.34+dfsg-1
1.34+dfsg-1
tar
Debian:14
before 1.34+dfsg-1
1.34+dfsg-1
Tar_jll
Julia
before 1.34.0+0
1.34.0+0
tar
Mageia:7
before 1.32-1.1.mga7
1.32-1.1.mga7
tar
Mageia:8
before 1.33-2.1.mga8
1.33-2.1.mga8
tar
openEuler:20.03-LTS-SP1
before 1.32-2.oe1
1.32-2.oe1
tar
SUSE:Linux Enterprise Module for Basesystem 15 SP2
before 1.30-3.6.1
1.30-3.6.1
tar
SUSE:Linux Enterprise Micro 5.0
before 1.30-3.6.1
1.30-3.6.1
tar
SUSE:Linux Enterprise Server 12 SP5
before 1.27.1-15.9.1
1.27.1-15.9.1
tar
SUSE:Linux Enterprise Server for SAP Applications 12 SP5
before 1.27.1-15.9.1
1.27.1-15.9.1
tar
SUSE:Linux Enterprise Module for Basesystem 15 SP3
From an advisory covering 3 CVEs
before 1.34-150000.3.12.1
1.34-150000.3.12.1
tar
SUSE:Linux Enterprise Real Time 15 SP2
From an advisory covering 3 CVEs
before 1.34-150000.3.12.1
1.34-150000.3.12.1
tar
SUSE:Linux Enterprise Micro 5.0
From an advisory covering 3 CVEs
before 1.34-150000.3.12.1
1.34-150000.3.12.1
tar
SUSE:Linux Enterprise Micro 5.1
From an advisory covering 3 CVEs
before 1.34-150000.3.12.1
1.34-150000.3.12.1
tar
SUSE:Linux Enterprise Micro 5.2
From an advisory covering 3 CVEs
before 1.34-150000.3.12.1
1.34-150000.3.12.1
tar
openSUSE:Leap 15.3
From an advisory covering 3 CVEs
before 1.34-150000.3.12.1
1.34-150000.3.12.1
tar
Ubuntu:Pro:14.04:LTS
before 1.27.1-1ubuntu0.1+esm2, plus listed versions
1.26+dfsg-81.27-31.27-41.27.1-11.27.1-1ubuntu0.11.27.1-1ubuntu0.1+esm1
1.27.1-1ubuntu0.1+esm2
tar
Ubuntu:Pro:16.04:LTS
before 1.28-2.1ubuntu0.2+esm1, plus listed versions
1.27.1-21.28-2ubuntu11.28-2.11.28-2.1ubuntu0.11.28-2.1ubuntu0.2
1.28-2.1ubuntu0.2+esm1
tar
Ubuntu:18.04:LTS
before 1.29b-2ubuntu0.3, plus listed versions
1.29b-21.29b-2ubuntu0.11.29b-2ubuntu0.2
1.29b-2ubuntu0.3
tar
Ubuntu:20.04:LTS
before 1.30+dfsg-7ubuntu0.20.04.2, plus listed versions
1.30+dfsg-61.30+dfsg-71.30+dfsg-7ubuntu0.20.04.1
1.30+dfsg-7ubuntu0.20.04.2
tar
Ubuntu:22.04:LTS
before 1.34+dfsg-1build1
1.34+dfsg-1build1
tar
openSUSE:Leap 15.2
before 1.30-lp152.4.3.1
1.30-lp152.4.3.1
tar
openSUSE:Tumbleweed
before 1.34-5.1
1.34-5.1

History

History
RecordedChangedSources
affected, facts
first indexedCVE List, EUVD, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2021-20193 is a low vulnerability (CVSS 3.3) in Gnu Tar, published March 26, 2021. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.10%, the 65th percentile. Fixed in tar 1.32-r1.

References

Show 22 moreShow less
MoveEnter Open