CVE-2024-37162: Zsa Generation Of Error Message Containing Vulnerability

MODERATE
Advisory Identifier: GHSA-wjmj-h3xc-hxp8
CVSS 5.3
CWE-209
Published
Advisory Summary

CVE-2024-37162 is a MODERATE (CVSS 5.3) generation of error message containing vulnerability (CWE-209: Generation of Error Message Containing Sensitive Information) affecting Zsa libraries in the npm ecosystem. The issue involves generation of error message containing sensitive information in zsa. Remediation is available by upgrading affected packages to version 0.3.3.

CVE-2024-37162 at a Glance

CVE Identifier CVE-2024-37162
GHSA Identifier GHSA-wjmj-h3xc-hxp8
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-209: Generation of Error Message Containing Sensitive Information
Affected Product Zsa
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 5.3

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

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2024-37162

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

zsa fixed: 0.3.3
npm install zsa@0.3.3
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 zsa

How to Check if You Are Affected

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

npm ls zsa

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

Note: The npm ls zsa 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-209: Generation of Error Message Containing Sensitive Information, where the product generates an error message that includes sensitive information about its environment, users, or associated data. In Zsa, 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

### Impact All users are impacted. The zsa application transfers the parse error stack from the server to the client in production build mode. This can potentially reveal sensitive information about the server environment, such as the machine username and directory paths. An attacker could exploit this vulnerability to gain unauthorized access to sensitive server information. This information could be used to plan further attacks or gain a deeper understanding of the server infrastructure. ### Patches Yes, this has been pathed on `0.3.3` ### Workarounds No way to fix other than the patch.

CVE-2024-37162 Affected Zsa Versions

1 component(s)
Fixed Versions:
0.3.3
Product / Package Ecosystem Affected Versions Fixed Version
zsa
npm
< 0.3.3
0.3.3

References

Frequently Asked Questions

What is CVE-2024-37162?
CVE-2024-37162 is a security vulnerability in Zsa involving Generation of Error Message Containing Sensitive Information in zsa under CWE-209: Generation of Error Message Containing Sensitive Information.
Which Zsa versions are affected?
Affected versions include releases prior to 0.3.3 across affected packages: zsa.
What version fixes CVE-2024-37162?
Upgrading to 0.3.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is zsa affected?
Yes, zsa is affected in releases prior to 0.3.3. Upgrade your dependency to 0.3.3 or later.
What is the CVSS score of CVE-2024-37162?
CVE-2024-37162 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2024-37162?
CVE-2024-37162 is classified under CWE-209: Generation of Error Message Containing Sensitive Information (The product generates an error message that includes sensitive information about its environment, users, or associated data.).
How can I check npm dependencies for CVE-2024-37162?
Run the dependency tree command: 'npm ls zsa'. 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-wjmj-h3xc-hxp8",
  "modified" : "2024-10-31T22:24:07Z",
  "published" : "2024-06-06T22:58:46Z",
  "aliases" : [ "CVE-2024-37162" ],
  "summary" : "Generation of Error Message Containing Sensitive Information in zsa",
  "details" : "### Impact\nAll users are impacted. The zsa application transfers the parse error stack from the server to the client in production build mode. This can potentially reveal sensitive information about the server environment, such as the machine username and directory paths. An attacker could exploit this vulnerability to gain unauthorized access to sensitive server information. This information could be used to plan further attacks or gain a deeper understanding of the server infrastructure.\n\n### Patches\nYes, this has been pathed on `0.3.3`\n\n### Workarounds\nNo way to fix other than the patch.\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "zsa"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.3.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/IdoPesok/zsa/security/advisories/GHSA-wjmj-h3xc-hxp8"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-37162"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/IdoPesok/zsa/commit/86b86b282bde6780963f62406cc8bc65f2c86f3a"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/IdoPesok/zsa"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-209" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-06-06T22:58:46Z",
    "nvd_published_at" : "2024-06-07T15:15:50Z"
  }
}