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

- Severity: Medium 4.6 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.61%, higher than 50% of CVEs (2026-12-01)
- Published: 2025-10-30T09:45:26.712Z
- Modified: 2026-11-03T07:17:29.420Z
- Also known as: GHSA-v3c9-j6h9-66v4, BIT-AIRFLOW-2025-54941, PYSEC-2026-1135
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: apache

## 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.

(As written by CVE List.)

## Affected

- apache-airflow-core: from 3.0.0 before 3.0.5
- apache-airflow (PyPI): from 3.0.0 before 3.0.5
- apache airflow: from 3.0.0 before 3.0.5
- airflow (Bitnami): from 3.0.0 before 3.0.5

## Every score

- CISA-ADP: CVSS:3.1 4.6 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N`
- GitHub: CVSS:4.0 Medium `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`
- NVD: CVSS:3.1 4.6 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N`
- PyPA Advisory Database: CVSS:4.0 `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`
- Bitnami Vulnerability Database: rating Medium

## References

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

## Sources

- CVE List: [CVE-2025-54941](https://www.cve.org/CVERecord?id=CVE-2025-54941), CVE Terms of Use, modified 2026-11-03
- GitHub Advisory Database: [GHSA-v3c9-j6h9-66v4](https://github.com/advisories/GHSA-v3c9-j6h9-66v4), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2025-54941](https://nvd.nist.gov/vuln/detail/CVE-2025-54941), Public domain, modified 2026-11-03
- PyPA Advisory Database: [PYSEC-2026-1135](https://osv.dev/vulnerability/PYSEC-2026-1135), CC-BY-4.0, modified 2026-07-07
- Bitnami Vulnerability Database: [BIT-AIRFLOW-2025-54941](https://osv.dev/vulnerability/BIT-AIRFLOW-2025-54941), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2025-54941 · Whole record: https://cve.day/CVE-2025-54941.json · Rebuilt by cve.day 2026-11-25T22:59:07.041Z
