CVE-2025-24789: Snowflake jdbc Snowflake JDBC Allows An Untrusted Vulnerability

HIGH
Advisory Identifier: GHSA-7hpq-3g6w-pvhf
CVSS 7.8
CWE-426
Published
Advisory Summary

CVE-2025-24789 is a HIGH (CVSS 7.8) snowflake jdbc allows an untrusted vulnerability (CWE-426: Untrusted Search Path) affecting Snowflake jdbc libraries in the Maven ecosystem. The issue involves snowflake jdbc allows an untrusted search path on windows. Remediation is available by upgrading affected packages to version 3.22.0.

CVE-2025-24789 at a Glance

CVE Identifier CVE-2025-24789
GHSA Identifier GHSA-7hpq-3g6w-pvhf
Severity HIGH
CVSS v3.1 Base Score 7.8
CWE Classification CWE-426: Untrusted Search Path
Affected Product Snowflake jdbc
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 7.8

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:N/S:U/C:H/I:H/A:H).

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

How to Fix CVE-2025-24789

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.22.0
<dependency>
    <groupId>net.snowflake</groupId>
    <artifactId>snowflake-jdbc</artifactId>
    <version>3.22.0</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-2025-24789, 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.22.0), 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-426: Untrusted Search Path, where the product searches for critical resources using an externally-supplied search path that can point to resources that are not under the product's direct control. 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

### Issue Snowflake discovered and remediated a vulnerability in the Snowflake JDBC Driver. When the EXTERNALBROWSER authentication method is used on Windows, an attacker with write access to a directory in the %PATH% can escalate their privileges to the user that runs the vulnerable JDBC Driver version. This vulnerability affects versions 3.2.3 through 3.21.0 on Windows. Snowflake fixed the issue in version 3.22.0. ### Vulnerability Details When the EXTERNALBROWSER authentication method is selected, the Snowflake JDBC Driver on non-macOS operating systems tries to open the SSO URL using xdg-open. Because xdg-open is a Linux program that doesn’t exist in a default Windows installation, a sufficiently privileged attacker could place a malicious executable in one of the directories on the %PATH% and achieve local privilege escalation to the user running the JDBC Driver. ### Solution Snowflake released version 3.22.0 of the Snowflake JDBC Driver, which fixes this issue. We recommend users upgrade to version 3.22.0. ### Additional Information If you discover a security vulnerability in one of our products or websites, please report the issue to HackerOne. For more information, please see our [Vulnerability Disclosure Policy](https://hackerone.com/snowflake?type=team).

CVE-2025-24789 Affected Snowflake jdbc Versions

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

References

Frequently Asked Questions

What is CVE-2025-24789?
CVE-2025-24789 is a security vulnerability in Snowflake jdbc involving Snowflake JDBC allows an untrusted search path on Windows under CWE-426: Untrusted Search Path.
Which Snowflake jdbc versions are affected?
Affected versions include releases prior to 3.22.0 across affected packages: net.snowflake:snowflake-jdbc.
What version fixes CVE-2025-24789?
Upgrading to 3.22.0 (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.22.0. Upgrade your dependency to 3.22.0 or later.
What is the CVSS score of CVE-2025-24789?
CVE-2025-24789 has a CVSS v3.1 base score of 7.8 (HIGH) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2025-24789?
CVE-2025-24789 is classified under CWE-426: Untrusted Search Path (The product searches for critical resources using an externally-supplied search path that can point to resources that are not under the product's direct control.).
How can I check Maven dependencies for CVE-2025-24789?
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-7hpq-3g6w-pvhf",
  "modified" : "2025-01-29T18:41:57Z",
  "published" : "2025-01-29T18:41:57Z",
  "aliases" : [ "CVE-2025-24789" ],
  "summary" : "Snowflake JDBC allows an untrusted search path on Windows",
  "details" : "### Issue\nSnowflake discovered and remediated a vulnerability in the Snowflake JDBC Driver. When the EXTERNALBROWSER authentication method is used on Windows, an attacker with write access to a directory in the %PATH% can escalate their privileges to the user that runs the vulnerable JDBC Driver version.\n\nThis vulnerability affects versions 3.2.3 through 3.21.0 on Windows. Snowflake fixed the issue in version 3.22.0.\n\n### Vulnerability Details\nWhen the EXTERNALBROWSER authentication method is selected, the Snowflake JDBC Driver on non-macOS operating systems tries to open the SSO URL using xdg-open. Because xdg-open is a Linux program that doesn’t exist in a default Windows installation, a sufficiently privileged attacker could place a malicious executable in one of the directories on the %PATH% and achieve local privilege escalation to the user running the JDBC Driver.\n\n### Solution\nSnowflake released version 3.22.0 of the Snowflake JDBC Driver, which fixes this issue. We recommend users upgrade to version 3.22.0.\n\n### Additional Information\nIf you discover a security vulnerability in one of our products or websites, please report the issue to HackerOne. For more information, please see our [Vulnerability Disclosure Policy](https://hackerone.com/snowflake?type=team).",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "net.snowflake:snowflake-jdbc"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.2.3"
      }, {
        "fixed" : "3.22.0"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 3.21.0"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/snowflakedb/snowflake-jdbc/security/advisories/GHSA-7hpq-3g6w-pvhf"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-24789"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/snowflakedb/snowflake-jdbc/commit/4f01bb8f9b708c71e7a2111c87371dbfc1d53dd6"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/snowflakedb/snowflake-jdbc"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-426" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-01-29T18:41:57Z",
    "nvd_published_at" : "2025-01-29T18:15:47Z"
  }
}