CVE-2025-24795: Snowflake connector python Snowflake-connector-python Vulnerable To Insecure Cache Vulnerability
MODERATECVE-2025-24795 is a MODERATE (CVSS 4.4) snowflake-connector-python vulnerable to insecure cache vulnerability (CWE-276: Incorrect Default Permissions) affecting Snowflake connector python libraries in the PyPI ecosystem. The issue involves snowflake-connector-python vulnerable to insecure cache files permissions. Remediation is available by upgrading affected packages to version 3.13.1.
CVE-2025-24795 at a Glance
Security Impact
CVSS: 4.4
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:L/I:L/A:N).
How to Fix CVE-2025-24795
To remediate this vulnerability, upgrade all affected Snowflake connector python dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install snowflake-connector-python>=3.13.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show snowflake-connector-python
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2025-24795, inspect your installed packages using pip:
pip show snowflake-connector-python
Analyze the terminal output to locate any version of Snowflake connector python in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.13.1), your application is affected.
Note: The pip show snowflake-connector-python command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-276: Incorrect Default Permissions, where during installation, installed file permissions are set to allow anyone to modify those files. In Snowflake connector python, 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
CVE-2025-24795 Affected Snowflake connector python Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
snowflake-connector-python
|
PyPI |
≥ 2.3.7
< 3.13.1
|
3.13.1
|
References
Frequently Asked Questions
What is CVE-2025-24795?
Which Snowflake connector python versions are affected?
What version fixes CVE-2025-24795?
Is snowflake-connector-python affected?
What is the CVSS score of CVE-2025-24795?
What CWE is associated with CVE-2025-24795?
How can I check PyPI dependencies for CVE-2025-24795?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-r2x6-cjg7-8r43",
"modified" : "2025-04-09T20:11:00Z",
"published" : "2025-01-29T20:49:59Z",
"aliases" : [ "CVE-2025-24795" ],
"summary" : "snowflake-connector-python vulnerable to insecure cache files permissions",
"details" : "### Issue\nSnowflake discovered and remediated a vulnerability in the Snowflake Connector for Python. On Linux systems, when temporary credential caching is enabled, the Snowflake Connector for Python will cache temporary credentials locally in a world-readable file.\n\nThis vulnerability affects versions 2.3.7 through 3.13.0. Snowflake fixed the issue in version 3.13.1.\n\n### Vulnerability Details\nOn Linux, when either EXTERNALBROWSER or USERNAME_PASSWORD_MFA authentication methods are used with temporary credential caching enabled, the Snowflake Connector for Python will cache the temporary credentials in a local file. In the vulnerable versions of the Driver, this file is created with world-readable permissions.\n\n### Solution\nSnowflake released version 3.13.1 of the Snowflake Connector for Python, which fixes this issue. We recommend users upgrade to version 3.13.1.\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:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "snowflake-connector-python"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.3.7"
}, {
"fixed" : "3.13.1"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 3.13.0"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/snowflakedb/snowflake-connector-python/security/advisories/GHSA-r2x6-cjg7-8r43"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-24795"
}, {
"type" : "WEB",
"url" : "https://github.com/snowflakedb/snowflake-connector-python/commit/3769b43822357c3874c40f5e74068458c2dc79af"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/snowflake-connector-python/PYSEC-2025-28.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/snowflakedb/snowflake-connector-python"
}, {
"type" : "WEB",
"url" : "https://github.com/snowflakedb/snowflake-connector-python/releases/tag/v3.13.1"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-276" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-01-29T20:49:59Z",
"nvd_published_at" : "2025-01-29T21:15:21Z"
}
}