CVE-2025-54941: Apache Airflow: Command injection in "example_dag_decorator"
An example dag exampledagdecorator 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 exampledagdecorator please review it and apply the changes implemented in Airflow 3.0.5 accordingly.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2025-54941?
CVE-2025-54941 is considered a high-severity vulnerability because it allows unauthorized code execution on worker nodes.
How do I fix CVE-2025-54941?
To fix CVE-2025-54941, ensure that you upgrade to Apache Airflow version 3.0.5 or later and disable example DAGs in production.
What is the impact of CVE-2025-54941 on Apache Airflow?
CVE-2025-54941 allows an attacker to redirect to a malicious server and execute arbitrary code, which compromises the security of the system.
In which versions of Apache Airflow does CVE-2025-54941 exist?
CVE-2025-54941 affects all versions of Apache Airflow from 3.0.0 up to, but not including, 3.0.5.
Is CVE-2025-54941 being actively exploited?
As of now, there are no public reports indicating that CVE-2025-54941 is being actively exploited in the wild.