GHSA-r2x6-cjg7-8r43

Suggest an improvement
Source
https://github.com/advisories/GHSA-r2x6-cjg7-8r43
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/01/GHSA-r2x6-cjg7-8r43/GHSA-r2x6-cjg7-8r43.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-r2x6-cjg7-8r43
Aliases
Related
Published
2025-01-29T20:49:59Z
Modified
2025-01-29T22:26:43.029287Z
Severity
  • 4.4 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N CVSS Calculator
Summary
snowflake-connector-python vulnerable to insecure cache files permissions
Details

Issue

Snowflake 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.

This vulnerability affects versions 2.3.7 through 3.13.0. Snowflake fixed the issue in version 3.13.1.

Vulnerability Details

On Linux, when either EXTERNALBROWSER or USERNAMEPASSWORDMFA 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.

Solution

Snowflake released version 3.13.1 of the Snowflake Connector for Python, which fixes this issue. We recommend users upgrade to version 3.13.1.

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.

Database specific
{
    "nvd_published_at": "2025-01-29T21:15:21Z",
    "cwe_ids": [
        "CWE-276"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2025-01-29T20:49:59Z"
}
References

Affected packages

PyPI / snowflake-connector-python

Package

Name
snowflake-connector-python
View open source insights on deps.dev
Purl
pkg:pypi/snowflake-connector-python

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.3.7
Fixed
3.13.1

Affected versions

2.*

2.3.7
2.3.8
2.3.9
2.3.10
2.4.0
2.4.1
2.4.2
2.4.3
2.4.4
2.4.5
2.4.6
2.5.0
2.5.1
2.6.0
2.6.1
2.6.2
2.7.0
2.7.1
2.7.2
2.7.3
2.7.4
2.7.5
2.7.6
2.7.7
2.7.8
2.7.9
2.7.10
2.7.11
2.7.12
2.8.0
2.8.1
2.8.2
2.8.3
2.9.0

3.*

3.0.0
3.0.1
3.0.2
3.0.3
3.0.4
3.1.0a1
3.1.0a2
3.1.0
3.1.1
3.2.0
3.2.1
3.3.0b1
3.3.0
3.3.1
3.4.0
3.4.1
3.5.0
3.6.0
3.7.0
3.7.1
3.8.0
3.8.1
3.9.0
3.9.1
3.10.0
3.10.1
3.11.0
3.12.0
3.12.1
3.12.2
3.12.3
3.12.4
3.13.0

Database specific

{
    "last_known_affected_version_range": "<= 3.13.0"
}