CVE-2023-30535: Snowflake jdbc Snowflake JDBC Vulnerable To Command Vulnerability

HIGH
Advisory Identifier: GHSA-4g3j-c4wg-6j7x
CVSS 7.3
CWE-20 CWE-77
Published
Advisory Summary

CVE-2023-30535 is a HIGH (CVSS 7.3) snowflake jdbc vulnerable to command vulnerability (CWE-20: Improper Input Validation) affecting Snowflake jdbc libraries in the Maven ecosystem. The issue involves snowflake jdbc vulnerable to command injection via sso url authentication. Remediation is available by upgrading affected packages to version 3.13.29.

CVE-2023-30535 at a Glance

CVE Identifier CVE-2023-30535
GHSA Identifier GHSA-4g3j-c4wg-6j7x
Severity HIGH
CVSS v3.1 Base Score 7.3
CWE Classification CWE-20: Improper Input Validation
Affected Product Snowflake jdbc
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 7.3

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

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

How to Fix CVE-2023-30535

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

net.snowflake:snowflake-jdbc fixed: 3.13.29
<dependency>
    <groupId>net.snowflake</groupId>
    <artifactId>snowflake-jdbc</artifactId>
    <version>3.13.29</version>
</dependency>
Verify Direct and Transitive Dependencies

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

mvn dependency:tree -Dincludes=net.snowflake

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2023-30535, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=net.snowflake

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

Note: The mvn dependency:tree -Dincludes=net.snowflake command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Snowflake jdbc, 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

Snowflake JDBC driver is vulnerable to command injection vulnerability via SSO URL authentication. The vulnerability was patched on March 17, 2023 as part of Snowflake JDBC driver Version 3.13.29. An attacker could set up a malicious, publicly accessible server which responds to the SSO URL with an attack payload. If the attacker then tricked a user into visiting the maliciously crafted connection URL, the user’s local machine would render the malicious payload, leading to a remote code execution.

CVE-2023-30535 Affected Snowflake jdbc Versions

1 component(s)
Fixed Versions:
3.13.29
Product / Package Ecosystem Affected Versions Fixed Version
net.snowflake:snowflake-jdbc
Maven
< 3.13.29
3.13.29

References

Frequently Asked Questions

What is CVE-2023-30535?
CVE-2023-30535 is a security vulnerability in Snowflake jdbc involving Snowflake JDBC vulnerable to command injection via SSO URL authentication under CWE-20: Improper Input Validation.
Which Snowflake jdbc versions are affected?
Affected versions include releases prior to 3.13.29 across affected packages: net.snowflake:snowflake-jdbc.
What version fixes CVE-2023-30535?
Upgrading to 3.13.29 (or the latest patched release for your respective branch) resolves the vulnerability.
Is snowflake-jdbc affected?
Yes, net.snowflake:snowflake-jdbc is affected in releases prior to 3.13.29. Upgrade your dependency to 3.13.29 or later.
What is the CVSS score of CVE-2023-30535?
CVE-2023-30535 has a CVSS v3.1 base score of 7.3 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2023-30535?
CVE-2023-30535 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check Maven dependencies for CVE-2023-30535?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=net.snowflake'. 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-4g3j-c4wg-6j7x",
  "modified" : "2023-04-24T22:04:07Z",
  "published" : "2023-04-14T18:28:58Z",
  "aliases" : [ "CVE-2023-30535" ],
  "summary" : "Snowflake JDBC vulnerable to command injection via SSO URL authentication",
  "details" : "Snowflake JDBC driver is vulnerable to command injection vulnerability via SSO URL authentication. The vulnerability was patched on March 17, 2023 as part of Snowflake JDBC driver Version 3.13.29. An attacker could set up a malicious, publicly accessible server which responds to the SSO URL with an attack payload. If the attacker then tricked a user into visiting the maliciously crafted connection URL, the user’s local machine would render the malicious payload, leading to a remote code execution.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "net.snowflake:snowflake-jdbc"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.13.29"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/snowflakedb/snowflake-jdbc/security/advisories/GHSA-4g3j-c4wg-6j7x"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-30535"
  }, {
    "type" : "WEB",
    "url" : "https://community.snowflake.com/s/article/JDBC-Driver-Release-Notes"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/snowflakedb/snowflake-jdbc"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20", "CWE-77" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-04-14T18:28:58Z",
    "nvd_published_at" : "2023-04-14T20:15:00Z"
  }
}