CVE-2025-24789
Snowflake JDBC allows an untrusted search path on Windows
Description
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.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| net.snowflake » snowflake-jdbc | >= 3.2.3, < 3.22.0 | 3.22.0 |
Blast radius
36% of the dependent artifacts (82) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 3,736 |
| 2 hops | 4,042 |
| 3 hops | 3,000 |
| 4 hops | 858 |
| 5 hops | 101 |
Most used dependents
- org.liquibase » liquibase-core1,306 usages
- org.liquibase » liquibase-maven-plugin207 usages
- org.finos.legend.engine » legend-engine-xt-relationalStore-executionPlan89 usages
- org.keycloak » keycloak-model-jpa62 usages
- org.finos.legend.engine » legend-engine-xt-relationalStore-executionPlan-connection52 usages
- us.fatehi » schemacrawler-testdb44 usages
- org.finos.legend.engine » legend-engine-xt-relationalStore-executionPlan-connection-authentication39 usages
- org.keycloak » keycloak-dependencies-server-all22 usages
- org.apache.seatunnel » connector-jdbc20 usages
- com.raw-labs » raw-sources17 usages
- org.finos.legend.engine » legend-engine-xt-relationalStore-executionPlan-connection-authentication-default15 usages
- org.apache.dolphinscheduler » dolphinscheduler-datasource-all15 usages
- org.finos.legend.engine » legend-engine-extensions-collection-generation14 usages
- us.fatehi » schemacrawler-jdbc-drivers12 usages
- org.eclipse.dirigible » dirigible-components-group-database12 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
