Apache Airflow MySQL Provider is Vulnerable to SQL Injection
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.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | apache-airflow-providers-mysql | < 6.2.0 | 6.2.0 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-27018
- https://github.com/apache/airflow/pull/47254
- https://github.com/apache/airflow/pull/47255
- https://github.com/apache/airflow
- https://lists.apache.org/thread/m8ohgkwz4mq9njohf66sjwqjdy28gvzf
- http://www.openwall.com/lists/oss-security/2025/03/19/4
- https://pypi.org/project/apache-airflow-providers-mysql
- https://github.com/advisories/GHSA-hhm6-jjf4-6pm3
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L- Weakness (CWE)
CWE-89- Platform
- Python (PyPI)
- Package
apache-airflow-providers-mysql- Disclosed
- 19.03.2025
- Updated
- 11.10.2026 15:17
Sources and licenses
OSV / GitHub Advisory Database - PYSEC-2026-1151 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-hhm6-jjf4-6pm3 - CC BY 4.0
Vulnerability history: apache-airflow-providers-mysql
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 2
- First → latest
- 01.2023 03.2025
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- Critical 1
- Medium 1
Disclosures per year
- 2023: 1
- 2024: 0
- 2025: 1
- 2026: 0
-
Apache Airflow MySQL Provider is Vulnerable to SQL Injection this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.