CVE-2025-54941
Apache Airflow vulnerability analysis and mitigation

Overview

CVE-2025-54941 affects Apache Airflow versions >3.0.0 and <3.0.5, specifically involving the example_dag_decorator component. The vulnerability was discovered and disclosed on October 29, 2025, with a low severity rating. The issue affects Apache Airflow installations where example DAGs are enabled in production environments (which is not the default configuration) or where the example DAG code has been copied to create similar custom DAGs (Apache Mailing List, OSS Security).

Technical details

The vulnerability stems from a non-validated parameter in the example_dag_decorator that could allow UI users to redirect the example to a malicious server and execute code on the worker. The issue has been assigned a CVSS v3.1 base score of 4.6 (Medium) with the vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N. It is classified as CWE-78 (Improper Neutralization of Special Elements used in an OS Command Injection) (NVD).

Impact

The vulnerability could allow attackers to execute code on the worker node through the redirection of the example DAG to a malicious server. However, the impact is limited as it requires specific conditions: either example DAGs must be enabled in production (which is not the default setting) or the vulnerable example code must have been copied into a custom DAG (OSS Security).

Mitigation and workarounds

The vulnerability has been fixed in Apache Airflow version 3.0.5. Users are advised to upgrade to this version or later. For those who have used the example_dag_decorator in their custom implementations, it is recommended to review and apply the changes implemented in Airflow 3.0.5 accordingly (NVD).

Additional resources


SourceThis report was generated using AI

Related Apache Airflow vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2024-45784HIGH7.5
  • Apache AirflowApache Airflow
  • apache-airflow
NoYesNov 15, 2024
CVE-2025-54831MEDIUM6.5
  • Apache AirflowApache Airflow
  • airflow
NoYesSep 26, 2025
CVE-2025-62402MEDIUM5.4
  • Apache AirflowApache Airflow
  • airflow-3
NoYesOct 30, 2025
CVE-2025-62503MEDIUM4.6
  • Apache AirflowApache Airflow
  • airflow-3
NoYesOct 30, 2025
CVE-2025-54941MEDIUM4.6
  • Apache AirflowApache Airflow
  • airflow
NoYesOct 30, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management