CVE-2023-34232: Snowflake NodeJS Driver command injection via SSO browser URL

CVE-2023-34232 · Severity: low · CVSS 3.1 · Published 2023-06-09

The Snowflake NodeJS Driver is a library that allows applications to connect to Snowflake data warehouse services. A command injection vulnerability in its SSO (Single Sign-On) browser authentication flow allows attackers to execute arbitrary code on users' machines by tricking them into visiting a malicious URL. An attacker could compromise sensitive data or take control of the system running the driver.

Technologies: snowflake-sdk (npm). Vendors: npm.

Quick answers

Is CVE-2023-34232 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2023-34232 being exploited in the wild.
How severe is CVE-2023-34232?
Low severity, with a CVSS score of 3.1, published 9 June 2023.
Which products and versions are affected?
snowflake-sdk (npm) SEMVER:introduced=0,fixed=1.6.21.
Is there a fix for CVE-2023-34232?
Yes. snowflake-sdk (npm): upgrade to 1.6.21 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2023-34232 attacked?
It is attacked over the network.
Am I affected by CVE-2023-34232?
Check whether you run snowflake-sdk (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • snowflake-sdk (npm): upgrade to 1.6.21 or later
    npm install snowflake-sdk@1.6.21

Technical details

The vulnerability is a command injection flaw (CWE-77) in the Snowflake NodeJS Driver's SSO browser URL authentication mechanism. An attacker can inject malicious commands by setting up a malicious server and redirecting users to a crafted connection URL; when the user visits the URL, the driver renders and executes the attacker's payload on the local machine, resulting in remote code execution. User interaction is required (the user must visit the malicious URL), but the attack vector is network-based and requires low privileges. The vulnerability was patched in version 1.6.21, merged on April 18, 2023; all versions before 1.6.21 are affected.

Affected products

  • Snowflake NodeJS Driver before 1.6.21

Identifiers

  • CVE-2023-34232
  • GHSA-h53w-7qw7-vh5c

Timeline

  • 2023-06-09: disclosed
  • 2023-04-18: patched: Fix merged into version 1.6.21

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.