Vulnerability · Published Oct 30, 2025 · Assigned by apache

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

Medium 4.6

In plain English

A medium-severity OS command injection in Apache Airflow from Apache Software Foundation. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 42% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)4.6Medium
Exploit odds (30 days)0.5%top 57.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIapache-airflow3.0.5GHSA-v3c9-j6h9-66v4
PyPIapache-airflow3.0.5PYSEC-2026-1135

Affected products (as reported)

VendorProductVersions
Apache Software Foundation Apache Airflow 3.0.0 – before 3.0.5

Weakness: CWE-78 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N

References