Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2021-32804

8.2 · HIGH
Published Aug 3, 2021 tar_project CWE-22 EPSS 15.01% (96th pctl)

Overview

CVE-2021-32804 is a high-severity vulnerability affecting tar_project tar. It was published on August 3, 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 6.1.1, 5.0.6, 4.4.14, and 3.3.2 has a arbitrary File Creation/Overwrite vulnerability due to insufficient absolute path sanitization. node-tar aims to prevent extraction of absolute file paths by turning absolute paths into relative paths when the `preservePaths` flag is not set to `true`. This is achieved by stripping the absolute path root from any absolute file paths contained in a tar file. For example `/home/user/.bashrc` would turn into `home/user/.bashrc`. This logic was insufficient when file paths contained repeated path roots such as `////home/user/.bashrc`. `node-tar` would only strip a single path root from such paths. When given an absolute file path with repeating path roots, the resulting path (e.g. `///home/user/.bashrc`) would still resolve to an absolute path, thus allowing arbitrary file creation and overwrite. This issue was addressed in releases 3.2.2, 4.4.14, 5.0.6 and 6.1.1. Users may work around this vulnerabi

Remediation

Check the references section for vendor advisories and patches from tar_project. 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
tar_project tar >= 0, < 3.2.2 Affected
siemens sinec_infrastructure_network_services >= 0, < 1.0.1.1 Affected

Frequently Asked Questions

What is CVE-2021-32804?

CVE-2021-32804 is a high-severity vulnerability affecting tar_project tar. It was published on August 3, 2021 and has a CVSS 3.1 base score of 8.2 (HIGH).

How severe is CVE-2021-32804?

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-32804?

Check the references section for vendor advisories and patches from tar_project. 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-32804?

CyberStrike's AI-powered security agents can automatically detect CVE-2021-32804 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.