CVE-2025-24790: Snowflake JDBC Driver Vulnerability - Insecure Temporary Credential Cache File Permissions
Summary
CVE-2025-24790: Snowflake JDBC uses insecure temporary credential cache file permissions. Affects net.snowflake:snowflake-jdbc versions >= 3.6.8, < 3.22.0. Fixed in 3.22.0. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The Snowflake JDBC Driver is a Java-based library that enables applications to connect to Snowflake, a cloud-based data warehousing service. This driver supports various authentication methods, including EXTERNALBROWSER and USERNAME_PASSWORD_MFA, allowing users to securely access their Snowflake accounts. However, a vulnerability was identified in versions 3.6.8 through 3.21.0, where temporary credentials were cached in a world-readable file on Linux systems, posing a security risk.
Vulnerability Detail
The vulnerability arises from the way the Snowflake JDBC Driver handles temporary credential caching on Linux systems. When caching is enabled and certain authentication methods are used, the driver creates a local file to store these credentials. In the affected versions, this file is created with world-readable permissions, allowing unauthorized users to access sensitive information. This could lead to unauthorized access to Snowflake accounts and data breaches.
How To Fix
Latest published version: 4.4.0 as of 23 Oct 2026
Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.
If you need the minimum change
3.22.0
This is the first release that contains the fix.
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
As a temporary workaround, users can disable temporary credential caching by configuring the JDBC connection string to not use caching. This can be done by setting the 'useCachedCredentials' parameter to 'false'. Example:
jdbc:snowflake://<account>.snowflakecomputing.com/?user=<username>&password=<password>&useCachedCredentials=false
Conclusion
The Snowflake JDBC Driver vulnerability (CVE-2025-24790) poses a significant risk due to insecure temporary credential caching on Linux systems. Users are strongly advised to upgrade to version 3.22.0 or later to mitigate this risk. Additionally, temporary workarounds are available to enhance security until the upgrade is completed.
See every vulnerability recorded for net.snowflake:snowflake-jdbc →
FAQ
Versions 3.6.8 through 3.21.0 are affected by this vulnerability.
The CVSS score of this vulnerability is 4.4, indicating a moderate severity.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
The main risk is unauthorized access to sensitive temporary credentials, which could lead to data breaches and unauthorized access to Snowflake accounts.
You can report any security vulnerabilities to Snowflake through their HackerOne page as per their Vulnerability Disclosure Policy.
References
Related vulnerabilities
Recent vulnerabilities recorded for net.snowflake:snowflake-jdbc.