Path traversal in tar - CVE-2021-37701

 

Path traversal in tar - CVE-2021-37701

Published: November 17, 2021


Vulnerability identifier: #VU58202
CSH Severity: Medium
CVSS v4: 5.9 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2021-37701
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

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

The vulnerability exists due to input validation error 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. A remote attacker can create a specially crafted archive and overwrite arbitrary files on the system.


Affected software

tar
Gentoo Linux
Red Hat Enterprise Linux for x86_64
Anolis OS
Red Hat Enterprise Linux for ARM 64
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux Server - TUS
Red Hat Enterprise Linux for Power, little endian - Extended Update Support
Red Hat Enterprise Linux for IBM z Systems - Extended Update Support
Red Hat Enterprise Linux Server - AUS
Red Hat Enterprise Linux for x86_64 - Extended Update Support
Red Hat Enterprise Linux for ARM 64 - Extended Update Support
SUSE Linux Enterprise Module for Web Scripting
QRadar Pulse App
Red Hat Software Collections
QRadar Suite
IBM Watson Machine Learning Accelerator
QRadar Deployment Intelligence App
IBM Edge Application Manager
node-tar (Debian package)
Red Hat Enterprise Linux Server for Power LE - Update Services for SAP Solutions
rh-nodejs12-nodejs (Red Hat package)
rh-nodejs14-nodejs-nodemon (Red Hat package)
nodejs-nodemon
npm
nodejs12
nodejs12-docs
nodejs12-devel
nodejs12-debugsource
nodejs12-debuginfo
npm12
nodejs14-docs
nodejs14-devel
npm14
nodejs14-debugsource
nodejs14-debuginfo
nodejs14
rh-nodejs14-nodejs (Red Hat package)
nodejs
nodejs-devel
nodejs-full-i18n
nodejs-docs
nodejs-packaging
IBM Security Verify Governance
QRadar User Behavior Analytics
SINEC INS
IBM Cloud Pak System
IBM QRadar Data Synchronization App
OpenShift Data Foundation (formerly OpenShift Container Storage)

How to mitigate CVE-2021-37701

Install update from vendor's website.

tar - addressed in versions 4.4.16, 5.0.8, 6.1.7
QRadar Pulse App - update to 2.2.9
QRadar Suite - update to 1.10.17.0
node-tar (Debian package) - update to 6.0.5+ds1+~cs11.3.9-1+deb11u2
rh-nodejs12-nodejs (Red Hat package) - update to 12.22.12-2.el7
SINEC INS - update to 1.0.1.1
rh-nodejs14-nodejs-nodemon (Red Hat package) - update to 2.0.3-6.el7
nodejs-nodemon - update to 2.0.15-1
IBM Cloud Pak System - update to 2.3.3.5
IBM QRadar Data Synchronization App - update to 3.0.1
QRadar Deployment Intelligence App - update to 3.0.5
QRadar User Behavior Analytics - update to 4.1.11
OpenShift Data Foundation (formerly OpenShift Container Storage) - update to 4.9.0
npm - update to 6.14.15-1.14.18.2.2
nodejs12 - addressed in versions 12.22.7-4.22.1, 12.22.9-1.38.1
nodejs12-docs - addressed in versions 12.22.7-4.22.1, 12.22.9-1.38.1
nodejs12-devel - addressed in versions 12.22.7-4.22.1, 12.22.9-1.38.1
nodejs12-debugsource - addressed in versions 12.22.7-4.22.1, 12.22.9-1.38.1
nodejs12-debuginfo - addressed in versions 12.22.7-4.22.1, 12.22.9-1.38.1
npm12 - addressed in versions 12.22.7-4.22.1, 12.22.9-1.38.1
nodejs14-docs - addressed in versions 14.18.1-6.18.2, 14.18.1-15.21.2
nodejs14-devel - addressed in versions 14.18.1-6.18.2, 14.18.1-15.21.2
npm14 - addressed in versions 14.18.1-6.18.2, 14.18.1-15.21.2
nodejs14-debugsource - addressed in versions 14.18.1-6.18.2, 14.18.1-15.21.2
nodejs14-debuginfo - addressed in versions 14.18.1-6.18.2, 14.18.1-15.21.2
nodejs14 - addressed in versions 14.18.1-6.18.2, 14.18.1-15.21.2
rh-nodejs14-nodejs (Red Hat package) - update to 14.18.2-1.el7
nodejs - update to 14.18.2-2
nodejs-devel - update to 14.18.2-2
nodejs-full-i18n - update to 14.18.2-2
nodejs-docs - update to 14.18.2-2
nodejs-packaging - update to 23-3

External References

Related Security Bulletins