#VU58205 Absolute Path Traversal in tar - CVE-2021-32804

 

#VU58205 Absolute Path Traversal in tar - CVE-2021-32804

Published: November 17, 2021


Vulnerability identifier: #VU58205
Vulnerability risk: Medium
CVSSv4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2021-32804
CWE-ID: CWE-36
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vulnerable software:
tar
Software vendor:
npm Inc.

Description

The vulnerability allows a remote attacker to overwrite arbitrary files on the system.

The vulnerability exists due to a logic issue 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.


Remediation

Install update from vendor's website.

External links