VYPR
Critical severityNVD Advisory· Published Jun 24, 2025· Updated Jun 24, 2025

Apache Airflow Providers Snowflake: Potential SQL injection in CopyFromExternalStageToSnowflakeOperator

CVE-2025-50213

Description

Apache Airflow Providers Snowflake before 6.4.0 has a SQL injection vulnerability in CopyFromExternalStageToSnowflakeOperator due to unsanitized table/stage parameters.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Apache Airflow Providers Snowflake before 6.4.0 has a SQL injection vulnerability in CopyFromExternalStageToSnowflakeOperator due to unsanitized table/stage parameters.

Vulnerability

Overview

CVE-2025-50213 is a special element injection (SQL injection) vulnerability in the Apache Airflow Providers Snowflake package, affecting versions before 6.4.0. The flaw resides in the CopyFromExternalStageToSnowflakeOperator, where the table and stage parameters were not sanitized before being used in SQL queries. This allows an attacker to inject arbitrary SQL commands by supplying malicious input to these parameters [2].

Exploitation

Details

To exploit this vulnerability, an attacker must have the ability to define or influence the table or stage parameters of a DAG that uses the CopyFromExternalStageToSnowflakeOperator. This could be achieved through a compromised Airflow user account or by crafting a DAG that accepts external input. The fix, as shown in the commit, adds a validation function that rejects any parameter containing a semicolon (;), which is a common SQL injection delimiter [3]. The PyPA advisory confirms the injection vector and the need for input sanitization [4].

Impact

Successful exploitation could allow an attacker to execute arbitrary SQL statements against the Snowflake database, potentially leading to data exfiltration, modification, or deletion. The severity is high, as it compromises the confidentiality, integrity, and availability of the data managed by the affected Airflow instance.

Mitigation

The vulnerability is fixed in Apache Airflow Providers Snowflake version 6.4.0. Users are strongly recommended to upgrade immediately [2]. No workarounds are documented; upgrading is the only reliable mitigation. The fix introduces input validation that blocks semicolons in the affected parameters, preventing SQL injection [3].

AI Insight generated on May 19, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
apache-airflow-providers-snowflakePyPI
< 6.4.06.4.0

Affected products

8

Patches

2

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

6

News mentions

0

No linked articles in our index yet.