CVE-2026-30898 Apache Airflow: Bad example of BashOperator shell injection via dag_run.conf
Users who copied a flawed documentation example for BashOperator may allow attackers to execute arbitrary code on workers via unsanitized DAG run configurations.
- 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-2026-30898?
CVE-2026-30898 is a high-severity command injection vulnerability in Apache Airflow, published on 18 Apr 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
An example of BashOperator in Airflow documentation suggested a way of passing dag_run.conf in the way that could cause unsanitized user input to be used to escalate privileges of UI user to allow execute code on worker. Users should review if any of their own DAGs have adopted this incorrect advice.
Weakness: CWE-77
Which versions are affected by CVE-2026-30898?
1 open source package ship an affected version, including airflow. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
airflow Bitnami | All versions | 3.2.0 |
Products include Apache Airflow.
How do I fix CVE-2026-30898?
Upgrade airflow to 3.2.0 or later.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2026-30898 being exploited?
There is no known exploitation of CVE-2026-30898 in the wild and no public exploit code.
Other vulnerabilities in Apache Airflow
- CVE-2020-13927 Apache Airflow's Experimental API Authentication Bypass
- CVE-2020-11978 Apache Airflow Command Injection
- CVE-2026-33264 Apache Airflow: DAG author RCE on webserver via unrestricted import_string() in BaseSerialization.deserialize()
- CVE-2023-25754 Apache Airflow: Privilege escalation using airflow logs
- CVE-2023-22884 Apache Airflow, Apache Airflow MySQL Provider: Arbitrary file read via MySQL provider in Apache Airflow
Sources
Also known as BIT-airflow-2026-30898, GHSA-6337-2587-f2jq.