Vulnerabilities in pkg:npm/@zowe/cli

PACKAGE
Advisory Identifier: GHSA-ghgq-x6wc-6jr5
Advisory Summary

CVE-2024-6833 is a MODERATE (CVSS 5.9) zowe cli allows storage of vulnerability (CWE-256: Plaintext Storage of a Password) affecting @zowe/cli libraries in the npm ecosystem. The issue involves zowe cli allows storage of previously entered secure credentials in a plaintext file. Remediation is available by upgrading affected packages to version 7.23.5.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/@zowe/cli

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/@zowe/cli. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-ghgq-x6wc-6jr5 CVE-2024-6833 MODERATE Zowe CLI allows storage of previously entered secure credentials in a plaintext file

CVE-2024-6833 at a Glance

CVE Identifier CVE-2024-6833
GHSA Identifier GHSA-ghgq-x6wc-6jr5
Severity MODERATE
CVSS v3.1 Base Score 5.9
CWE Classification CWE-256: Plaintext Storage of a Password
Affected Product @zowe/cli
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 5.9

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2024-6833

To remediate this vulnerability, upgrade all affected @zowe/cli dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

@zowe/cli fixed: 7.23.5
npm install @zowe/cli@7.23.5
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls @zowe/cli

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2024-6833, inspect your project dependencies using npm:

npm ls @zowe/cli

Analyze the terminal output to locate any version of @zowe/cli in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 7.23.5), your application is affected.

Note: The npm ls @zowe/cli command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-256: Plaintext Storage of a Password, where the product stores a password in plaintext within resources such as memory or files. In @zowe/cli, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

A vulnerability in Zowe CLI allows local, privileged actors to store previously entered secure credentials in a plaintext file as part of an auto-init operation.

CVE-2024-6833 Affected @zowe/cli Versions

1 component(s)
Fixed Versions:
7.23.5
Product / Package Ecosystem Affected Versions Fixed Version
@zowe/cli
npm
≥ 7.18.0
< 7.23.5
7.23.5

References

Frequently Asked Questions

What is CVE-2024-6833?
CVE-2024-6833 is a security vulnerability in @zowe/cli involving Zowe CLI allows storage of previously entered secure credentials in a plaintext file under CWE-256: Plaintext Storage of a Password.
Which @zowe/cli versions are affected?
Affected versions include releases prior to 7.23.5 across affected packages: @zowe/cli.
What version fixes CVE-2024-6833?
Upgrading to 7.23.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @zowe/cli affected?
Yes, @zowe/cli is affected in releases prior to 7.23.5. Upgrade your dependency to 7.23.5 or later.
What is the CVSS score of CVE-2024-6833?
CVE-2024-6833 has a CVSS v3.1 base score of 5.9 (MODERATE) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N.
What CWE is associated with CVE-2024-6833?
CVE-2024-6833 is classified under CWE-256: Plaintext Storage of a Password (The product stores a password in plaintext within resources such as memory or files.).
How can I check npm dependencies for CVE-2024-6833?
Run the dependency tree command: 'npm ls @zowe/cli'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-ghgq-x6wc-6jr5",
  "modified" : "2024-07-17T19:30:05Z",
  "published" : "2024-07-17T15:30:52Z",
  "aliases" : [ "CVE-2024-6833" ],
  "summary" : "Zowe CLI allows storage of previously entered secure credentials in a plaintext file",
  "details" : "A vulnerability in Zowe CLI allows local, privileged actors to store previously entered secure credentials in a plaintext file as part of an auto-init operation.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@zowe/cli"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.18.0"
      }, {
        "fixed" : "7.23.5"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-6833"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zowe/zowe-cli/commit/6778da5e03c65dfcd3e6e4b4097b94d9fbd5d01b"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/zowe/zowe-cli"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-256" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-07-17T19:30:05Z",
    "nvd_published_at" : "2024-07-17T15:15:14Z"
  }
}