CVE-2021-37701
8.2 · HIGHOverview
CVE-2021-37701 is a high-severity vulnerability affecting npmjs tar. It was published on August 31, 2021 and has a CVSS 3.1 base score of 8.2 (HIGH).
This vulnerability has a CVSS 3.1 base score of 8.2, rated HIGH. It requires local or adjacent network access to exploit. No authentication or special privileges are required for exploitation.
Technical 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 possib
Remediation
Check the references section for vendor advisories and patches from npmjs. Update tar to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.
Affected Products
| Vendor | Product | Versions | Status |
|---|---|---|---|
| npmjs | tar | >= 0, < 4.4.16 | Affected |
| siemens | sinec_infrastructure_network_services | >= 0, < 1.0.1.1 | Affected |
References
Frequently Asked Questions
What is CVE-2021-37701?
CVE-2021-37701 is a high-severity vulnerability affecting npmjs tar. It was published on August 31, 2021 and has a CVSS 3.1 base score of 8.2 (HIGH).
How severe is CVE-2021-37701?
This vulnerability has a CVSS 3.1 base score of 8.2, rated HIGH. It requires local or adjacent network access to exploit. No authentication or special privileges are required for exploitation.
How do I fix or remediate CVE-2021-37701?
Check the references section for vendor advisories and patches from npmjs. Update tar to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.
How can CyberStrike help with CVE-2021-37701?
CyberStrike's AI-powered security agents can automatically detect CVE-2021-37701 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.
How CyberStrike Helps
AI agents map your attack surface to find vulnerabilities like this one.
Automated penetration testing that runs continuously, not just quarterly.
AI-driven PR review catches vulnerable dependencies before they ship.
Browser-based exploitation validates findings with real proof-of-concept.
Related HIGH CVEs from 2021
View all →systeminformation is an open source system and OS information library for node.js. A command injecti
An Improper Access Control Privilege Escalation Vulnerability was discovered in the User Setting of
An SQL injection Privilege Escalation Vulnerability was discovered in the Orion Platform reported by
Insecure deserialization leading to Remote Code Execution was detected in the Orion Platform version
Insecure Deserialization of untrusted data remote code execution vulnerability was discovered in Pat
Deserialization of Untrusted Data in the Web Console Chart Endpoint can lead to remote code executio
Insecure Deseralization of untrusted data remote code execution vulnerability was discovered in Patc
SAP Web Dispatcher versions - 7.49, 7.53, 7.77, 7.81, KRNL64NUC - 7.22, 7.22EXT, 7.49, KRNL64UC -7.2
uploader.php in the KCFinder integration project through 2018-06-01 for Drupal mishandles validation
An issue was discovered in the PageLayer plugin before 1.1.2 for WordPress. The pagelayer_settings_p
MK-AUTH through 19.01 K4.9 allows CSRF for password changes via the central/executar_central.php?aca
IBM Cloud Pak System 2.3 is vulnerable to cross-site request forgery which could allow an attacker t