Airflow example_dag_decorator XSS Redirect & RCE vuln (fixed v3.0.5)
CVE-2025-54941 Published on October 30, 2025

Apache Airflow: Command injection in "example_dag_decorator"
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.

Vendor Advisory NVD

Vulnerability Analysis

CVE-2025-54941 can be exploited with network access, requires user interaction and a small amount of user privileges. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to have a small impact on confidentiality and integrity, and no impact on availability.

Attack Vector:
NETWORK
Attack Complexity:
LOW
Privileges Required:
LOW
User Interaction:
REQUIRED
Scope:
UNCHANGED
Confidentiality Impact:
LOW
Integrity Impact:
LOW
Availability Impact:
NONE

Weakness Type

What is a Shell injection Vulnerability?

The software constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.

CVE-2025-54941 has been classified to as a Shell injection vulnerability or weakness.


Products Associated with CVE-2025-54941

You can be notified by email with stack.watch whenever vulnerabilities like CVE-2025-54941 are published in Apache AirFlow:

 

Affected Versions

Apache Software Foundation Apache Airflow:

Exploit Probability

EPSS
0.10%
Percentile
28.11%

EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.