Untrusted Search Path Affecting net.snowflake:snowflake-jdbc package, versions [3.2.3,3.22.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JAVA-NETSNOWFLAKE-8674918
  • published30 Jan 2025
  • disclosed29 Jan 2025
  • creditUnknown

Introduced: 29 Jan 2025

NewCVE-2025-24789  (opens in a new tab)
CWE-426  (opens in a new tab)

How to fix?

Upgrade net.snowflake:snowflake-jdbc to version 3.22.0 or higher.

Overview

Affected versions of this package are vulnerable to Untrusted Search Path when the EXTERNALBROWSER authentication method is used, on Windows. The openBrowser() function in SessionUtilExternalBrowser.java relies upon the xdg-open command that doesn't exist by default on Windows. When the application looks up the command on the system's %PATH% it can be tricked into executing a malicious program placed in one of the traversed directories by a malicious user with limited privileges, thereby elevating their privileges to those of the JDBC driver.

References

CVSS Scores

version 4.0
version 3.1