{"id":"CVE-2025-54941","published":"2025-10-30T09:45:26Z","modified":"2026-11-03T06:50:40Z","title":"Apache Airflow: Command injection in \"example_dag_decorator\"","vendor":"Apache","product":"Apache Airflow","tier":"tail","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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.6,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00503,"percentile":0.43949,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"references":[{"url":"https://lists.apache.org/thread/c6q6nofc6xl5bms039ks9b34v0v36df1","tags":["vendor-advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2025/10/29/6","tags":[]}],"priority":{"score":12.0,"factors":[{"name":"EPSS percentile","points":8.79},{"name":"CVSS severity","points":3.22}]},"vendorSlug":"apache","affectedVersions":[{"vendor":"Apache Software Foundation","product":"Apache Airflow","versions":[">= 3.0.0, < 3.0.5"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-10-31T03:55:26.812707Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"apache-airflow","vulnerableRanges":[">=3.0.0, <3.0.5"],"patched":["3.0.5"],"from":["GHSA-v3c9-j6h9-66v4","PYSEC-2026-1135"],"provenance":"source"}],"summary":{"text":"The flaw is an OS command injection in the example DAG example_dag_decorator within Apache Airflow, where a parameter was not validated. An attacker with a UI user account, who needs to persuade a user to interact, can redirect the example to a malicious server and execute code on a worker, but only if the example DAGs are enabled in production or the example code was copied into a custom DAG.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:57:06Z"},"euvd":{"id":"EUVD-2025-36993","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-apache-airflow-cve-2025-54941","children":[{"from":"CVE-2025-54941","to":"CVE-2026-101031","relation":"incomplete-fix","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"incomplete-fix","quote":"This is an incomplete fix for CVE-2025-54941; users who upgraded for CVE-2025-54941 should upgrade again.","from":"CVE.org","in":"CVE-2026-101031"},{"kind":"similar","provenance":"machine","score":0.45,"basis":"same product + CWE + description similarity"}]}],"packageHistory":[{"cve":"CVE-2024-56373","published":"2026-02-24","fixed":"2.11.1","kev":false},{"cve":"CVE-2025-27555","published":"2026-02-24","fixed":"2.11.1","kev":false},{"cve":"CVE-2025-54831","published":"2025-09-26","fixed":"3.0.4","kev":false,"link":{"from":"CVE-2025-54831","to":"CVE-2025-54941","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:apache-airflow","fromFixed":"3.0.4","toFixed":"3.0.5","daysApart":34}]}},{"cve":"CVE-2025-54941","published":"2025-10-30","fixed":"3.0.5","kev":false},{"cve":"CVE-2023-25693","published":"2023-02-24","fixed":"3.1.1","kev":false},{"cve":"CVE-2025-62402","published":"2025-10-30","fixed":"3.1.1","kev":false,"link":{"from":"CVE-2025-54941","to":"CVE-2025-62402","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:apache-airflow","fromFixed":"3.0.5","toFixed":"3.1.1","daysApart":0}]}},{"cve":"CVE-2025-62503","published":"2025-10-30","fixed":"3.1.1","kev":false,"link":{"from":"CVE-2025-54941","to":"CVE-2025-62503","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:apache-airflow","fromFixed":"3.0.5","toFixed":"3.1.1","daysApart":0}]}}],"package":"PyPI:apache-airflow"}}