{"id":"CVE-2025-24793","published":"2025-01-29T20:23:02Z","modified":"2025-01-31T16:54:16Z","title":"Snowflake Connector for Python has an SQL Injection in write_pandas","vendor":"snowflakedb","product":"snowflake-connector-python","tier":"tail","description":{"text":"The Snowflake Connector for Python provides an interface for developing Python applications that can connect to Snowflake and perform all standard operations. 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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00441,"percentile":0.30226,"provenance":"source"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://github.com/snowflakedb/snowflake-connector-python/security/advisories/GHSA-2vpq-fh52-j3wv","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/snowflakedb/snowflake-connector-python/commit/f3f9b666518d29c31a49384bbaa9a65889e72056","tags":["x_refsource_MISC"]}],"priority":{"score":10.9,"factors":[{"name":"EPSS percentile","points":6.05},{"name":"CVSS severity","points":4.9}]},"vendorSlug":"snowflakedb","affectedVersions":[{"vendor":"snowflakedb","product":"snowflake-connector-python","versions":[">= 2.2.5, < 3.13.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-01-31T16:53:59.700519Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"snowflake-connector-python","vulnerableRanges":[">=2.2.5, <3.13.1"],"patched":["3.13.1"],"from":["GHSA-2vpq-fh52-j3wv","PYSEC-2025-26"],"provenance":"source"}],"summary":{"text":"The Snowflake Connector for Python has an SQL injection flaw in the write_pandas function of its snowflake.connector.pandas_tools module. An attacker with local access and low privileges, using a crafted input and without any required user interaction, can inject SQL commands that the connector executes against the Snowflake database.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:04:04Z"},"euvd":{"id":"EUVD-2025-0122","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-snowflake-connector-python-cve-2022-42965","parents":[{"from":"CVE-2022-42965","to":"CVE-2025-24793","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/snowflake/connector/cursor.py"],"commits":["https://github.com/snowflakedb/snowflake-connector-python/commit/b9d2fc789fae4db865dde3d2a1bd72c8a9eab091","https://github.com/snowflakedb/snowflake-connector-python/commit/f3f9b666518d29c31a49384bbaa9a65889e72056"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2022-42965","published":"2022-11-09","fixed":"2.8.2","kev":false},{"cve":"CVE-2023-34233","published":"2023-06-08","fixed":"3.0.2","kev":false},{"cve":"CVE-2024-49750","published":"2024-10-24","fixed":"3.12.3","kev":false,"link":{"from":"CVE-2024-49750","to":"CVE-2025-24793","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:snowflake-connector-python","fromFixed":"3.12.3","toFixed":"3.13.1","daysApart":97}]}},{"cve":"CVE-2025-24793","published":"2025-01-29","fixed":"3.13.1","kev":false},{"cve":"CVE-2025-24794","published":"2025-01-29","fixed":"3.13.1","kev":false},{"cve":"CVE-2025-24795","published":"2025-01-29","fixed":"3.13.1","kev":false},{"cve":"CVE-2026-15925","published":"2026-07-16","fixed":"4.7.1","kev":false}],"package":"PyPI:snowflake-connector-python"}}