← All security advisories

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

Severity Low
Affects Apache Airflow
Weakness CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Published October 30, 2025
Record updated November 3, 2026
CVE record CVE-2025-54941 on cve.org

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 versions

ProductPackageVersions
Apache Airflow apache-airflow-core from 3.0.0 before 3.0.5

Credits

  • Nacl (reporter)

References