CVE-2025-54941: Apache Airflow · OS Command Injection
Affects Apache AirflowSource CVE Database V5
Not known to be exploited · CVSS 4.6 Medium.
Data as of 26 Oct 2026, 17:16 UTC
- EPSS
- 0.4% chance of exploitation in 30 days – higher than 41% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 30 Oct 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
PyPIapache-airflowpkg:pypi/apache-airflowOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
To mitigate this vulnerability, organizations should immediately upgrade Apache Airflow to version 3.0.5 or later, where the issue is fixed. Review all DAGs derived from or similar to `example_dag_decorator` for unsafe parameter handling and apply the recommended code changes from the official Airflow release notes. Disable example DAGs in production environments if they are enabled, as they are not intended for production use and pose security risks. Implement strict access controls on the Airflow UI to limit authenticated user privileges, minimizing the risk of exploitation. Additionally, monitor Airflow worker nodes for unusual activity or unauthorized command execution. Employ network segmentation to restrict Airflow worker communications to trusted servers only. Finally, conduct regular security audits and code reviews of custom DAGs to ensure no similar injection vulnerabilities exist.
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.