Search covers the description text, product and vendor names and weakness types (also partial words).

CVE-2021-32803
tar project tar

Score8.1 High
CVSS 3.1
Exploit probability (EPSS)7.1%
within the next 30 days
CategoryAccess control & privilege
Published3 August 2021
Last modified: 17 June 2026

In short

This vulnerability can be exploited remotely over the network, without logging in, if a user clicks a link, opens a file or similar.

A successful attack has high impact: modifying data, crashing the system or making it unavailable.

Weakness type: Path traversal.

✨ AI commentary

After a short ad, a plain-language commentary on this vulnerability is shown. AI can make mistakes; base decisions on the official sources.

Official 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.

CVSS: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H

Weakness: CWE-22 – Path traversal, CWE-59

Affected products

VendorProductVersions
tar projecttar<3.2.3
tar projecttar>=4.0.0 <4.4.15
tar projecttar>=5.0.0 <5.0.7
tar projecttar>=6.0.0 <6.1.2
oraclegraalvm20.3.3
oraclegraalvm21.2.0
siemenssinec infrastructure network services<1.0.1.1

Sources

Latest in the same category

  • CVE-2026-139981 Low 2.1
    A flaw has been found in PerfreeBlog up to 4.0.11. This affects an unknown part of the file CodegenController.java of the component Codegen Module. This manipulation causes missing authorization. The attack may be…
    Access control & privilege · 1 December 2026
  • CVE-2026-139979 Medium 5.5
    A security vulnerability has been detected in Frangoteam FUXA up to 1.3.5. This affects an unknown part of the file server/api/recipes/index.js of the component Recipes API. Such manipulation leads to missing…
    Access control & privilege · 1 December 2026
  • CVE-2026-115423 Medium 6.5
    A flaw was found in FreeIPA. An access control instruction (ACI) intended to allow presence-checking on password and Kerberos principal-key attributes grants unrestricted SEARCH rights on userPassword and…
    Access control & privilege · 1 December 2026
  • CVE-2026-139978 Low 2.1
    A vulnerability was determined in Statamic CMS up to 6.43.1. This issue affects the function Upload of the file src/Http/Controllers/CP/Fieldtypes/FilesFieldtypeController.php of the component Control Panel Files…
    Access control & privilege · 1 December 2026
  • CVE-2026-139893 Medium 5.5
    A vulnerability has been found in 0xERR0R blocky up to 0.35.0. Impacted is the function configureDebugHandler of the file server/server_endpoints.go. Such manipulation leads to information disclosure. The attack may be…
    Access control & privilege · 1 December 2026
  • CVE-2026-139892 Medium 4.8
    A flaw has been found in MervinPraison PraisonAI up to 4.7.24. This issue affects the function _load_rules of the file praisonaiagents/permissions/manager.py of the component Permission Manager. This manipulation…
    Access control & privilege · 1 December 2026