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-37701

published high CVSS 3.1 · 8.2

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

Published
31 Aug 2021, 00:00:00 UTC
Updated
04 Aug 2024, 01:23:01 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
npm — node-tar< 4.4.16 · >= 5.0.0, < 5.0.8 · >= 6.0.0, < 6.1.7 Affected Not stated GitHub_M
Debian bullseye node-tar Advisory build 6.0.5+ds1+~cs11.3.9-1+deb11u2 DSA-5008-1
AlmaLinux 8 nodejs Advisory build 1:14.18.2-2.module_el8.5.0+254+b4526b16 ALSA-2022:0350
Alpine Linux edge nodejs Fixed 14.17.6-r0 Package fix record
Oracle Linux 8 nodejsaarch64 · nodejs · 14b Advisory build 1:14.18.2-2.module+el8.5.0+20489+261d51d3 ELSA-2022-0350
Red Hat Enterprise Linux RHEL-7 rh-nodejs12-nodejssrc Advisory build 12.22.12-2.el7 RHSA-2022:4914
Debian buster node-tar Advisory build 4.4.6+ds1-3+deb10u2 DLA-3237-1
AlmaLinux 8 nodejs Advisory build 1:14.18.2-2.module_el8.5.0+2618+8d46dafd ALSA-2022:0350
Show 93 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
AlmaLinux 8 nodejs-devel Advisory build 1:14.18.2-2.module_el8.5.0+254+b4526b16 ALSA-2022:0350
AlmaLinux 8 nodejs-devel Advisory build 1:14.18.2-2.module_el8.5.0+2618+8d46dafd ALSA-2022:0350
AlmaLinux 8 nodejs-docs Advisory build 1:14.18.2-2.module_el8.5.0+254+b4526b16 ALSA-2022:0350
AlmaLinux 8 nodejs-docs Advisory build 1:14.18.2-2.module_el8.5.0+2618+8d46dafd ALSA-2022:0350
AlmaLinux 8 nodejs-full-i18n Advisory build 1:14.18.2-2.module_el8.5.0+254+b4526b16 ALSA-2022:0350
AlmaLinux 8 nodejs-full-i18n Advisory build 1:14.18.2-2.module_el8.5.0+2618+8d46dafd ALSA-2022:0350
AlmaLinux 8 nodejs-nodemon Advisory build 2.0.15-1.module_el8.5.0+2605+45d748af ALSA-2022:0350
AlmaLinux 8 nodejs-nodemon Advisory build 2.0.15-1.module_el8.5.0+2618+8d46dafd ALSA-2022:0350
AlmaLinux 8 nodejs-nodemon Advisory build 2.0.15-1.module_el8.6.0+2904+f21ad6f4 ALSA-2022:0350
AlmaLinux 8 nodejs-packaging Advisory build 23-3.module_el8.4.0+2522+3bd42762 ALSA-2022:0350
AlmaLinux 8 nodejs-packaging Advisory build 23-3.module_el8.5.0+2618+8d46dafd ALSA-2022:0350
AlmaLinux 8 npm Advisory build 1:6.14.15-1.14.18.2.2.module_el8.5.0+254+b4526b16 ALSA-2022:0350
AlmaLinux 8 npm Advisory build 1:6.14.15-1.14.18.2.2.module_el8.5.0+2618+8d46dafd ALSA-2022:0350
Alpine Linux edge tar Fixed 0 Package fix record
Alpine Linux v3.11 nodejs Fixed 12.22.6-r0 Package fix record
Alpine Linux v3.12 nodejs Fixed 12.22.6-r0 Package fix record
Alpine Linux v3.13 nodejs Fixed 14.17.6-r0 Package fix record
Alpine Linux v3.14 nodejs Fixed 14.17.6-r0 Package fix record
Alpine Linux v3.15 nodejs Fixed 14.17.6-r0 Package fix record
Alpine Linux v3.16 nodejs Fixed 14.17.6-r0 Package fix record
Alpine Linux v3.16 tar Fixed 0 Package fix record
Alpine Linux v3.17 nodejs Fixed 14.17.6-r0 Package fix record
Alpine Linux v3.17 tar Fixed 0 Package fix record
Alpine Linux v3.18 nodejs Fixed 14.17.6-r0 Package fix record
Alpine Linux v3.18 tar Fixed 0 Package fix record
Alpine Linux v3.19 nodejs Fixed 14.17.6-r0 Package fix record
Alpine Linux v3.19 tar Fixed 0 Package fix record
Alpine Linux v3.20 nodejs Fixed 14.17.6-r0 Package fix record
Alpine Linux v3.20 tar Fixed 0 Package fix record
Alpine Linux v3.21 nodejs Fixed 14.17.6-r0 Package fix record
Alpine Linux v3.21 tar Fixed 0 Package fix record
Alpine Linux v3.22 nodejs Fixed 14.17.6-r0 Package fix record
Alpine Linux v3.22 tar Fixed 0 Package fix record
Alpine Linux v3.23 nodejs Fixed 14.17.6-r0 Package fix record
Alpine Linux v3.23 tar Fixed 0 Package fix record
Alpine Linux v3.24 nodejs Fixed 14.17.6-r0 Package fix record
Alpine Linux v3.24 tar Fixed 0 Package fix record
Oracle Linux 8 nodejsx86_64 · nodejs · 14b Advisory build 1:14.18.2-2.module+el8.5.0+20489+261d51d3 ELSA-2022-0350
Oracle Linux 8 nodejs-develaarch64 · nodejs · 14b Advisory build 1:14.18.2-2.module+el8.5.0+20489+261d51d3 ELSA-2022-0350
Oracle Linux 8 nodejs-develx86_64 · nodejs · 14b Advisory build 1:14.18.2-2.module+el8.5.0+20489+261d51d3 ELSA-2022-0350
Oracle Linux 8 nodejs-docsaarch64 · nodejs · 14b Advisory build 1:14.18.2-2.module+el8.5.0+20489+261d51d3 ELSA-2022-0350
Oracle Linux 8 nodejs-docsx86_64 · nodejs · 14b Advisory build 1:14.18.2-2.module+el8.5.0+20489+261d51d3 ELSA-2022-0350
Oracle Linux 8 nodejs-full-i18naarch64 · nodejs · 14b Advisory build 1:14.18.2-2.module+el8.5.0+20489+261d51d3 ELSA-2022-0350
Oracle Linux 8 nodejs-full-i18nx86_64 · nodejs · 14b Advisory build 1:14.18.2-2.module+el8.5.0+20489+261d51d3 ELSA-2022-0350
Oracle Linux 8 nodejs-nodemonaarch64 · nodejs · 14b Advisory build 0:2.0.15-1.module+el8.5.0+20489+261d51d3 ELSA-2022-0350
Oracle Linux 8 nodejs-nodemonx86_64 · nodejs · 14b Advisory build 0:2.0.15-1.module+el8.5.0+20489+261d51d3 ELSA-2022-0350
Oracle Linux 8 nodejs-packagingaarch64 · nodejs · 14b Advisory build 0:23-3.module+el8.3.0+7818+6cd30d85 ELSA-2022-0350
Oracle Linux 8 nodejs-packagingx86_64 · nodejs · 14b Advisory build 0:23-3.module+el8.3.0+7818+6cd30d85 ELSA-2022-0350
Oracle Linux 8 npmaarch64 · nodejs · 14b Advisory build 1:6.14.15-1.14.18.2.2.module+el8.5.0+20489+261d51d3 ELSA-2022-0350
Oracle Linux 8 npmx86_64 · nodejs · 14b Advisory build 1:6.14.15-1.14.18.2.2.module+el8.5.0+20489+261d51d3 ELSA-2022-0350
Red Hat Enterprise Linux RHEL-7 rh-nodejs12-nodejsx86_64 Advisory build 12.22.12-2.el7 RHSA-2022:4914
Red Hat Enterprise Linux RHEL-7 rh-nodejs12-nodejs-debuginfox86_64 Advisory build 12.22.12-2.el7 RHSA-2022:4914
Red Hat Enterprise Linux RHEL-7 rh-nodejs12-nodejs-develx86_64 Advisory build 12.22.12-2.el7 RHSA-2022:4914
Red Hat Enterprise Linux RHEL-7 rh-nodejs12-nodejs-docsnoarch Advisory build 12.22.12-2.el7 RHSA-2022:4914
Red Hat Enterprise Linux RHEL-7 rh-nodejs12-npmx86_64 Advisory build 6.14.16-12.22.12.2.el7 RHSA-2022:4914
Red Hat Enterprise Linux RHEL-7 rh-nodejs14-nodejssrc Advisory build 14.18.2-1.el7 RHSA-2022:0041
Red Hat Enterprise Linux RHEL-7 rh-nodejs14-nodejsx86_64 Advisory build 14.18.2-1.el7 RHSA-2022:0041
Red Hat Enterprise Linux RHEL-7 rh-nodejs14-nodejs-debuginfox86_64 Advisory build 14.18.2-1.el7 RHSA-2022:0041
Red Hat Enterprise Linux RHEL-7 rh-nodejs14-nodejs-develx86_64 Advisory build 14.18.2-1.el7 RHSA-2022:0041
Red Hat Enterprise Linux RHEL-7 rh-nodejs14-nodejs-docsnoarch Advisory build 14.18.2-1.el7 RHSA-2022:0041
Red Hat Enterprise Linux RHEL-7 rh-nodejs14-nodejs-nodemonnoarch Advisory build 2.0.3-6.el7 RHSA-2022:0041
Red Hat Enterprise Linux RHEL-7 rh-nodejs14-nodejs-nodemonsrc Advisory build 2.0.3-6.el7 RHSA-2022:0041
Red Hat Enterprise Linux RHEL-7 rh-nodejs14-npmx86_64 Advisory build 6.14.15-14.18.2.1.el7 RHSA-2022:0041
Red Hat Enterprise Linux RHEL-8 nodejsaarch64 Advisory build 1:14.18.2-2.module+el8.4.0+13643+6c0ebf22 RHSA-2022:0246
Red Hat Enterprise Linux RHEL-8 nodejsaarch64 Advisory build 1:14.18.2-2.module+el8.5.0+13644+8d46dafd RHSA-2022:0350
Red Hat Enterprise Linux RHEL-8 nodejsppc64le Advisory build 1:14.18.2-2.module+el8.4.0+13643+6c0ebf22 RHSA-2022:0246
Red Hat Enterprise Linux RHEL-8 nodejsppc64le Advisory build 1:14.18.2-2.module+el8.5.0+13644+8d46dafd RHSA-2022:0350
Red Hat Enterprise Linux RHEL-8 nodejss390x Advisory build 1:14.18.2-2.module+el8.4.0+13643+6c0ebf22 RHSA-2022:0246
Red Hat Enterprise Linux RHEL-8 nodejss390x Advisory build 1:14.18.2-2.module+el8.5.0+13644+8d46dafd RHSA-2022:0350
Red Hat Enterprise Linux RHEL-8 nodejssrc Advisory build 1:14.18.2-2.module+el8.4.0+13643+6c0ebf22 RHSA-2022:0246
Red Hat Enterprise Linux RHEL-8 nodejssrc Advisory build 1:14.18.2-2.module+el8.5.0+13644+8d46dafd RHSA-2022:0350
Red Hat Enterprise Linux RHEL-8 nodejsx86_64 Advisory build 1:14.18.2-2.module+el8.4.0+13643+6c0ebf22 RHSA-2022:0246
Red Hat Enterprise Linux RHEL-8 nodejsx86_64 Advisory build 1:14.18.2-2.module+el8.5.0+13644+8d46dafd RHSA-2022:0350
Red Hat Enterprise Linux RHEL-8 nodejs-debuginfoaarch64 Advisory build 1:14.18.2-2.module+el8.4.0+13643+6c0ebf22 RHSA-2022:0246
Red Hat Enterprise Linux RHEL-8 nodejs-debuginfoaarch64 Advisory build 1:14.18.2-2.module+el8.5.0+13644+8d46dafd RHSA-2022:0350
Red Hat Enterprise Linux RHEL-8 nodejs-debuginfoppc64le Advisory build 1:14.18.2-2.module+el8.4.0+13643+6c0ebf22 RHSA-2022:0246
Red Hat Enterprise Linux RHEL-8 nodejs-debuginfoppc64le Advisory build 1:14.18.2-2.module+el8.5.0+13644+8d46dafd RHSA-2022:0350
Red Hat Enterprise Linux RHEL-8 nodejs-debuginfos390x Advisory build 1:14.18.2-2.module+el8.4.0+13643+6c0ebf22 RHSA-2022:0246
Red Hat Enterprise Linux RHEL-8 nodejs-debuginfos390x Advisory build 1:14.18.2-2.module+el8.5.0+13644+8d46dafd RHSA-2022:0350
Red Hat Enterprise Linux RHEL-8 nodejs-debuginfox86_64 Advisory build 1:14.18.2-2.module+el8.4.0+13643+6c0ebf22 RHSA-2022:0246
Red Hat Enterprise Linux RHEL-8 nodejs-debuginfox86_64 Advisory build 1:14.18.2-2.module+el8.5.0+13644+8d46dafd RHSA-2022:0350
Red Hat Enterprise Linux RHEL-8 nodejs-debugsourceaarch64 Advisory build 1:14.18.2-2.module+el8.4.0+13643+6c0ebf22 RHSA-2022:0246
Red Hat Enterprise Linux RHEL-8 nodejs-debugsourceaarch64 Advisory build 1:14.18.2-2.module+el8.5.0+13644+8d46dafd RHSA-2022:0350
Red Hat Enterprise Linux RHEL-8 nodejs-debugsourceppc64le Advisory build 1:14.18.2-2.module+el8.4.0+13643+6c0ebf22 RHSA-2022:0246
Red Hat Enterprise Linux RHEL-8 nodejs-debugsourceppc64le Advisory build 1:14.18.2-2.module+el8.5.0+13644+8d46dafd RHSA-2022:0350
Red Hat Enterprise Linux RHEL-8 nodejs-debugsources390x Advisory build 1:14.18.2-2.module+el8.4.0+13643+6c0ebf22 RHSA-2022:0246
Red Hat Enterprise Linux RHEL-8 nodejs-debugsources390x Advisory build 1:14.18.2-2.module+el8.5.0+13644+8d46dafd RHSA-2022:0350
Red Hat Enterprise Linux RHEL-8 nodejs-debugsourcex86_64 Advisory build 1:14.18.2-2.module+el8.4.0+13643+6c0ebf22 RHSA-2022:0246
Red Hat Enterprise Linux RHEL-8 nodejs-debugsourcex86_64 Advisory build 1:14.18.2-2.module+el8.5.0+13644+8d46dafd RHSA-2022:0350
Red Hat Enterprise Linux RHEL-8 nodejs-develaarch64 Advisory build 1:14.18.2-2.module+el8.4.0+13643+6c0ebf22 RHSA-2022:0246
Red Hat Enterprise Linux RHEL-8 nodejs-develaarch64 Advisory build 1:14.18.2-2.module+el8.5.0+13644+8d46dafd RHSA-2022:0350
Red Hat Enterprise Linux RHEL-8 nodejs-develppc64le Advisory build 1:14.18.2-2.module+el8.4.0+13643+6c0ebf22 RHSA-2022:0246
Red Hat Enterprise Linux RHEL-8 nodejs-develppc64le Advisory build 1:14.18.2-2.module+el8.5.0+13644+8d46dafd RHSA-2022:0350

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

Description

The npm package "tar" (aka node-tar) before versions 4.4.16, 5.0.8, and 6.1.7 has an arbitrary file creation/overwrite and arbitrary code execution vulnerability. 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, where the symlink and directory names in the archive entry used backslashes as a path separator on posix systems. The cache checking logic used both `\` and `/` characters as path separators, however `\` is a valid filename character on posix systems. 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. Additionally, a similar confusion could arise on case-insensitive filesystems. If a tar archive contained a directory at `FOO`, followed by a symbolic link named `foo`, then on case-insensitive file systems, the creation of the symbolic link would remove the directory from the filesystem, but _not_ from the internal directory cache, as it would not be treated as a cache hit. A subsequent file entry within the `FOO` directory would then be placed in the target of the symbolic link, thinking that the directory had already been created. These issues were addressed in releases 4.4.16, 5.0.8 and 6.1.7. The v3 branch of node-tar has been deprecated and did not receive patches for these issues. If you are still using a v3 release we recommend you update to a more recent version of node-tar. If this is not possible, a workaround is available in the referenced GHSA-9r2w-394v-53qc.

en · GitHub_M · cna

Vendor advisories explicitly linked to this CVE.

51

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 < 4.4.16 (affected)>= 5.0.0, < 5.0.8 (affected)>= 6.0.0, < 6.1.7 (affected) GitHub_M · cna

Weaknesses

2
  • CWE-22 CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (GitHub_M · cna)
  • CWE-59 CWE-59: Improper Link Resolution Before File Access ('Link Following') (GitHub_M · cna)

References

6

Provider assertions

2

GitHub_M · cna

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

CVE · adp

CVE Program Container

Provenance

Schema
5.1
Searchable
yes
Content hash
8db3c9a6e71397c4793cfdcff9183ade5a8c723aad88755e8728a74852211634
Ingested
23 Sep 2026, 07:55:20 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