CVE-2026-30898 Apache Airflow: Bad example of BashOperator shell injection via dag_run.conf

High 8.8 Published Updated

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.

PackageAffectedFixed in
airflow BitnamiAll versions3.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.

All Apache Airflow vulnerabilities

Sources

Also known as BIT-airflow-2026-30898, GHSA-6337-2587-f2jq.

Is CVE-2026-30898 in your software?

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

Check your SBOMs for free