Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2021-32803

published high CVSS 3.1 · 8.2

Arbitrary File Creation/Overwrite via insufficient symlink protection due to directory cache poisoning

Published
03 Aug 2021, 19:05:12 UTC
Updated
03 Aug 2024, 23:33:56 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
npm — node-tar< 3.2.3 · >= 4.0.0, < 4.4.15 · >= 5.0.0, < 5.0.7 · >= 6.0.0, < 6.1.2 Affected Not stated GitHub_M
Ubuntu focal node-tar Advisory build 4.4.10+ds1-2ubuntu1+esm1 USN-5283-1
AlmaLinux 8 nodejs Advisory build 1:12.22.5-1.module_el8.4.0+2529+af52a4c7 ALSA-2021:3623
Alpine Linux edge tar Fixed 0 Package fix record
Oracle Linux 8 nodejsaarch64 · nodejs · 12b Advisory build 1:12.22.5-1.module+el8.4.0+20308+065a70e3 ELSA-2021-3623
Red Hat Enterprise Linux RHEL-7 rh-nodejs12-nodejsppc64le Advisory build 12.22.5-1.el7 RHSA-2021:3281
AlmaLinux 8 nodejs Advisory build 1:12.22.5-1.module_el8.5.0+85+79a7b441 ALSA-2021:3623
AlmaLinux 8 nodejs-devel Advisory build 1:12.22.5-1.module_el8.4.0+2529+af52a4c7 ALSA-2021:3623
Show 93 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
AlmaLinux 8 nodejs-devel Advisory build 1:12.22.5-1.module_el8.5.0+85+79a7b441 ALSA-2021:3623
AlmaLinux 8 nodejs-docs Advisory build 1:12.22.5-1.module_el8.4.0+2529+af52a4c7 ALSA-2021:3623
AlmaLinux 8 nodejs-full-i18n Advisory build 1:12.22.5-1.module_el8.4.0+2529+af52a4c7 ALSA-2021:3623
AlmaLinux 8 nodejs-full-i18n Advisory build 1:12.22.5-1.module_el8.5.0+85+79a7b441 ALSA-2021:3623
AlmaLinux 8 nodejs-nodemon Advisory build 2.0.3-1.module_el8.4.0+2521+c668cc9f ALSA-2021:3623
AlmaLinux 8 nodejs-nodemon Advisory build 2.0.3-1.module_el8.4.0+2521+c668cc9f ALSA-2021:3666
AlmaLinux 8 nodejs-packaging Advisory build 17-3.module_el8.3.0+2023+d2377ea3 ALSA-2021:3623
AlmaLinux 8 nodejs-packaging Advisory build 17-3.module_el8.4.0+2224+b07ac28e ALSA-2021:3623
AlmaLinux 8 nodejs-packaging Advisory build 17-3.module_el8.4.0+2521+c668cc9f ALSA-2021:3623
AlmaLinux 8 nodejs-packaging Advisory build 23-3.module_el8.4.0+2522+3bd42762 ALSA-2021:3666
AlmaLinux 8 nodejs-packaging Advisory build 23-3.module_el8.5.0+254+b4526b16 ALSA-2021:3666
AlmaLinux 8 npm Advisory build 1:6.14.14-1.12.22.5.1.module_el8.4.0+2529+af52a4c7 ALSA-2021:3623
AlmaLinux 8 npm Advisory build 1:6.14.14-1.12.22.5.1.module_el8.5.0+85+79a7b441 ALSA-2021:3623
Alpine Linux v3.16 tar Fixed 0 Package fix record
Alpine Linux v3.17 tar Fixed 0 Package fix record
Alpine Linux v3.18 tar Fixed 0 Package fix record
Alpine Linux v3.19 tar Fixed 0 Package fix record
Alpine Linux v3.20 tar Fixed 0 Package fix record
Alpine Linux v3.21 tar Fixed 0 Package fix record
Alpine Linux v3.22 tar Fixed 0 Package fix record
Alpine Linux v3.23 tar Fixed 0 Package fix record
Alpine Linux v3.24 tar Fixed 0 Package fix record
Oracle Linux 8 nodejsaarch64 · nodejs · 14b Advisory build 1:14.17.5-1.module+el8.4.0+20313+f90c2973 ELSA-2021-3666
Oracle Linux 8 nodejsx86_64 · nodejs · 12b Advisory build 1:12.22.5-1.module+el8.4.0+20308+065a70e3 ELSA-2021-3623
Oracle Linux 8 nodejsx86_64 · nodejs · 14b Advisory build 1:14.17.5-1.module+el8.4.0+20313+f90c2973 ELSA-2021-3666
Oracle Linux 8 nodejs-develaarch64 · nodejs · 12b Advisory build 1:12.22.5-1.module+el8.4.0+20308+065a70e3 ELSA-2021-3623
Oracle Linux 8 nodejs-develaarch64 · nodejs · 14b Advisory build 1:14.17.5-1.module+el8.4.0+20313+f90c2973 ELSA-2021-3666
Oracle Linux 8 nodejs-develx86_64 · nodejs · 12b Advisory build 1:12.22.5-1.module+el8.4.0+20308+065a70e3 ELSA-2021-3623
Oracle Linux 8 nodejs-develx86_64 · nodejs · 14b Advisory build 1:14.17.5-1.module+el8.4.0+20313+f90c2973 ELSA-2021-3666
Oracle Linux 8 nodejs-docsaarch64 · nodejs · 12b Advisory build 1:12.22.5-1.module+el8.4.0+20308+065a70e3 ELSA-2021-3623
Oracle Linux 8 nodejs-docsaarch64 · nodejs · 14b Advisory build 1:14.17.5-1.module+el8.4.0+20313+f90c2973 ELSA-2021-3666
Oracle Linux 8 nodejs-docsx86_64 · nodejs · 12b Advisory build 1:12.22.5-1.module+el8.4.0+20308+065a70e3 ELSA-2021-3623
Oracle Linux 8 nodejs-docsx86_64 · nodejs · 14b Advisory build 1:14.17.5-1.module+el8.4.0+20313+f90c2973 ELSA-2021-3666
Oracle Linux 8 nodejs-full-i18naarch64 · nodejs · 12b Advisory build 1:12.22.5-1.module+el8.4.0+20308+065a70e3 ELSA-2021-3623
Oracle Linux 8 nodejs-full-i18naarch64 · nodejs · 14b Advisory build 1:14.17.5-1.module+el8.4.0+20313+f90c2973 ELSA-2021-3666
Oracle Linux 8 nodejs-full-i18nx86_64 · nodejs · 12b Advisory build 1:12.22.5-1.module+el8.4.0+20308+065a70e3 ELSA-2021-3623
Oracle Linux 8 nodejs-full-i18nx86_64 · nodejs · 14b Advisory build 1:14.17.5-1.module+el8.4.0+20313+f90c2973 ELSA-2021-3666
Oracle Linux 8 nodejs-nodemonaarch64 · nodejs · 12b Advisory build 0:2.0.3-1.module+el8.4.0+20281+eb64e322 ELSA-2021-3623
Oracle Linux 8 nodejs-nodemonaarch64 · nodejs · 14b Advisory build 0:2.0.3-1.module+el8.3.0+7818+6cd30d85 ELSA-2021-3666
Oracle Linux 8 nodejs-nodemonx86_64 · nodejs · 12b Advisory build 0:2.0.3-1.module+el8.4.0+20281+eb64e322 ELSA-2021-3623
Oracle Linux 8 nodejs-nodemonx86_64 · nodejs · 14b Advisory build 0:2.0.3-1.module+el8.3.0+7818+6cd30d85 ELSA-2021-3666
Oracle Linux 8 nodejs-packagingaarch64 · nodejs · 12b Advisory build 0:17-3.module+el8.1.0+5393+aaf413e3 ELSA-2021-3623
Oracle Linux 8 nodejs-packagingaarch64 · nodejs · 14b Advisory build 0:23-3.module+el8.3.0+7818+6cd30d85 ELSA-2021-3666
Oracle Linux 8 nodejs-packagingx86_64 · nodejs · 12b Advisory build 0:17-3.module+el8.1.0+5393+aaf413e3 ELSA-2021-3623
Oracle Linux 8 nodejs-packagingx86_64 · nodejs · 14b Advisory build 0:23-3.module+el8.3.0+7818+6cd30d85 ELSA-2021-3666
Oracle Linux 8 npmaarch64 · nodejs · 12b Advisory build 1:6.14.14-1.12.22.5.1.module+el8.4.0+20308+065a70e3 ELSA-2021-3623
Oracle Linux 8 npmaarch64 · nodejs · 14b Advisory build 1:6.14.14-1.14.17.5.1.module+el8.4.0+20313+f90c2973 ELSA-2021-3666
Oracle Linux 8 npmx86_64 · nodejs · 12b Advisory build 1:6.14.14-1.12.22.5.1.module+el8.4.0+20308+065a70e3 ELSA-2021-3623
Oracle Linux 8 npmx86_64 · nodejs · 14b Advisory build 1:6.14.14-1.14.17.5.1.module+el8.4.0+20313+f90c2973 ELSA-2021-3666
Red Hat Enterprise Linux RHEL-7 rh-nodejs12-nodejss390x Advisory build 12.22.5-1.el7 RHSA-2021:3281
Red Hat Enterprise Linux RHEL-7 rh-nodejs12-nodejssrc Advisory build 12.22.5-1.el7 RHSA-2021:3281
Red Hat Enterprise Linux RHEL-7 rh-nodejs12-nodejsx86_64 Advisory build 12.22.5-1.el7 RHSA-2021:3281
Red Hat Enterprise Linux RHEL-7 rh-nodejs12-nodejs-debuginfoppc64le Advisory build 12.22.5-1.el7 RHSA-2021:3281
Red Hat Enterprise Linux RHEL-7 rh-nodejs12-nodejs-debuginfos390x Advisory build 12.22.5-1.el7 RHSA-2021:3281
Red Hat Enterprise Linux RHEL-7 rh-nodejs12-nodejs-debuginfox86_64 Advisory build 12.22.5-1.el7 RHSA-2021:3281
Red Hat Enterprise Linux RHEL-7 rh-nodejs12-nodejs-develppc64le Advisory build 12.22.5-1.el7 RHSA-2021:3281
Red Hat Enterprise Linux RHEL-7 rh-nodejs12-nodejs-devels390x Advisory build 12.22.5-1.el7 RHSA-2021:3281
Red Hat Enterprise Linux RHEL-7 rh-nodejs12-nodejs-develx86_64 Advisory build 12.22.5-1.el7 RHSA-2021:3281
Red Hat Enterprise Linux RHEL-7 rh-nodejs12-nodejs-docsnoarch Advisory build 12.22.5-1.el7 RHSA-2021:3281
Red Hat Enterprise Linux RHEL-7 rh-nodejs12-nodejs-nodemonnoarch Advisory build 2.0.3-5.el7 RHSA-2021:3281
Red Hat Enterprise Linux RHEL-7 rh-nodejs12-nodejs-nodemonsrc Advisory build 2.0.3-5.el7 RHSA-2021:3281
Red Hat Enterprise Linux RHEL-7 rh-nodejs12-npmppc64le Advisory build 6.14.14-12.22.5.1.el7 RHSA-2021:3281
Red Hat Enterprise Linux RHEL-7 rh-nodejs12-npms390x Advisory build 6.14.14-12.22.5.1.el7 RHSA-2021:3281
Red Hat Enterprise Linux RHEL-7 rh-nodejs12-npmx86_64 Advisory build 6.14.14-12.22.5.1.el7 RHSA-2021:3281
Red Hat Enterprise Linux RHEL-7 rh-nodejs14-nodejsppc64le Advisory build 14.17.5-1.el7 RHSA-2021:3280
Red Hat Enterprise Linux RHEL-7 rh-nodejs14-nodejss390x Advisory build 14.17.5-1.el7 RHSA-2021:3280
Red Hat Enterprise Linux RHEL-7 rh-nodejs14-nodejssrc Advisory build 14.17.5-1.el7 RHSA-2021:3280
Red Hat Enterprise Linux RHEL-7 rh-nodejs14-nodejsx86_64 Advisory build 14.17.5-1.el7 RHSA-2021:3280
Red Hat Enterprise Linux RHEL-7 rh-nodejs14-nodejs-debuginfoppc64le Advisory build 14.17.5-1.el7 RHSA-2021:3280
Red Hat Enterprise Linux RHEL-7 rh-nodejs14-nodejs-debuginfos390x Advisory build 14.17.5-1.el7 RHSA-2021:3280
Red Hat Enterprise Linux RHEL-7 rh-nodejs14-nodejs-debuginfox86_64 Advisory build 14.17.5-1.el7 RHSA-2021:3280
Red Hat Enterprise Linux RHEL-7 rh-nodejs14-nodejs-develppc64le Advisory build 14.17.5-1.el7 RHSA-2021:3280
Red Hat Enterprise Linux RHEL-7 rh-nodejs14-nodejs-devels390x Advisory build 14.17.5-1.el7 RHSA-2021:3280
Red Hat Enterprise Linux RHEL-7 rh-nodejs14-nodejs-develx86_64 Advisory build 14.17.5-1.el7 RHSA-2021:3280
Red Hat Enterprise Linux RHEL-7 rh-nodejs14-nodejs-docsnoarch Advisory build 14.17.5-1.el7 RHSA-2021:3280
Red Hat Enterprise Linux RHEL-7 rh-nodejs14-nodejs-nodemonnoarch Advisory build 2.0.3-5.el7 RHSA-2021:3280
Red Hat Enterprise Linux RHEL-7 rh-nodejs14-nodejs-nodemonsrc Advisory build 2.0.3-5.el7 RHSA-2021:3280
Red Hat Enterprise Linux RHEL-7 rh-nodejs14-npmppc64le Advisory build 6.14.14-14.17.5.1.el7 RHSA-2021:3280
Red Hat Enterprise Linux RHEL-7 rh-nodejs14-npms390x Advisory build 6.14.14-14.17.5.1.el7 RHSA-2021:3280
Red Hat Enterprise Linux RHEL-7 rh-nodejs14-npmx86_64 Advisory build 6.14.14-14.17.5.1.el7 RHSA-2021:3280
Red Hat Enterprise Linux RHEL-8 nodejsaarch64 Advisory build 1:12.22.5-1.module+el8.1.0+12238+63fe3aec RHSA-2021:3639
Red Hat Enterprise Linux RHEL-8 nodejsaarch64 Advisory build 1:12.22.5-1.module+el8.2.0+12241+a3db445b RHSA-2021:3638
Red Hat Enterprise Linux RHEL-8 nodejsaarch64 Advisory build 1:12.22.5-1.module+el8.4.0+12242+af52a4c7 RHSA-2021:3623
Red Hat Enterprise Linux RHEL-8 nodejsaarch64 Advisory build 1:14.17.5-1.module+el8.4.0+12247+e2879e58 RHSA-2021:3666
Red Hat Enterprise Linux RHEL-8 nodejsppc64le Advisory build 1:12.22.5-1.module+el8.1.0+12238+63fe3aec RHSA-2021:3639
Red Hat Enterprise Linux RHEL-8 nodejsppc64le Advisory build 1:12.22.5-1.module+el8.2.0+12241+a3db445b RHSA-2021:3638
Red Hat Enterprise Linux RHEL-8 nodejsppc64le Advisory build 1:12.22.5-1.module+el8.4.0+12242+af52a4c7 RHSA-2021:3623
Red Hat Enterprise Linux RHEL-8 nodejsppc64le Advisory build 1:14.17.5-1.module+el8.4.0+12247+e2879e58 RHSA-2021:3666
Red Hat Enterprise Linux RHEL-8 nodejss390x Advisory build 1:12.22.5-1.module+el8.1.0+12238+63fe3aec RHSA-2021:3639
Red Hat Enterprise Linux RHEL-8 nodejss390x Advisory build 1:12.22.5-1.module+el8.2.0+12241+a3db445b RHSA-2021:3638
Red Hat Enterprise Linux RHEL-8 nodejss390x Advisory build 1:12.22.5-1.module+el8.4.0+12242+af52a4c7 RHSA-2021:3623
Red Hat Enterprise Linux RHEL-8 nodejss390x Advisory build 1:14.17.5-1.module+el8.4.0+12247+e2879e58 RHSA-2021:3666
Red Hat Enterprise Linux RHEL-8 nodejssrc Advisory build 1:12.22.5-1.module+el8.1.0+12238+63fe3aec RHSA-2021:3639

Package entries are limited to the first 100 builds and 100 linked advisories.

Description

The npm package "tar" (aka node-tar) before versions 6.1.2, 5.0.7, 4.4.15, and 3.2.3 has an arbitrary File Creation/Overwrite vulnerability via insufficient symlink protection. `node-tar` aims to guarantee that any file whose location would be modified by a symbolic link is not extracted. This is, in part, achieved by ensuring that extracted directories are not symlinks. Additionally, in order to prevent unnecessary `stat` calls to determine whether a given path is a directory, paths are cached when directories are created. This logic was insufficient when extracting tar files that contained both a directory and a symlink with the same name as the directory. This order of operations resulted in the directory being created and added to the `node-tar` directory cache. When a directory is present in the directory cache, subsequent calls to mkdir for that directory are skipped. However, this is also where `node-tar` checks for symlinks occur. By first creating a directory, and then replacing that directory with a symlink, it was thus possible to bypass `node-tar` symlink checks on directories, essentially allowing an untrusted tar file to symlink into an arbitrary location and subsequently extracting arbitrary files into that location, thus allowing arbitrary file creation and overwrite. This issue was addressed in releases 3.2.3, 4.4.15, 5.0.7 and 6.1.2.

en · GitHub_M · cna

Vendor advisories explicitly linked to this CVE.

52

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
8.2 / 10
Severity
high
Provider
GitHub_M · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
npm node-tar < 3.2.3 (affected)>= 4.0.0, < 4.4.15 (affected)>= 5.0.0, < 5.0.7 (affected)>= 6.0.0, < 6.1.2 (affected) GitHub_M · cna

Weaknesses

1
  • CWE-22 CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (GitHub_M · cna)

References

6

Provider assertions

2

GitHub_M · cna

Arbitrary File Creation/Overwrite via insufficient symlink protection due to directory cache poisoning

CVE · adp

CVE Program Container

Provenance

Schema
5.1
Searchable
yes
Content hash
f47e11ee8570110fd5090d5d9ea7861a2c2f674b600d0a1282f3491e8267963a
Ingested
23 Sep 2026, 07:54:30 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected