Vulnerabilities in pkg:pypi/apache-airflow-providers-snowflake

PACKAGE
Advisory Identifier: GHSA-9r64-3wmc-x8m8
Advisory Summary

CVE-2025-50213 is a CRITICAL (CVSS 9.8) apache airflow providers snowflake package vulnerability (CWE-75: Failure to Sanitize Special Elements into a Different Plane (Special Element Injection)) affecting Apache airflow providers snowflake libraries in the PyPI ecosystem. The issue involves apache airflow providers snowflake package allows for special element injection via copyfromexternalstagetosnowflakeoperator. Remediation is available by upgrading affected packages to version 6.4.0.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/apache-airflow-providers-snowflake

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:pypi/apache-airflow-providers-snowflake. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-9r64-3wmc-x8m8 CVE-2025-50213 CRITICAL Apache Airflow Providers Snowflake package allows for Special Element Injection via CopyFromExternalStageToSnowflakeOperator

CVE-2025-50213 at a Glance

CVE Identifier CVE-2025-50213
GHSA Identifier GHSA-9r64-3wmc-x8m8
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-75: Failure to Sanitize Special Elements into a Different Plane (Special Element Injection)
Affected Product Apache airflow providers snowflake
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 9.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2025-50213

To remediate this vulnerability, upgrade all affected Apache airflow providers snowflake dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

apache-airflow-providers-snowflake fixed: 6.4.0
pip install apache-airflow-providers-snowflake>=6.4.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show apache-airflow-providers-snowflake

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2025-50213, inspect your installed packages using pip:

pip show apache-airflow-providers-snowflake

Analyze the terminal output to locate any version of Apache airflow providers snowflake in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.4.0), your application is affected.

Note: The pip show apache-airflow-providers-snowflake command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-75: Failure to Sanitize Special Elements into a Different Plane (Special Element Injection), where the product does not adequately filter user-controlled input for special elements with control implications. In Apache airflow providers snowflake, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

CVE-2025-50213 Affected Apache airflow providers snowflake Versions

1 component(s)
Fixed Versions:
6.4.0
Product / Package Ecosystem Affected Versions Fixed Version
apache-airflow-providers-snowflake
PyPI
< 6.4.0
6.4.0

References

Frequently Asked Questions

What is CVE-2025-50213?
CVE-2025-50213 is a security vulnerability in Apache airflow providers snowflake involving Apache Airflow Providers Snowflake package allows for Special Element Injection via CopyFromExternalStageToSnowflakeOperator under CWE-75: Failure to Sanitize Special Elements into a Different Plane (Special Element Injection).
Which Apache airflow providers snowflake versions are affected?
Affected versions include releases prior to 6.4.0 across affected packages: apache-airflow-providers-snowflake.
What version fixes CVE-2025-50213?
Upgrading to 6.4.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is apache-airflow-providers-snowflake affected?
Yes, apache-airflow-providers-snowflake is affected in releases prior to 6.4.0. Upgrade your dependency to 6.4.0 or later.
What is the CVSS score of CVE-2025-50213?
CVE-2025-50213 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2025-50213?
CVE-2025-50213 is classified under CWE-75: Failure to Sanitize Special Elements into a Different Plane (Special Element Injection) (The product does not adequately filter user-controlled input for special elements with control implications.).
How can I check PyPI dependencies for CVE-2025-50213?
Run the dependency tree command: 'pip show apache-airflow-providers-snowflake'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-9r64-3wmc-x8m8",
  "modified" : "2025-06-27T21:15:56Z",
  "published" : "2025-06-26T21:31:04Z",
  "aliases" : [ "CVE-2025-50213" ],
  "summary" : "Apache Airflow Providers Snowflake package allows for Special Element Injection via CopyFromExternalStageToSnowflakeOperator",
  "details" : "Failure to Sanitize Special Elements into a Different Plane (Special Element Injection) vulnerability in Apache Airflow Providers Snowflake.\n\nThis issue affects Apache Airflow Providers Snowflake: before 6.4.0.\n\nSanitation of table and stage parameters were added in CopyFromExternalStageToSnowflakeOperator to prevent SQL injection\nUsers are recommended to upgrade to version 6.4.0, which fixes the issue.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "apache-airflow-providers-snowflake"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "6.4.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-50213"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/airflow/pull/51734"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/airflow/pull/51734/commits/bcf19916738e4a7065a3911814ba1fa32d6fd669"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/airflow"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/apache-airflow-providers-snowflake/PYSEC-2025-51.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread/2kqfmyt2pghg5f6797g8hzvq331v8qx3"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-75" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-06-27T21:15:56Z",
    "nvd_published_at" : "2025-06-24T08:15:24Z"
  }
}