Upstream information

CVE-2021-37701 at MITRE

Description

The npm package "tar" (aka node-tar) before versions 4.4.16, 5.0.8, and 6.1.7 has an arbitrary file creation/overwrite and arbitrary code execution vulnerability. 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, where the symlink and directory names in the archive entry used backslashes as a path separator on posix systems. The cache checking logic used both `\` and `/` characters as path separators, however `\` is a valid filename character on posix systems. 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. Additionally, a similar confusion could arise on case-insensitive filesystems. If a tar archive contained a directory at `FOO`, followed by a symbolic link named `foo`, then on case-insensitive file systems, the creation of the symbolic link would remove the directory from the filesystem, but _not_ from the internal directory cache, as it would not be treated as a cache hit. A subsequent file entry within the `FOO` directory would then be placed in the target of the symbolic link, thinking that the directory had already been created. These issues were addressed in releases 4.4.16, 5.0.8 and 6.1.7. The v3 branch of node-tar has been deprecated and did not receive patches for these issues. If you are still using a v3 release we recommend you update to a more recent version of node-tar. If this is not possible, a workaround is available in the referenced GHSA-9r2w-394v-53qc.

SUSE information

Overall state of this security issue: Resolved

This issue is currently rated as having important severity.

CVSS v2 Scores
  National Vulnerability Database
Base Score 4.4
Vector AV:L/AC:M/Au:N/C:P/I:P/A:P
Access Vector Local
Access Complexity Medium
Authentication None
Confidentiality Impact Partial
Integrity Impact Partial
Availability Impact Partial
CVSS v3 Scores
  National Vulnerability Database SUSE
Base Score 8.6 8.1
Vector CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
Attack Vector Local Network
Attack Complexity Low Low
Privileges Required None None
User Interaction Required Required
Scope Changed Unchanged
Confidentiality Impact High None
Integrity Impact High High
Availability Impact High High
CVSSv3 Version 3.1 3.1
SUSE Bugzilla entry: 1190057 [RESOLVED / FIXED]

SUSE Security Advisories:

List of released packages

Product(s) Fixed package version(s) References
Container bci/nodejs:12-10.1
  • nodejs12 >= 12.22.7-4.22.1
  • npm12 >= 12.22.7-4.22.1
Container bci/nodejs:14-13.3
  • nodejs14 >= 14.18.1-15.21.2
  • npm14 >= 14.18.1-15.21.2
SUSE Enterprise Storage 7.1
SUSE Linux Enterprise High Performance Computing 15 SP3
SUSE Linux Enterprise Module for Web Scripting 15 SP3
SUSE Linux Enterprise Server 15 SP3
SUSE Linux Enterprise Server for SAP Applications 15 SP3
SUSE Manager Proxy 4.2
SUSE Manager Retail Branch Server 4.2
SUSE Manager Server 4.2
  • nodejs12 >= 12.22.7-4.22.1
  • nodejs12-devel >= 12.22.7-4.22.1
  • nodejs12-docs >= 12.22.7-4.22.1
  • nodejs14 >= 14.18.1-15.21.2
  • nodejs14-devel >= 14.18.1-15.21.2
  • nodejs14-docs >= 14.18.1-15.21.2
  • npm12 >= 12.22.7-4.22.1
  • npm14 >= 14.18.1-15.21.2
Patchnames:
SUSE-SLE-Module-Web-Scripting-15-SP3-2021-3940
SUSE-SLE-Module-Web-Scripting-15-SP3-2021-3964
SUSE Enterprise Storage 7
SUSE Linux Enterprise High Performance Computing 15 SP2
SUSE Linux Enterprise Module for Web Scripting 15 SP2
SUSE Linux Enterprise Server 15 SP2
SUSE Linux Enterprise Server for SAP Applications 15 SP2
SUSE Manager Proxy 4.1
SUSE Manager Retail Branch Server 4.1
SUSE Manager Server 4.1
  • nodejs12 >= 12.22.7-4.22.1
  • nodejs12-devel >= 12.22.7-4.22.1
  • nodejs12-docs >= 12.22.7-4.22.1
  • nodejs14 >= 14.18.1-15.21.2
  • nodejs14-devel >= 14.18.1-15.21.2
  • nodejs14-docs >= 14.18.1-15.21.2
  • npm12 >= 12.22.7-4.22.1
  • npm14 >= 14.18.1-15.21.2
Patchnames:
SUSE-SLE-Module-Web-Scripting-15-SP2-2021-3940
SUSE-SLE-Module-Web-Scripting-15-SP2-2021-3964
SUSE Linux Enterprise High Performance Computing 12
SUSE Linux Enterprise Module for Web Scripting 12
SUSE Linux Enterprise Server 12
SUSE Linux Enterprise Server 12 SP3
SUSE Linux Enterprise Server 12 SP4
SUSE Linux Enterprise Server 12 SP5
SUSE Linux Enterprise Server for SAP Applications 12
SUSE Linux Enterprise Server for SAP Applications 12 SP3
SUSE Linux Enterprise Server for SAP Applications 12 SP4
SUSE Linux Enterprise Server for SAP Applications 12 SP5
  • nodejs12 >= 12.22.9-1.38.1
  • nodejs12-devel >= 12.22.9-1.38.1
  • nodejs12-docs >= 12.22.9-1.38.1
  • nodejs14 >= 14.18.1-6.18.2
  • nodejs14-devel >= 14.18.1-6.18.2
  • nodejs14-docs >= 14.18.1-6.18.2
  • npm12 >= 12.22.9-1.38.1
  • npm14 >= 14.18.1-6.18.2
Patchnames:
SUSE-SLE-Module-Web-Scripting-12-2021-3886
SUSE-SLE-Module-Web-Scripting-12-2022-101
openSUSE Leap 15.2
  • nodejs12 >= 12.22.7-lp152.3.21.1
  • nodejs12-devel >= 12.22.7-lp152.3.21.1
  • nodejs12-docs >= 12.22.7-lp152.3.21.1
  • nodejs14 >= 14.18.1-lp152.17.1
  • nodejs14-devel >= 14.18.1-lp152.17.1
  • nodejs14-docs >= 14.18.1-lp152.17.1
  • npm12 >= 12.22.7-lp152.3.21.1
  • npm14 >= 14.18.1-lp152.17.1
Patchnames:
openSUSE-2021-1552
openSUSE-2021-1574
openSUSE Leap 15.3
  • nodejs12 >= 12.22.7-4.22.1
  • nodejs12-devel >= 12.22.7-4.22.1
  • nodejs12-docs >= 12.22.7-4.22.1
  • nodejs14 >= 14.18.1-15.21.2
  • nodejs14-devel >= 14.18.1-15.21.2
  • nodejs14-docs >= 14.18.1-15.21.2
  • npm12 >= 12.22.7-4.22.1
  • npm14 >= 14.18.1-15.21.2
Patchnames:
openSUSE-SLE-15.3-2021-3940
openSUSE-SLE-15.3-2021-3964
openSUSE Tumbleweed
  • nodejs14 >= 14.18.1-1.1
  • nodejs14-devel >= 14.18.1-1.1
  • nodejs14-docs >= 14.18.1-1.1
  • npm14 >= 14.18.1-1.1
Patchnames:
openSUSE Tumbleweed GA nodejs14-14.18.1-1.1


Status of this issue by product and package

Please note that this evaluation state might be work in progress, incomplete or outdated. Also information for service packs in the LTSS phase is only included for issues meeting the LTSS criteria. If in doubt, feel free to contact us for clarification.

Product(s) Source package State
SUSE CaaS Platform 4.0 nodejs10 Unsupported
SUSE CaaS Platform 4.0 nodejs8 Unsupported
SUSE Enterprise Storage 6 nodejs10 Unsupported
SUSE Enterprise Storage 6 nodejs8 Unsupported
SUSE Enterprise Storage 7 nodejs10 Unsupported
SUSE Enterprise Storage 7 nodejs12 Released
SUSE Enterprise Storage 7 nodejs14 Released
SUSE Enterprise Storage 7 nodejs8 Unsupported
SUSE Enterprise Storage 7.1 nodejs12 Released
SUSE Enterprise Storage 7.1 nodejs14 Released
SUSE Enterprise Storage 7.1 nodejs16 Not affected
SUSE Linux Enterprise High Performance Computing 12 nodejs10 Unsupported
SUSE Linux Enterprise High Performance Computing 12 nodejs12 Released
SUSE Linux Enterprise High Performance Computing 12 nodejs14 Released
SUSE Linux Enterprise High Performance Computing 12 nodejs16 Not affected
SUSE Linux Enterprise High Performance Computing 12 nodejs4 Unsupported
SUSE Linux Enterprise High Performance Computing 12 nodejs6 Unsupported
SUSE Linux Enterprise High Performance Computing 15 SP1-ESPOS nodejs10 Unsupported
SUSE Linux Enterprise High Performance Computing 15 SP1-ESPOS nodejs8 Unsupported
SUSE Linux Enterprise High Performance Computing 15 SP1-LTSS nodejs10 Unsupported
SUSE Linux Enterprise High Performance Computing 15 SP1-LTSS nodejs8 Unsupported
SUSE Linux Enterprise High Performance Computing 15 SP2-ESPOS nodejs10 Unsupported
SUSE Linux Enterprise High Performance Computing 15 SP2-ESPOS nodejs12 Released
SUSE Linux Enterprise High Performance Computing 15 SP2-ESPOS nodejs14 Released
SUSE Linux Enterprise High Performance Computing 15 SP2-ESPOS nodejs8 Unsupported
SUSE Linux Enterprise High Performance Computing 15 SP2-LTSS nodejs10 Unsupported
SUSE Linux Enterprise High Performance Computing 15 SP2-LTSS nodejs12 Released
SUSE Linux Enterprise High Performance Computing 15 SP2-LTSS nodejs14 Released
SUSE Linux Enterprise High Performance Computing 15 SP2-LTSS nodejs8 Unsupported
SUSE Linux Enterprise High Performance Computing 15 SP3 nodejs12 Released
SUSE Linux Enterprise High Performance Computing 15 SP3 nodejs14 Released
SUSE Linux Enterprise High Performance Computing 15 SP3 nodejs16 Not affected
SUSE Linux Enterprise High Performance Computing 15 SP4 nodejs14 Released
SUSE Linux Enterprise High Performance Computing 15-LTSS nodejs10 Unsupported
SUSE Linux Enterprise High Performance Computing 15-LTSS nodejs8 Unsupported
SUSE Linux Enterprise Module for Web and Scripting 12 nodejs10 Unsupported
SUSE Linux Enterprise Module for Web and Scripting 12 nodejs12 Released
SUSE Linux Enterprise Module for Web and Scripting 12 nodejs14 Released
SUSE Linux Enterprise Module for Web and Scripting 12 nodejs16 Not affected
SUSE Linux Enterprise Module for Web and Scripting 12 nodejs4 Unsupported
SUSE Linux Enterprise Module for Web and Scripting 12 nodejs6 Unsupported
SUSE Linux Enterprise Module for Web and Scripting 15 SP3 nodejs12 Released
SUSE Linux Enterprise Module for Web and Scripting 15 SP3 nodejs14 Released
SUSE Linux Enterprise Module for Web and Scripting 15 SP3 nodejs16 Not affected
SUSE Linux Enterprise Module for Web and Scripting 15 SP4 nodejs14 Released
SUSE Linux Enterprise Server 12 nodejs10 Unsupported
SUSE Linux Enterprise Server 12 nodejs12 Released
SUSE Linux Enterprise Server 12 nodejs14 Released
SUSE Linux Enterprise Server 12 nodejs16 Not affected
SUSE Linux Enterprise Server 12 nodejs4 Unsupported
SUSE Linux Enterprise Server 12 nodejs6 Unsupported
SUSE Linux Enterprise Server 12 SP3 nodejs10 Unsupported
SUSE Linux Enterprise Server 12 SP3 nodejs12 Released
SUSE Linux Enterprise Server 12 SP3 nodejs14 Released
SUSE Linux Enterprise Server 12 SP3 nodejs16 Not affected
SUSE Linux Enterprise Server 12 SP3 nodejs4 Unsupported
SUSE Linux Enterprise Server 12 SP3 nodejs6 Unsupported
SUSE Linux Enterprise Server 12 SP4 nodejs10 Unsupported
SUSE Linux Enterprise Server 12 SP4 nodejs12 Released
SUSE Linux Enterprise Server 12 SP4 nodejs14 Released
SUSE Linux Enterprise Server 12 SP4 nodejs16 Not affected
SUSE Linux Enterprise Server 12 SP4 nodejs4 Unsupported
SUSE Linux Enterprise Server 12 SP4 nodejs6 Unsupported
SUSE Linux Enterprise Server 12 SP5 nodejs10 Unsupported
SUSE Linux Enterprise Server 12 SP5 nodejs12 Released
SUSE Linux Enterprise Server 12 SP5 nodejs14 Released
SUSE Linux Enterprise Server 12 SP5 nodejs16 Not affected
SUSE Linux Enterprise Server 12 SP5 nodejs4 Unsupported
SUSE Linux Enterprise Server 12 SP5 nodejs6 Unsupported
SUSE Linux Enterprise Server 15 SP1-LTSS nodejs10 Unsupported
SUSE Linux Enterprise Server 15 SP1-LTSS nodejs8 Unsupported
SUSE Linux Enterprise Server 15 SP2-LTSS nodejs10 Unsupported
SUSE Linux Enterprise Server 15 SP2-LTSS nodejs12 Released
SUSE Linux Enterprise Server 15 SP2-LTSS nodejs14 Released
SUSE Linux Enterprise Server 15 SP2-LTSS nodejs8 Unsupported
SUSE Linux Enterprise Server 15 SP3 nodejs12 Released
SUSE Linux Enterprise Server 15 SP3 nodejs14 Released
SUSE Linux Enterprise Server 15 SP3 nodejs16 Not affected
SUSE Linux Enterprise Server 15 SP4 nodejs14 Released
SUSE Linux Enterprise Server 15-ESPOS nodejs10 Unsupported
SUSE Linux Enterprise Server 15-ESPOS nodejs8 Unsupported
SUSE Linux Enterprise Server 15-LTSS nodejs10 Unsupported
SUSE Linux Enterprise Server 15-LTSS nodejs8 Unsupported
SUSE Linux Enterprise Server Business Critical Linux 15 SP1 nodejs10 Unsupported
SUSE Linux Enterprise Server Business Critical Linux 15 SP1 nodejs8 Unsupported
SUSE Linux Enterprise Server Business Critical Linux 15 SP2 nodejs10 Unsupported
SUSE Linux Enterprise Server Business Critical Linux 15 SP2 nodejs12 Released
SUSE Linux Enterprise Server Business Critical Linux 15 SP2 nodejs14 Released
SUSE Linux Enterprise Server Business Critical Linux 15 SP2 nodejs8 Unsupported
SUSE Linux Enterprise Server for SAP Applications 12 nodejs10 Unsupported
SUSE Linux Enterprise Server for SAP Applications 12 nodejs12 Released
SUSE Linux Enterprise Server for SAP Applications 12 nodejs14 Released
SUSE Linux Enterprise Server for SAP Applications 12 nodejs16 Not affected
SUSE Linux Enterprise Server for SAP Applications 12 nodejs4 Unsupported
SUSE Linux Enterprise Server for SAP Applications 12 nodejs6 Unsupported
SUSE Linux Enterprise Server for SAP Applications 12 SP3 nodejs10 Unsupported
SUSE Linux Enterprise Server for SAP Applications 12 SP3 nodejs12 Released
SUSE Linux Enterprise Server for SAP Applications 12 SP3 nodejs14 Released
SUSE Linux Enterprise Server for SAP Applications 12 SP3 nodejs16 Not affected
SUSE Linux Enterprise Server for SAP Applications 12 SP3 nodejs4 Unsupported
SUSE Linux Enterprise Server for SAP Applications 12 SP3 nodejs6 Unsupported
SUSE Linux Enterprise Server for SAP Applications 12 SP4 nodejs10 Unsupported
SUSE Linux Enterprise Server for SAP Applications 12 SP4 nodejs12 Released
SUSE Linux Enterprise Server for SAP Applications 12 SP4 nodejs14 Released
SUSE Linux Enterprise Server for SAP Applications 12 SP4 nodejs16 Not affected
SUSE Linux Enterprise Server for SAP Applications 12 SP4 nodejs4 Unsupported
SUSE Linux Enterprise Server for SAP Applications 12 SP4 nodejs6 Unsupported
SUSE Linux Enterprise Server for SAP Applications 12 SP5 nodejs10 Unsupported
SUSE Linux Enterprise Server for SAP Applications 12 SP5 nodejs12 Released
SUSE Linux Enterprise Server for SAP Applications 12 SP5 nodejs14 Released
SUSE Linux Enterprise Server for SAP Applications 12 SP5 nodejs16 Not affected
SUSE Linux Enterprise Server for SAP Applications 12 SP5 nodejs4 Unsupported
SUSE Linux Enterprise Server for SAP Applications 12 SP5 nodejs6 Unsupported
SUSE Linux Enterprise Server for SAP Applications 15 nodejs10 Unsupported
SUSE Linux Enterprise Server for SAP Applications 15 nodejs8 Unsupported
SUSE Linux Enterprise Server for SAP Applications 15 SP1 nodejs10 Unsupported
SUSE Linux Enterprise Server for SAP Applications 15 SP1 nodejs8 Unsupported
SUSE Linux Enterprise Server for SAP Applications 15 SP2 nodejs10 Unsupported
SUSE Linux Enterprise Server for SAP Applications 15 SP2 nodejs12 Released
SUSE Linux Enterprise Server for SAP Applications 15 SP2 nodejs14 Released
SUSE Linux Enterprise Server for SAP Applications 15 SP2 nodejs8 Unsupported
SUSE Linux Enterprise Server for SAP Applications 15 SP3 nodejs12 Released
SUSE Linux Enterprise Server for SAP Applications 15 SP3 nodejs14 Released
SUSE Linux Enterprise Server for SAP Applications 15 SP3 nodejs16 Not affected
SUSE Linux Enterprise Server for SAP Applications 15 SP4 nodejs14 Released
SUSE Manager Proxy 4.1 nodejs10 Unsupported
SUSE Manager Proxy 4.1 nodejs12 Released
SUSE Manager Proxy 4.1 nodejs14 Released
SUSE Manager Proxy 4.1 nodejs8 Unsupported
SUSE Manager Proxy 4.2 nodejs12 Released
SUSE Manager Proxy 4.2 nodejs14 Released
SUSE Manager Proxy 4.2 nodejs16 Not affected
SUSE Manager Proxy 4.3 nodejs14 Released
SUSE Manager Retail Branch Server 4.1 nodejs10 Unsupported
SUSE Manager Retail Branch Server 4.1 nodejs12 Released
SUSE Manager Retail Branch Server 4.1 nodejs14 Released
SUSE Manager Retail Branch Server 4.1 nodejs8 Unsupported
SUSE Manager Retail Branch Server 4.2 nodejs12 Released
SUSE Manager Retail Branch Server 4.2 nodejs14 Released
SUSE Manager Retail Branch Server 4.2 nodejs16 Not affected
SUSE Manager Retail Branch Server 4.3 nodejs14 Released
SUSE Manager Server 4.1 nodejs10 Unsupported
SUSE Manager Server 4.1 nodejs12 Released
SUSE Manager Server 4.1 nodejs14 Released
SUSE Manager Server 4.1 nodejs8 Unsupported
SUSE Manager Server 4.2 nodejs12 Released
SUSE Manager Server 4.2 nodejs14 Released
SUSE Manager Server 4.2 nodejs16 Not affected
SUSE Manager Server 4.3 nodejs14 Released
SUSE OpenStack Cloud Crowbar 8 nodejs6 Unsupported
SUSE OpenStack Cloud Crowbar 9 nodejs6 Unsupported
bci/node:12 nodejs12Released
bci/node:14 nodejs14Released
bci/nodejs nodejs16Not affected


SUSE Timeline for this CVE

CVE page created: Tue Aug 31 20:00:54 2021
CVE page last modified: Fri Nov 25 17:51:16 2022