Skip to content

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

MediumCVSS 4.6 EPSS 0.50%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total

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.

Upgrade path

3 packages: 3 fixed.

PackageAffectedFixed inStatus
apache airflow >= 3.0.0, < 3.0.5 3.0.5 Fixed
pypi apache-airflow(PyPI) = 3.0.0; = 3.0.1; = 3.0.1rc1; = 3.0.2 +16 more 3.0.5 Fixed
pypi apache-airflow-core(PyPI) >= 3.0.0, < 3.0.5 3.0.5 Fixed

Affected products

ProductAffected versionsFixed in
pypi apache-airflow(PyPI) >= 3.0.0, < 3.0.5 3.0.5
pypi apache-airflow(PyPI) = 3.0.0 No fix listed
pypi apache-airflow(PyPI) = 3.0.1 No fix listed
pypi apache-airflow(PyPI) = 3.0.1rc1 No fix listed
pypi apache-airflow(PyPI) = 3.0.2 No fix listed
pypi apache-airflow(PyPI) = 3.0.2rc1 No fix listed
pypi apache-airflow(PyPI) = 3.0.2rc2 No fix listed
pypi apache-airflow(PyPI) = 3.0.3 No fix listed
pypi apache-airflow(PyPI) = 3.0.3rc1 No fix listed
pypi apache-airflow(PyPI) = 3.0.3rc2 No fix listed
pypi apache-airflow(PyPI) = 3.0.3rc3 No fix listed
pypi apache-airflow(PyPI) = 3.0.3rc4 No fix listed
pypi apache-airflow(PyPI) = 3.0.3rc5 No fix listed
pypi apache-airflow(PyPI) = 3.0.3rc6 No fix listed
pypi apache-airflow(PyPI) = 3.0.4 No fix listed
pypi apache-airflow(PyPI) = 3.0.4rc1 No fix listed
pypi apache-airflow(PyPI) = 3.0.4rc2 No fix listed
pypi apache-airflow(PyPI) = 3.0.5rc1 No fix listed
pypi apache-airflow(PyPI) = 3.0.5rc2 No fix listed
pypi apache-airflow(PyPI) = 3.0.5rc3 No fix listed
pypi apache-airflow-core(PyPI) >= 3.0.0, < 3.0.5 3.0.5
apache airflow >= 3.0.0, < 3.0.5 3.0.5

References