GitHub Advisoryadvisory · PyPI

GHSA-v3c9-j6h9-66v4 Apache Airflow has a command injection vulnerability in "example_dag_decorator"

MEDIUM Published 2025-10-30 Modified 2025-11-05 Official page ↗
Aliases
CVE-2025-54941
Ecosystem
PyPI
Packages
apache-airflow
Severity
Moderate
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U
Weaknesses
CWE-78
Reviewed
2025-10-30

Affected packages

• PyPI apache-airflow: >= 3.0.0, < 3.0.5 → fixed in 3.0.5

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.

Related

Alias · CVE (1)

  • CVE-2025-54941 An example dag `example_dag_decorator` had non-validated parameter that allowed the UI user to redirect the example to a malicious server… vulnerability

Weakness · CWE (1)

  • CWE-78 Improper Neutralization of Special Elements used in an OS Command weakness

References