GHSA-2vpq-fh52-j3wv

Suggest an improvement
Source
https://github.com/advisories/GHSA-2vpq-fh52-j3wv
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/01/GHSA-2vpq-fh52-j3wv/GHSA-2vpq-fh52-j3wv.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-2vpq-fh52-j3wv
Aliases
Related
Published
2025-01-29T20:50:33Z
Modified
2025-04-09T20:34:21.535181Z
Severity
  • 7.0 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
snowflake-connector-python vulnerable to SQL Injection in write_pandas
Details

Issue

Snowflake discovered and remediated a vulnerability in the Snowflake Connector for Python. A function from the snowflake.connector.pandas_tools module is vulnerable to SQL injection.

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

Vulnerability Details

A function from the snowflake.connector.pandas_tools module is not sanitizing all of its arguments, and queries using them are not parametrized. An attacker controlling these arguments could achieve SQL injection by passing crafted input. Any SQL executed that way by an attacker would still run in the context of the current session.

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-89"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2025-01-29T20:50:33Z"
}
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.2.5
Fixed
3.13.1

Affected versions

2.*

2.2.5
2.2.6
2.2.7
2.2.8
2.2.9
2.2.10
2.3.0
2.3.1
2.3.2
2.3.3
2.3.4
2.3.5
2.3.6
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"
}