Upstream information

CVE-2021-32804 at MITRE

Description

The npm package "tar" (aka node-tar) before versions 6.1.1, 5.0.6, 4.4.14, and 3.3.2 has a arbitrary File Creation/Overwrite vulnerability due to insufficient absolute path sanitization. node-tar aims to prevent extraction of absolute file paths by turning absolute paths into relative paths when the `preservePaths` flag is not set to `true`. This is achieved by stripping the absolute path root from any absolute file paths contained in a tar file. For example `/home/user/.bashrc` would turn into `home/user/.bashrc`. This logic was insufficient 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. This issue was addressed in releases 3.2.2, 4.4.14, 5.0.6 and 6.1.1. Users may work around this vulnerability without upgrading by creating a custom `onentry` method which sanitizes the `entry.path` or a `filter` method which removes entries with absolute paths. See referenced GitHub Advisory for details. Be aware of CVE-2021-32803 which fixes a similar bug in later versions of tar.

SUSE information

Overall state of this security issue: Pending

This issue is currently rated as having important severity.

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

No SUSE Security Announcements cross referenced.


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 Affected
SUSE CaaS Platform 4.0 nodejs8 Affected
SUSE Enterprise Storage 6 nodejs10 Affected
SUSE Enterprise Storage 6 nodejs8 Affected
SUSE Linux Enterprise High Performance Computing 15 LTSS nodejs10 Affected
SUSE Linux Enterprise High Performance Computing 15 LTSS nodejs8 Affected
SUSE Linux Enterprise High Performance Computing 15 SP1 ESPOS nodejs10 Affected
SUSE Linux Enterprise High Performance Computing 15 SP1 ESPOS nodejs8 Affected
SUSE Linux Enterprise High Performance Computing 15 SP1 LTSS nodejs10 Affected
SUSE Linux Enterprise High Performance Computing 15 SP1 LTSS nodejs8 Affected
SUSE Linux Enterprise Module for Web and Scripting 12 nodejs10 Affected
SUSE Linux Enterprise Module for Web and Scripting 12 nodejs12 Not affected
SUSE Linux Enterprise Module for Web and Scripting 12 nodejs14 Not affected
SUSE Linux Enterprise Module for Web and Scripting 12 nodejs4 Not affected
SUSE Linux Enterprise Module for Web and Scripting 12 nodejs6 Not affected
SUSE Linux Enterprise Module for Web and Scripting 15 SP2 nodejs10 Affected
SUSE Linux Enterprise Module for Web and Scripting 15 SP2 nodejs12 Not affected
SUSE Linux Enterprise Module for Web and Scripting 15 SP2 nodejs14 Not affected
SUSE Linux Enterprise Module for Web and Scripting 15 SP2 nodejs8 Affected
SUSE Linux Enterprise Module for Web and Scripting 15 SP3 nodejs12 Not affected
SUSE Linux Enterprise Module for Web and Scripting 15 SP3 nodejs14 Not affected
SUSE Linux Enterprise Server 15 ESPOS nodejs10 Affected
SUSE Linux Enterprise Server 15 ESPOS nodejs8 Affected
SUSE Linux Enterprise Server 15 LTSS nodejs10 Affected
SUSE Linux Enterprise Server 15 LTSS nodejs8 Affected
SUSE Linux Enterprise Server 15 SP1 LTSS nodejs10 Affected
SUSE Linux Enterprise Server 15 SP1 LTSS nodejs8 Affected
SUSE Linux Enterprise Server Business Critical Linux 15 SP1 nodejs10 Affected
SUSE Linux Enterprise Server Business Critical Linux 15 SP1 nodejs8 Affected
SUSE Linux Enterprise Server for SAP Applications 15 nodejs10 Affected
SUSE Linux Enterprise Server for SAP Applications 15 nodejs8 Affected
SUSE Linux Enterprise Server for SAP Applications 15 SP1 nodejs10 Affected
SUSE Linux Enterprise Server for SAP Applications 15 SP1 nodejs8 Affected
SUSE OpenStack Cloud Crowbar 8 nodejs6 Not affected
SUSE OpenStack Cloud Crowbar 9 nodejs6 Not affected