CVE-2021-20193
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.
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
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 Low
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L - CVSS 2.0
- 4.3 Medium
AV: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 Medium
CVSS: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 Low
CVSS: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 Low
CVSS: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 Low
CVSS: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 Low
CVSS: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 Low
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L - CVSS 2.0
- 4.3 Medium
AV: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 Medium
CVSS: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 Low
CVSS: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
| Package | Affected | Fixed |
|---|---|---|
tarAlpine:v3.10 |
before 1.32-r1 | 1.32-r1 |
tarAlpine:v3.11 |
before 1.32-r2 | 1.32-r2 |
tarAlpine:v3.12 |
before 1.32-r2 | 1.32-r2 |
tarAlpine:v3.13 |
before 1.34-r0 | 1.34-r0 |
tarAlpine:v3.14 |
before 1.34-r0 | 1.34-r0 |
tarAlpine:v3.15 |
before 1.34-r0 | 1.34-r0 |
tarAlpine:v3.16 |
before 1.34-r0 | 1.34-r0 |
tarAlpine:v3.17 |
before 1.34-r0 | 1.34-r0 |
tarAlpine:v3.18 |
before 1.34-r0 | 1.34-r0 |
tarAlpine:v3.19 |
before 1.34-r0 | 1.34-r0 |
Show 31 moreShow less
| Package | Affected | Fixed |
|---|---|---|
tarAlpine:v3.20 |
before 1.34-r0 | 1.34-r0 |
tarAlpine:v3.21 |
before 1.34-r0 | 1.34-r0 |
tarAlpine:v3.22 |
before 1.34-r0 | 1.34-r0 |
tarAlpine:v3.23 |
before 1.34-r0 | 1.34-r0 |
tarAlpine:v3.24 |
before 1.34-r0 | 1.34-r0 |
tarTuxCare: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-scriptsTuxCare:Ubuntu:16.04 From an advisory covering 2 CVEs |
before 1.28-2.1ubuntu0.2+tuxcare.els1 | 1.28-2.1ubuntu0.2+tuxcare.els1 |
tarDebian:12 |
before 1.34+dfsg-1 | 1.34+dfsg-1 |
tarDebian:13 |
before 1.34+dfsg-1 | 1.34+dfsg-1 |
tarDebian:14 |
before 1.34+dfsg-1 | 1.34+dfsg-1 |
Tar_jllJulia |
before 1.34.0+0 | 1.34.0+0 |
tarMageia:7 |
before 1.32-1.1.mga7 | 1.32-1.1.mga7 |
tarMageia:8 |
before 1.33-2.1.mga8 | 1.33-2.1.mga8 |
taropenEuler:20.03-LTS-SP1 |
before 1.32-2.oe1 | 1.32-2.oe1 |
tarSUSE:Linux Enterprise Module for Basesystem 15 SP2 |
before 1.30-3.6.1 | 1.30-3.6.1 |
tarSUSE:Linux Enterprise Micro 5.0 |
before 1.30-3.6.1 | 1.30-3.6.1 |
tarSUSE:Linux Enterprise Server 12 SP5 |
before 1.27.1-15.9.1 | 1.27.1-15.9.1 |
tarSUSE:Linux Enterprise Server for SAP Applications 12 SP5 |
before 1.27.1-15.9.1 | 1.27.1-15.9.1 |
tarSUSE: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 |
tarSUSE: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 |
tarSUSE:Linux Enterprise Micro 5.0 From an advisory covering 3 CVEs |
before 1.34-150000.3.12.1 | 1.34-150000.3.12.1 |
tarSUSE:Linux Enterprise Micro 5.1 From an advisory covering 3 CVEs |
before 1.34-150000.3.12.1 | 1.34-150000.3.12.1 |
tarSUSE:Linux Enterprise Micro 5.2 From an advisory covering 3 CVEs |
before 1.34-150000.3.12.1 | 1.34-150000.3.12.1 |
taropenSUSE:Leap 15.3 From an advisory covering 3 CVEs |
before 1.34-150000.3.12.1 | 1.34-150000.3.12.1 |
tarUbuntu: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 |
tarUbuntu: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 |
tarUbuntu:18.04:LTS |
before 1.29b-2ubuntu0.3, plus listed versions 1.29b-21.29b-2ubuntu0.11.29b-2ubuntu0.2 |
1.29b-2ubuntu0.3 |
tarUbuntu: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 |
tarUbuntu:22.04:LTS |
before 1.34+dfsg-1build1 | 1.34+dfsg-1build1 |
taropenSUSE:Leap 15.2 |
before 1.30-lp152.4.3.1 | 1.30-lp152.4.3.1 |
taropenSUSE:Tumbleweed |
before 1.34-5.1 | 1.34-5.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| first indexed | CVE 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
bugzilla.redhat.com/show_bug.cgi?id=1917565
savannah.gnu.org/bugs?59897
git.savannah.gnu.org/cgit/tar.git/commit?id=d9d4435692150fa8ff68e1b1a473d187cc3fd777
security.gentoo.org/glsa/202105-29
cert-portal.siemens.com/productcert/html/ssa-398330.html
nvd.nist.gov/vuln/detail/CVE-2021-20193
Show 22 moreShow less
github.com/advisories/GHSA-mwq4-jmcc-2cx4
security.alpinelinux.org/vuln/CVE-2021-20193
docs.bell-sw.com/security/cves/CVE-2021-20193
errata.cloudlinux.com/ubuntu16_04-els/CLSA-2023-1677784249
security-tracker.debian.org/tracker/CVE-2021-20193
advisories.mageia.org/MGASA-2021-0233.html
bugs.mageia.org/show_bug.cgi?id=29049
lists.opensuse.org/archives/list/[email protected]/thread/XRDSUUE3LUKBDRLPB7GTT5QZRPV5J7O4
openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2021-1173
suse.com/support/update/announcement/2021/suse-su-20210974-1
bugzilla.suse.com/1181131
suse.com/security/cve/CVE-2021-20193
suse.com/support/update/announcement/2021/suse-su-20210975-1
suse.com/support/update/announcement/2022/suse-su-20221548-1
bugzilla.suse.com/1029961
bugzilla.suse.com/1120610
bugzilla.suse.com/1130496
suse.com/security/cve/CVE-2018-20482
suse.com/security/cve/CVE-2019-9923
ubuntu.com/security/CVE-2021-20193
ubuntu.com/security/notices/USN-5329-1
cve.org/CVERecord?id=CVE-2021-20193