CVE-2025-54941: Apache Airflow: Command injection in "example_dag_decorator"

Published Oct 29, 2025
·
Updated

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

3 affected componentsFixes available
Apache Airflow
pip/apache-airflow>=3.0.0<3.0.5
3.0.5
Apache Airflow>=3.0.0<3.0.5

Event History

Oct 30, 2025
CVE Published
via MITRE·09:45 AM
Data Sourced
via MITRE·09:45 AM
DescriptionWeakness
Data Sourced
via NVD·10:15 AM
DescriptionSeverityWeaknessAffected Software
Advisory Published
via GitHub·12:31 PM
Data Sourced
via GitHub·12:31 PM
DescriptionWeaknessAffected Software

Frequently Asked Questions

1

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.

2

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.

3

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.

4

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.

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203