CVE-2026-123859

Description

A flaw was found in the Snowflake Connector for Python. When identifier escaping is disabled in a non-default configuration, the data-loading feature does not properly escape column names before incorporating them into generated database commands. An attacker who can control column names processed by an application could exploit this SQL injection vulnerability to execute unauthorized Structured Query Language (SQL) statements. This could allow the attacker to read, alter, or delete data accessible under the application's database permissions.

Statement

Red Hat Product Security rates this vulnerability as Important rather than Critical because, while it can result in arbitrary SQL command execution under the active database session, exploitation requires non-default configuration choices and specific application behavior. In typical deployments, identifier sanitization is enabled by default, protecting ingestion routines from unintended command concatenation. Exposure is therefore restricted to environments where administrators intentionally turned off identifier protection and the consuming application processes unvalidated, user-controlled column definitions.

Mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

--- CME Mitigation Guidance (2026-11-06) ---
Disclaimer: The following mitigation solutions are provided as a courtesy, pending the application of an official patch. This content was generated utilizing AI tools in conjunction with data from https://cmetaxonomy.org. Customers are advised to independently evaluate and test these temporary mitigations within their own infrastructure.

The highest-value action is to validate DataFrame column names against an allowlist of permitted SQL identifiers and avoid disabling identifier escaping in write_pandas calls: upgrade to Snowflake Connector for Python 4.8.1 / Universal Core 5.2.0 (or the fixed Rhoai/Odh Feature Server Rhel builds), which reject column names that are not valid unquoted identifiers when quote_identifiers=False is configured, closing crafted DataFrame column names. Until patched, this is a concern on Applications running write_pandas with quote_identifiers=False processing untrusted column names, so Ensure identifier escaping remains enabled by avoiding quote_identifiers=False, and restrict user control over DataFrame column definitions passed into write_pandas. As a compensating measure, Restrict the Snowflake database session's role and privileges to only necessary operations to bound the impact of injected SQL statements. These controls limit blast radius and contain exploitation, but they do not fix the underlying SQL injection defect — apply the upstream patch to fully remediate.

Highest-impact CME: CME-1315 Allowlist-Preferred Input Validation (Deny-by-Default Filtering) (high)

Common Vulnerability Scoring System (CVSS) Score Details

Info alert:Important note

CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).

The following CVSS metrics and score provided are preliminary and subject to review.

CVSS v3 Score Breakdown

Red HatNVDcve.org
Base Score8.1N/A8.1
Attack VectorNetworkN/ANetwork
Attack ComplexityHighN/AHigh
Privileges RequiredNoneN/ANone
User InteractionNoneN/ANone
ScopeUnchangedN/AUnchanged
ConfidentialityHighN/AHigh
Integrity ImpactHighN/AHigh
Availability ImpactHighN/AHigh

Vector

Red Hat: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

cve.org: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Understanding the Weakness (CWE)

Confidentiality,Integrity,Availability

Technical Impact: Execute Unauthorized Code or Commands

Adversaries could execute system commands, typically by changing the SQL statement to redirect output to a file that can then be executed.

Confidentiality

Technical Impact: Read Application Data

Since SQL databases generally hold sensitive data, loss of confidentiality is a frequent problem with SQL injection vulnerabilities.

Authentication

Technical Impact: Gain Privileges or Assume Identity; Bypass Protection Mechanism

If poor SQL commands are used to check user names and passwords or perform other kinds of authentication, it may be possible to connect to the product as another user with no previous knowledge of the password.

Access Control

Technical Impact: Bypass Protection Mechanism

If authorization information is held in a SQL database, it may be possible to change this information through the successful exploitation of a SQL injection vulnerability.

Integrity

Technical Impact: Modify Application Data

Just as it may be possible to read sensitive information, it is also possible to modify or even delete this information with a SQL injection attack.

Frequently Asked Questions

Want to get errata notifications? Sign up here.