← All security advisories

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

Severity Low
Affects Apache Airflow
Weakness CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')
Published April 18, 2026
Record updated November 3, 2026
CVE record CVE-2026-30898 on cve.org

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.

Affected versions

ProductPackageVersions
Apache Airflow apache-airflow before 3.0.0
Apache Airflow apache-airflow-core from 3.0.0 before 3.2.0

Credits

  • Peyton Kennedy (p80n-sec) from Endor Labs (finder)
  • Kevin Yang (remediation developer)

References