CVE-2026-123859

SQL Injection via unescaped DataFrame column names in Snowflake Connector for Python and Snowflake Connector for Python (Universal Core)

High published · updated

8.1
CVSS score out of 10 · NVD (412d305a-227d-44f9-a262-a31ba44f2aea)

Description

When identifier escaping is disabled through a non-default configuration, the write_pandas() data-loading functionality in the Snowflake Connector for Python and the Snowflake Connector for Python (Universal Core) did not escape DataFrame column names before including them in generated SQL, which could allow SQL injection. In both products, a crafted column name could have been used to chain additional SQL statements onto the generated statement, potentially allowing an attacker to read, modify, or delete other data accessible to the application's Snowflake role. Exploitation required an application to pass attacker controlled column names into this functionality. The fix is available in Snowflake Connector for Python version 4.8.1 and Snowflake Connector for Python (Universal Core) version 5.2.0. Users must upgrade manually.

Affected products and versions

Product / packageEcosystem / vendorVersionsFixed inSource
snowflake-connector-python pip 2.3.4 → <4.8.14.8.1 CVE.org
snowflake connector for python snowflake 2.3.4 → <4.8.14.8.1 CVE.org
snowflake-connector-python pip 5.0.0b1 → <5.2.05.2.0 CVE.org
snowflake connector for python (universal core) snowflake 5.0.0b1 → <5.2.05.2.0 CVE.org

References