# CVE-2025-54941: Apache Airflow: Command injection in "example\_dag\_decorator"

- Priority: **Routine**
- Reason: Not severe (CVSS 4.6, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-10-30 · Modified: 2026-11-03
- Aliases: GHSA-v3c9-j6h9-66v4, BIT-airflow-2025-54941, PYSEC-2026-1135
- Record: https://cvemate.com/vulnerability/CVE-2025-54941 · JSON: https://cvemate.com/vulnerability/CVE-2025-54941/json

## Description

```text
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.
```

## Signals

- CVSS: 4.6 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N
- EPSS: 0.611%, percentile 50.744%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- apache software foundation apache airflow: ≥ 3.0.0, \< 3.0.5
- apache airflow: ≥ 3.0.0, \< 3.0.5
- PyPI apache-airflow (PyPI): ≥ 3.0.0, \< 3.0.5

## References

- <https://lists.apache.org/thread/c6q6nofc6xl5bms039ks9b34v0v36df1>
- <http://www.openwall.com/lists/oss-security/2025/10/29/6>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-54941>
- <https://github.com/apache/airflow>
- <https://pypi.org/project/apache-airflow>
- <https://github.com/advisories/GHSA-v3c9-j6h9-66v4>

---

Data as of 2026-12-05T08:24:07.433Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
