CVE-2025-24791 snowflake-connector-nodejs has incorrect validation of temporary credential cache file permissions
An attacker with local write access can bypass permission checks on the credential cache, potentially stealing credentials to access Snowflake accounts.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-24791?
CVE-2025-24791 is a medium-severity vulnerability in snowflakedb snowflake-connector-nodejs, published on 29 Jan 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
snowflake-connector-nodejs is a NodeJS driver for Snowflake. Snowflake discovered and remediated a vulnerability in the Snowflake NodeJS Driver. File permissions checks of the temporary credential cache could be bypassed by an attacker with write access to the local cache directory. This vulnerability affects versions 1.12.0 through 2.0.1 on Linux. Snowflake fixed the issue in version 2.0.2.
Weakness: CWE-281
Which versions are affected by CVE-2025-24791?
2 open source packages ship an affected version, including snowflake-sdk. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
snowflake-sdk npm | From 1.12.0 | 2.0.2 |
snowflake-sdk npm | From 1.12.0 | 2.0.2 |
Products include Snowflake Snowflake Connector.
How do I fix CVE-2025-24791?
Upgrade snowflake-sdk to 2.0.2 or later.
Is CVE-2025-24791 being exploited?
There is no known exploitation of CVE-2025-24791 in the wild and no public exploit code.
Other vulnerabilities in snowflakedb snowflake-connector-nodejs
- CVE-2023-34230 Snowflake Connector vulnerable to Command Injection
- CVE-2023-34232 Snowflake NodeJS Driver vulnerable to Command Injection
- CVE-2023-34233 Snowflake Python Connector vulnerable to Command Injection
- CVE-2025-24793 Snowflake Connector for Python has an SQL Injection in write_pandas
- CVE-2025-24794 The Snowflake Connector for Python uses insecure deserialization of the OCSP response cache
Sources
Also known as GHSA-xfhv-wqj6-rx99.