CVE-2025-27018 Apache Airflow MySQL Provider: SQL injection in MySQL provider core function

Medium 6.3 Published Updated

Attackers can inject SQL via table parameters in DAGs, leading to data corruption or modification in Apache Airflow MySQL Provider.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-27018?

CVE-2025-27018 is a medium-severity SQL injection vulnerability in Apache Airflow MySQL Provider, published on 19 Mar 2025. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') vulnerability in Apache Airflow MySQL Provider.

When user triggered a DAG with dump_sql or load_sql functions they could pass a table parameter from a UI, that could cause SQL injection by running SQL that was not intended. It could lead to data corruption, modification and others. This issue affects Apache Airflow MySQL Provider: before 6.2.0.

Users are recommended to upgrade to version 6.2.0, which fixes the issue.

Weakness: CWE-89

Which versions are affected by CVE-2025-27018?

3 open source packages ship an affected version, including apache-airflow-providers-mysql. It affects 1 product.

PackageAffectedFixed in
apache-airflow-providers-mysql PyPIAll versions6.2.0
apache-airflow-providers-mysql PyPIAll versions6.2.0
apache-airflow-providers-mysql PyPIAll versions6.2.0

Products include Apache Apache-Airflow-Providers-Mysql.

How do I fix CVE-2025-27018?

Upgrade apache-airflow-providers-mysql to 6.2.0 or later.

Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.

Is CVE-2025-27018 being exploited?

There is no known exploitation of CVE-2025-27018 in the wild and no public exploit code.

Sources

Also known as ECHO-73be-25d4-4d85, GHSA-hhm6-jjf4-6pm3, PYSEC-2026-1151.

Is CVE-2025-27018 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free