Skip to main content

Apache Airflow Providers Snowflake CVE-2025-50213

| EUVDEUVD-2025-19239 CRITICAL
Failure to Sanitize Special Elements into a Different Plane (Special Element Injection) (CWE-75)
2025-06-24 security@apache.org GHSA-9r64-3wmc-x8m8
9.8
CVSS 3.1 · NVD
View

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2021 - Vulnerable and Outdated Components
ASVS 5.0
V1 - Encoding and Sanitization Failure to sanitize special elements
Impact

This vulnerability represents critical real-world risk despite lacking explicit KEV/EPSS confirmation in the provided data. The CVSS 9.8 score reflects: AV:N (network-accessible—Airflow DAGs can be triggered remotely), AC:L (low complexity—standard SQL injection), PR:N (no privileges required), UI:N (no user interaction), S:U/C:H/I:H/A:H (complete confidentiality, integrity, and availability impact). The attack surface is expansive because Airflow is widely deployed for ETL/data pipeline orchestration in cloud environments, and the CopyFromExternalStageToSnowflakeOperator is a commonly used component. Unlike CVSS-inflation issues, this combines high severity with operational reality: attackers with DAG/workflow access (or those exploiting misconfigured Airflow API endpoints) can inject SQL to exfiltrate data, modify warehouse configurations, or destroy tables. Organizations using Airflow <6.4.0 with Snowflake should treat this as immediate/critical priority.

Exploit ScenarioDerived

An attacker with network access to an unsecured Airflow API (or internal access to an organization's Airflow environment) constructs a malicious DAG or manually triggers a CopyFromExternalStageToSnowflakeOperator task with a crafted table parameter such as: table='my_table; DROP TABLE sensitive_data;--'. Because the operator concatenates this unsanitized input directly into the SQL COPY command sent to Snowflake (e.g., COPY INTO my_table; DROP TABLE sensitive_data;-- FROM ...), Snowflake executes both the intended COPY and the injected DROP statement. This could lead to data exfiltration (by redirecting the COPY to an attacker-controlled stage), data destruction, or warehouse reconfiguration. The low CVSS attack complexity and lack of authentication requirements mean this can be exploited by insiders or external attackers who gain any foothold in the Airflow environment.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Mar 15, 2026

Apache Airflow Providers Snowflake versions before 6.4.0 contain a Special Element Injection vulnerability (CWE-75) in the CopyFromExternalStageToSnowflakeOperator that fails to properly sanitize table and stage parameters, allowing unauthenticated attackers to execute arbitrary SQL injection attacks with complete system compromise (CVSS 9.8). This is a critical remote vulnerability requiring network access only, with no authentication or user interaction needed, making it a high-priority patch regardless of KEV/EPSS status.

RemediationAI

Upgrade to apache-airflow-providers-snowflake version 6.4.0 or later; command: pip install --upgrade apache-airflow-providers-snowflake>=6.4.0; priority: Immediate (within 24-48 hours) Workaround (if immediate patching unavailable): Restrict access to Airflow DAG/API endpoints; implement network segmentation to limit who can trigger CopyFromExternalStageToSnowflakeOperator tasks; audit existing DAGs for user-controlled table/stage parameters; priority: Temporary mitigation only Input Validation (code-level mitigation if patch cannot be applied): Validate table and stage parameter names against whitelists (e.g., alphanumeric + underscore only); avoid dynamic SQL construction without parameterized queries; priority: Secondary defense layer Post-Remediation: Review Airflow logs and Snowflake audit logs for suspicious COPY commands or SQL statements executed between deployment and patching; check for unauthorized schema/table modifications or data exports; priority: High

Affected VersionsENISA

Apache Airflow Providers Snowflake 0 <6.4.0

Affected Packages

pypi apache-airflow-providers-snowflake fix: 6.4.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability exists in Apache Airflow Providers Snowflake (CPE: pkg:pypi/apache-airflow-providers-snowflake), specifically in the CopyFromExternalStageToSnowflakeOperator class. The root cause is CWE-75 (Failure to Sanitize Special Elements into a Different Plane), which occurs when user-controlled input (table and stage parameters) is concatenated directly into SQL COPY commands without proper parameterization or escaping. Airflow's Snowflake provider constructs dynamic SQL statements for data pipeline operations, and the operator failed to implement input validation before passing these parameters to the Snowflake database connector. The fix involves adding parameterized query handling and special character sanitization to prevent the injection of SQL metacharacters that could alter query logic.

Know when Apache Airflow Providers Snowflake gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
Patch released
Mar 15, 2026 - 22:36 nvd
Patch available
CVE Published
Jun 24, 2025 - 08:15 nvd
CRITICAL 9.8

DescriptionCVE.org

Failure to Sanitize Special Elements into a Different Plane (Special Element Injection) vulnerability in Apache Airflow Providers Snowflake.

This issue affects Apache Airflow Providers Snowflake: before 6.4.0.

Sanitation of table and stage parameters were added in CopyFromExternalStageToSnowflakeOperator to prevent SQL injection Users are recommended to upgrade to version 6.4.0, which fixes the issue.

Executive ViewAI

Why It Matters

A critical SQL injection vulnerability exists in Apache Airflow's Snowflake provider that could allow attackers to execute unauthorized database commands and access sensitive data. Organizations using Airflow with Snowflake integrations must prioritize immediate patching to prevent potential data breaches and operational compromise.

Business Impact: High
Compensating Controls

Apply vendor patch. If immediate patching is not feasible: (1) Restrict network access to Airflow systems using firewall rules, (2) Disable CopyFromExternalStageToSnowflakeOperator if not actively used, (3) Implement enhanced monitoring and alerting on Snowflake SQL execution for anomalous queries, (4) Review and restrict IAM permissions for Snowflake service accounts used by Airflow.

Threat Intelligence Overview

EPSS Score
0.2%
Top 62% exploitable
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

49
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +49
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy