PyPA Advisory Database
PYSEC-2026-1135
Apache Airflow has a command injection vulnerability in "example_dag_decorator"
Details
An example dag example_dag_decorator had non-validated parameter that allowed the UI user to redirect the example to a malicious server and execute code on worker. This however required that the example dags are enabled in production (not default) or the example dag code copied to build your own similar dag. If you used the example_dag_decorator please review it and apply the changes implemented in Airflow 3.0.5 accordingly.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| PyPI | apache-airflow | From 3.0.0 before 3.0.5 (fixed in 3.0.5) |