What’s Vulnerable › Vulnerabilities
CVE-2025-54941: Apache Airflow: Command injection in "example_dag_decorator"
- Severity: medium (CVSS 4.6 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.5% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-10-30 · updated 2026-10-08
- Weakness: CWE-78
Description
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 products
- Apache Airflow: from 3.0.0 before 3.0.5 — fixed in 3.0.5
How to fix
Upgrade to a fixed version: Apache Airflow 3.0.5. Check the vendor advisory for mitigations.
References
- https://lists.apache.org/thread/c6q6nofc6xl5bms039ks9b34v0v36df1
- http://www.openwall.com/lists/oss-security/2025/10/29/6
Get alerted when CVE-2025-54941 or the next vulnerability affects your stack