Skip to main content
CVE-2025-54941VulnerabilityPublished Updated

CVE-2025-54941: Apache Airflow · OS Command Injection

Affects Apache AirflowSource CVE Database V5

0

Not known to be exploited · CVSS 4.6 Medium.

Data as of 26 Oct 2026, 06:26 UTC

CVSS 3.1 base score
4.6Medium
How severe the flaw is on the 0–10 CVSS scale.
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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 30 Oct 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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 2026-10-26.

What to do

Affected software

ProductAffectedFixed in
PyPIapache-airflowpkg:pypi/apache-airflowOther threatsAffected
  • =3.0.0
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.

References

Community reviews

Loading reviews…