Security readout for executives and security teams
Plain-English summary
CVE-2021-37701 affects the npm tar package, also called node-tar. A malicious tar archive could make extraction write or overwrite files outside the intended directory. In some environments, that file overwrite could lead to code execution. The vulnerable v3 branch is deprecated and was not patched.
Executive priority
Treat as high priority when vulnerable systems extract untrusted archives or run extraction with meaningful filesystem privileges. If node-tar is only present in unused tooling, urgency is lower but remediation should still be tracked.
Technical view
node-tar cached created directories to avoid repeated stat calls. Archive entries using backslashes on POSIX, or case differences on case-insensitive filesystems, could poison that cache and bypass symlink protections. This allowed arbitrary file creation or overwrite through extraction. Fixed releases are 4.4.16, 5.0.8, and 6.1.7.
Likely exposure
Exposure is most likely where Node.js applications, build tooling, or packaged products use vulnerable node-tar versions and extract tar archives that are attacker-supplied or otherwise untrusted.
Exploitation context
The CVSS vector is local with required user interaction, and the bundle says KEV is false. The sources provided do not claim active exploitation. Practical risk depends on whether a vulnerable extractor processes malicious archives in a privileged or sensitive filesystem context.
Researcher notes
The core issue is directory cache poisoning that defeats symlink safety checks. The source bundle identifies CWE-22 and CWE-59, CVSS 8.2, and fixed node-tar release lines. Evidence for active exploitation was not provided.
Mitigation direction
- Upgrade node-tar to 4.4.16, 5.0.8, 6.1.7, or a later supported release.
- Move off node-tar v3; the source states that branch was deprecated and unpatched.
- If upgrade is impossible, review the workaround referenced in GHSA-9r2w-394v-53qc.
- Apply vendor distribution updates where node-tar is supplied by Debian, Oracle, Siemens, or other vendors.
- Avoid extracting untrusted tar archives with vulnerable node-tar versions.
Validation and detection
- Inventory direct and transitive npm dependencies for the tar package version.
- Check package-lock, yarn.lock, pnpm-lock, and SBOM records for vulnerable ranges.
- Identify services, scripts, or build jobs that extract user-supplied tar archives.
- Confirm deployed artifacts use fixed node-tar versions, not only source manifests.
- Review vendor advisories for packaged products that embed node-tar.
Public sources used
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
CWE-22: File access and web shell behavior lookup
File traversal and upload weaknesses can lead teams to review file, web shell, execution, and collection telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
Open ATT&CK lookupCWE-59: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
Open ATT&CK lookupExecution behavior lookup
The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.
Open ATT&CK lookupFile access behavior lookup
The CVE wording references file access or upload behavior, so file telemetry and web shell review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.
Open ATT&CK lookupCVE-2021-37701 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
Open ATT&CK lookup- Severity
- High
- CVSS
- 8.2 (3.1)
- Known Exploited
- No
- Published
Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
CNA and ADP enrichment extracted from CVE v5
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
CVSS vector scores
1 official scoreWe collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N1.85.8Primary CVE scoreVulnerability scoring details
Base CVSS 3.1 score
8.2HighVector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
Source materials
- CVE List V5 sourceCVE List V5
- https://www.npmjs.com/package/tarCVE reference
- https://github.com/npm/node-tar/security/advisories/GHSA-9r2w-394v-53qcCVE reference
- https://www.oracle.com/security-alerts/cpuoct2021.htmlCVE reference
- DSA-5008CVE reference · vendor-advisory
- https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdfCVE reference
- [debian-lts-announce] 20221212 [SECURITY] [DLA 3237-1] node-tar security updateCVE reference · mailing-list
Products and packages named in the record
CWE details
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.
Improper Link Resolution Before File Access ('Link Following')
Improper Link Resolution Before File Access ('Link Following') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.
