PT-2021-7042

CVE-2021-37713

·

Published

2021-08-31

·

Updated

2026-10-31

Description by

CVSS 3.1
8.6
High
MetricsAV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions node-tar versions prior to 4.4.18 node-tar versions prior to 5.0.10 node-tar versions prior to 6.1.9
Description The issue is related to insufficient path sanitization in the node-tar module, which can lead to arbitrary file creation, overwrite, and arbitrary code execution. This occurs when extracting tar files that contain a path with a drive letter different from the extraction target on Windows systems. The path.resolve(extractionDirectory, entryPath) function resolves against the current working directory on the specified drive, rather than the extraction target directory. Additionally, paths starting with a drive letter and then two dots, such as C:../foo, can bypass the check for .. path portions. This issue only affects users of node-tar on Windows systems.
Recommendations For node-tar versions prior to 4.4.18, update to version 4.4.18 or later. For node-tar versions prior to 5.0.10, update to version 5.0.10 or later. For node-tar versions prior to 6.1.9, update to version 6.1.9 or later. If you are still using a v3 release, update to a more recent version of node-tar, as the v3 branch has been deprecated and did not receive patches for these issues.
Exploitability
Exploit
Fix
Impacts
Vendors
Affected products
Related identifiers
GHSA-5955-9WPR-37JH
ALT-PU-2021-2920
ALT-PU-2021-2921
ALT-PU-2021-3615
ALT-PU-2022-1798
ALT-PU-2022-3069
ALT-PU-2022-3073
CLEANSTART-2025-UT76860
CLEANSTART-2026-BE95243
CLEANSTART-2026-BX59752
MGASA-2021-0463
OPENSUSE-SU-2021:1552-1
OPENSUSE-SU-2021_1552-1
OPENSUSE-SU-2021:1574-1
OPENSUSE-SU-2021_1574-1
OPENSUSE-SU-2021:3940-1
OPENSUSE-SU-2021_3940-1
OPENSUSE-SU-2021:3964-1
OPENSUSE-SU-2021_3964-1
OPENSUSE-SU-2024:11616-1
SUSE-SU-2021:3886-1
SUSE-SU-2021:3940-1
SUSE-SU-2021:3964-1
SUSE-SU-2022:0101-1
Found an issue in the description? Have something to add? Feel free to write us 👾