MEDIUM5.2
PYSEC-2026-1135
Apache Airflow has a command injection vulnerability in "example_dag_decorator"
Quick fix
PYSEC-2026-1135 — apache-airflow: upgrade to the fixed version with the command below.
pip install --upgrade 'apache-airflow>=3.0.5'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.
Are you affected?
Enter the version of the package you're using.
Affected packages
PyPI/apache-airflow
Introduced in:
3.0.0Fixed in: 3.0.5Fix
pip install --upgrade 'apache-airflow>=3.0.5'References
- https://nvd.nist.gov/vuln/detail/CVE-2025-54941[ADVISORY]
- https://github.com/apache/airflow[PACKAGE]
- https://lists.apache.org/thread/c6q6nofc6xl5bms039ks9b34v0v36df1[WEB]
- http://www.openwall.com/lists/oss-security/2025/10/29/6[WEB]
- https://pypi.org/project/apache-airflow[PACKAGE]
- https://github.com/advisories/GHSA-v3c9-j6h9-66v4[ADVISORY]