---
id: CVE-2025-27018
aliases:
  - GHSA-hhm6-jjf4-6pm3
  - PYSEC-2026-1151
title: Apache Airflow MySQL Provider is Vulnerable to SQL Injection
summary: Apache Airflow MySQL Provider is Vulnerable to SQL Injection
severity: medium
cvss: 6.3
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L'
vendor: apache-airflow-providers-mysql
product: apache-airflow-providers-mysql
ecosystem: pip
affected:
  - apache-airflow-providers-mysql < 6.2.0
patched:
  - apache-airflow-providers-mysql 6.2.0
published: '2025-03-19'
updated: '2026-09-10'
sourceUpdated: '2026-09-10T03:49:48.431895339Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-hhm6-jjf4-6pm3'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2025-27018'
  - url: 'https://github.com/apache/airflow/pull/47254'
  - url: 'https://github.com/apache/airflow/pull/47255'
  - url: 'https://github.com/apache/airflow'
  - url: 'https://lists.apache.org/thread/m8ohgkwz4mq9njohf66sjwqjdy28gvzf'
  - url: 'http://www.openwall.com/lists/oss-security/2025/03/19/4'
tags:
  - osv
  - pip
epss: 0.00893
epssPercentile: 0.57766
ingestedAt: '2026-07-08T18:25:50.239Z'
---

## Overview

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 packages

- `apache-airflow-providers-mysql < 6.2.0`

## Remediation

Upgrade to a patched release:

- `apache-airflow-providers-mysql 6.2.0`
