Vulnerability Name:

CVE-2021-32803 (CCN-206717)

Assigned:2021-08-03
Published:2021-08-03
Updated:2022-07-02
Summary:The npm package "tar" (aka node-tar) before versions 6.1.2, 5.0.7, 4.4.15, and 3.2.3 has an arbitrary File Creation/Overwrite vulnerability via insufficient symlink protection. `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. This order of operations resulted in the directory being created and added to the `node-tar` directory cache. When a directory is present in the directory cache, subsequent calls to mkdir for that directory are skipped. However, this is also where `node-tar` checks for symlinks occur. 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. This issue was addressed in releases 3.2.3, 4.4.15, 5.0.7 and 6.1.2.
CVSS v3 Severity:8.1 High (CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H)
7.1 High (Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): Required
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): None
Integrity (I): High
Availibility (A): High
8.2 High (CCN CVSS v3.1 Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N)
7.1 High (CCN Temporal CVSS v3.1 Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Local
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): Required
Scope:Scope (S): Changed
Impact Metrics:Confidentiality (C): High
Integrity (I): High
Availibility (A): None
8.1 High (REDHAT CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H)
7.1 High (REDHAT Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): Required
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): None
Integrity (I): High
Availibility (A): High
CVSS v2 Severity:5.8 Medium (CVSS v2 Vector: AV:N/AC:M/Au:N/C:N/I:P/A:P)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Medium
Authentication (Au): None
Impact Metrics:Confidentiality (C): None
Integrity (I): Partial
Availibility (A): Partial
6.2 Medium (CCN CVSS v2 Vector: AV:L/AC:L/Au:S/C:C/I:C/A:N)
Exploitability Metrics:Access Vector (AV): Local
Access Complexity (AC): Low
Athentication (Au): Single_Instance
Impact Metrics:Confidentiality (C): Complete
Integrity (I): Complete
Availibility (A): None
Vulnerability Type:CWE-59
CWE-22
Vulnerability Consequences:Gain Access
References:Source: MITRE
Type: CNA
CVE-2021-32803

Source: CONFIRM
Type: Patch, Third Party Advisory
https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf

Source: XF
Type: UNKNOWN
nodejs-cve202132803-dir-traversal(206717)

Source: MISC
Type: Patch, Third Party Advisory
https://github.com/npm/node-tar/commit/9dbdeb6df8e9dbd96fa9e84341b9d74734be6c20

Source: CONFIRM
Type: Mitigation, Third Party Advisory
https://github.com/npm/node-tar/security/advisories/GHSA-r628-mhmh-qjhw

Source: CCN
Type: IBM Security Bulletin 6492199 (Watson Discovery)
IBM Watson Discovery for IBM Cloud Pak for Data affected by vulnerability in Node.js

Source: CCN
Type: IBM Security Bulletin 6507033 (App Connect Enterprise Certified Container)
IBM App Connect Enterprise Certified Container may be vulnerable to directory traversal due to CVE-2021-32803

Source: CCN
Type: IBM Security Bulletin 6507095 (Planning Analytics)
IBM Planning Analytics Workspace is affected by security vulnerabilities

Source: CCN
Type: IBM Security Bulletin 6514831 (Cloud Pak for Multicloud Management)
A security vulnerability in Node.js tar module affects IBM Cloud Pak for Multicloud Management Managed Services

Source: CCN
Type: IBM Security Bulletin 6516066 (Integration Bus)
Vulnerabilities in Node.js affect IBM Integration Bus v10 (CVE-2021-32803)

Source: CCN
Type: IBM Security Bulletin 6541298 (Cloud Pak for Automation)
Multiple security vulnerabilities fixed in Cloud Pak for Automation components

Source: CCN
Type: IBM Security Bulletin 6573633 (QRadar Use Case Manager)
IBM QRadar Use Case Manager app is vulnerable to using components with known vulnerabilities

Source: CCN
Type: IBM Security Bulletin 6575667 (Spectrum Discover)
High severity vulnerabilities in libraries used by IBM Spectrum Discover (libraries of libraries)

Source: CCN
Type: IBM Security Bulletin 6589583 (QRadar Deployment Intelligence App)
IBM QRadar Deployment Intelligence app for IBM QRadar SIEM is vulnerable to using components with known vulnerabilities

Source: CCN
Type: IBM Security Bulletin 6590981 (QRadar Data Synchronization App)
IBM QRadar Data Synchronization App for IBM QRadar SIEM is vulnerable to using components with known vulnerabilities

Source: CCN
Type: IBM Security Bulletin 6612727 (Cloud Pak System Software)
Multiple Vulnerabilities in Node.js affect IBM Cloud Pak System

Source: CCN
Type: IBM Security Bulletin 6825871 (Tivoli Netcool/OMNIbus_GUI)
Multiple vulnerabilities in React, webpack and Node.js modules affect Tivoli Netcool/OMNIbus WebGUI

Source: CCN
Type: IBM Security Bulletin 6830017 (QRadar Pulse App)
QRadar Pulse application add on to IBM QRadar SIEM is vulnerable to using components with known vulnerabilities

Source: CCN
Type: IBM Security Bulletin 6956539 (MobileFirst Platform Foundation)
Multiple vulnerabilities found with third-party libraries used by IBM MobileFirst Platform

Source: CCN
Type: IBM Security Bulletin 6967283 (QRadar User Behavior Analytics)
IBM QRadar User Behavior Analytics is vulnerable to components with known vulnerabilities

Source: CCN
Type: IBM Security Bulletin 6991615 (Edge Application Manager)
Open Source Dependency Vulnerability

Source: CCN
Type: IBM Security Bulletin 7008939 (Security Verify Governance)
Multiple vulnerabilities fixed in IBM Security Verify Governance - Identity Manager Virtual Appliance

Source: CCN
Type: NPM Web site
tar

Source: MISC
Type: Mitigation, Third Party Advisory
https://www.npmjs.com/advisories/1771

Source: MISC
Type: Product, Third Party Advisory
https://www.npmjs.com/package/tar

Source: MISC
Type: Patch, Third Party Advisory
https://www.oracle.com/security-alerts/cpuoct2021.html

Vulnerable Configuration:Configuration 1:
  • cpe:/a:tar_project:tar:*:*:*:*:*:node.js:*:* (Version >= 5.0.0 and < 5.0.7)
  • OR cpe:/a:tar_project:tar:*:*:*:*:*:node.js:*:* (Version < 3.2.3)
  • OR cpe:/a:tar_project:tar:*:*:*:*:*:node.js:*:* (Version >= 4.0.0 and < 4.4.15)
  • OR cpe:/a:tar_project:tar:*:*:*:*:*:node.js:*:* (Version >= 6.0.0 and < 6.1.2)

  • Configuration 2:
  • cpe:/a:oracle:graalvm:20.3.3:*:*:*:enterprise:*:*:*
  • OR cpe:/a:oracle:graalvm:21.2.0:*:*:*:enterprise:*:*:*

  • Configuration 3:
  • cpe:/a:siemens:sinec_infrastructure_network_services:*:*:*:*:*:*:*:* (Version < 1.0.1.1)

  • Configuration RedHat 1:
  • cpe:/a:redhat:enterprise_linux:8:*:*:*:*:*:*:*

  • Configuration RedHat 2:
  • cpe:/a:redhat:enterprise_linux:8::appstream:*:*:*:*:*

  • Configuration CCN 1:
  • cpe:/a:nodejs:node.js:*:*:*:*:-:*:*:*
  • OR cpe:/a:ibm:integration_bus:10.0.0.0:*:*:*:*:*:*:*
  • OR cpe:/a:ibm:watson_discovery:2.0.0:*:*:*:*:*:*:*
  • OR cpe:/a:ibm:mobilefirst_platform_foundation:8.0.0.0:*:*:*:*:*:*:*
  • OR cpe:/a:ibm:app_connect_enterprise_certified_container:1.0.0:*:*:*:*:*:*:*
  • OR cpe:/a:ibm:app_connect_enterprise_certified_container:1.0.1:*:*:*:*:*:*:*
  • OR cpe:/a:ibm:app_connect_enterprise_certified_container:1.0.2:*:*:*:*:*:*:*
  • OR cpe:/a:ibm:app_connect_enterprise_certified_container:1.0.3:*:*:*:*:*:*:*
  • OR cpe:/a:ibm:app_connect_enterprise_certified_container:1.0.4:*:*:*:*:*:*:*
  • OR cpe:/a:ibm:watson_discovery:2.2.1:*:*:*:*:*:*:*
  • OR cpe:/a:ibm:cloud_pak_for_automation:21.0.1:*:*:*:*:*:*:*
  • OR cpe:/a:ibm:planning_analytics:2.0:*:*:*:*:*:*:*
  • OR cpe:/a:ibm:cloud_pak_for_automation:21.0.2:-:*:*:*:*:*:*
  • OR cpe:/a:ibm:planning_analytics:2.0:*:*:*:*:*:*:*
  • OR cpe:/a:ibm:qradar_user_behavior_analytics:1.0.0:*:*:*:*:*:*:*
  • OR cpe:/a:ibm:security_verify_governance:10.0:*:*:*:*:*:*:*

  • * Denotes that component is vulnerable
    Oval Definitions
    Definition IDClassTitleLast Modified
    oval:org.opensuse.security:def:119205
    P
    Security update for nodejs10 (Important)
    2022-05-17
    oval:org.opensuse.security:def:119395
    P
    Security update for nodejs10 (Important)
    2022-05-17
    oval:org.opensuse.security:def:119580
    P
    Security update for nodejs10 (Important)
    2022-05-17
    oval:org.opensuse.security:def:484
    P
    Security update for nodejs10 (Important)
    2022-05-17
    oval:org.opensuse.security:def:118708
    P
    Security update for nodejs10 (Important)
    2022-05-17
    oval:org.opensuse.security:def:118898
    P
    Security update for nodejs10 (Important)
    2022-05-17
    oval:org.opensuse.security:def:119505
    P
    Security update for nodejs14 (Important)
    2022-03-04
    oval:org.opensuse.security:def:119690
    P
    Security update for nodejs14 (Important)
    2022-03-04
    oval:org.opensuse.security:def:1723
    P
    Security update for nodejs14 (Important)
    2022-03-04
    oval:org.opensuse.security:def:118827
    P
    Security update for nodejs14 (Important)
    2022-03-04
    oval:org.opensuse.security:def:119017
    P
    Security update for nodejs14 (Important)
    2022-03-04
    oval:org.opensuse.security:def:119322
    P
    Security update for nodejs14 (Important)
    2022-03-04
    oval:org.opensuse.security:def:102281
    P
    Security update for nodejs14 (Important)
    2022-03-04
    oval:org.opensuse.security:def:118823
    P
    Security update for nodejs8 (Important)
    2022-03-03
    oval:org.opensuse.security:def:119013
    P
    Security update for nodejs8 (Important)
    2022-03-03
    oval:org.opensuse.security:def:119318
    P
    Security update for nodejs8 (Important)
    2022-03-03
    oval:org.opensuse.security:def:119501
    P
    Security update for nodejs8 (Important)
    2022-03-03
    oval:org.opensuse.security:def:119686
    P
    Security update for nodejs8 (Important)
    2022-03-03
    oval:org.opensuse.security:def:118820
    P
    Security update for nodejs12 (Important)
    2022-03-02
    oval:org.opensuse.security:def:119010
    P
    Security update for nodejs12 (Important)
    2022-03-02
    oval:org.opensuse.security:def:1721
    P
    Security update for nodejs12 (Important)
    2022-03-02
    oval:org.opensuse.security:def:119315
    P
    Security update for nodejs12 (Important)
    2022-03-02
    oval:org.opensuse.security:def:119498
    P
    Security update for nodejs12 (Important)
    2022-03-02
    oval:org.opensuse.security:def:119683
    P
    Security update for nodejs12 (Important)
    2022-03-02
    oval:org.opensuse.security:def:102279
    P
    Security update for nodejs12 (Important)
    2022-03-02
    oval:com.redhat.rhsa:def:20213666
    P
    RHSA-2021:3666: nodejs:14 security and bug fix update (Important)
    2021-09-27
    oval:com.redhat.rhsa:def:20213623
    P
    RHSA-2021:3623: nodejs:12 security and bug fix update (Important)
    2021-09-21
    BACK
    tar_project tar *
    tar_project tar *
    tar_project tar *
    tar_project tar *
    oracle graalvm 20.3.3
    oracle graalvm 21.2.0
    siemens sinec infrastructure network services *
    nodejs node.js *
    ibm integration bus 10.0.0.0
    ibm watson discovery 2.0.0
    ibm mobilefirst platform foundation 8.0.0.0
    ibm app connect enterprise certified container 1.0.0
    ibm app connect enterprise certified container 1.0.1
    ibm app connect enterprise certified container 1.0.2
    ibm app connect enterprise certified container 1.0.3
    ibm app connect enterprise certified container 1.0.4
    ibm watson discovery 2.2.1
    ibm cloud pak for automation 21.0.1
    ibm planning analytics 2.0
    ibm cloud pak for automation 21.0.2 -
    ibm planning analytics 2.0
    ibm qradar user behavior analytics 1.0.0
    ibm security verify governance 10.0