Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2025-54941: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in Apache Software Foundation Apache Airflow

0
Medium
VulnerabilityCVE-2025-54941cvecve-2025-54941cwe-78
Published: Thu Oct 30 2025 (10/30/2025, 09:45:26 UTC)
Source: CVE Database V5
Vendor/Project: Apache Software Foundation
Product: Apache Airflow

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.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 02/27/2026, 05:35:24 UTC

Technical Analysis

CVE-2025-54941 is an OS command injection vulnerability classified under CWE-78 affecting Apache Airflow version 3.0.0. The vulnerability is located in the example DAG named `example_dag_decorator`, which contains a parameter that is not properly validated or sanitized. This flaw allows an authenticated user with access to the Airflow UI to manipulate the parameter to redirect the DAG execution flow to a malicious server. Consequently, this can lead to arbitrary code execution on the Airflow worker nodes, compromising the integrity and confidentiality of the system. However, exploitation is conditional: it requires that example DAGs are enabled in production (which is not the default setting) or that the vulnerable example DAG code has been copied and modified to build a similar DAG. The vulnerability has a CVSS v3.1 score of 4.6, reflecting a medium severity level with network attack vector, low attack complexity, privileges required, and user interaction needed. The impact primarily affects confidentiality and integrity, with no direct impact on availability. No public exploits have been reported to date. The Apache Software Foundation has addressed this issue in Airflow version 3.0.5, recommending users to review and update any usage of the `example_dag_decorator` accordingly.

Potential Impact

The vulnerability allows an authenticated user with UI access to execute arbitrary code on Airflow worker nodes, potentially leading to unauthorized access to sensitive data, manipulation of workflow executions, and lateral movement within the affected environment. Organizations running Airflow 3.0.0 with example DAGs enabled in production or using copied vulnerable DAG code are at risk. This can compromise the confidentiality and integrity of data processed by Airflow workflows. Although the attack complexity is low, exploitation requires user interaction and privileges, limiting the scope somewhat. The absence of known exploits reduces immediate risk, but the potential for damage in environments where Airflow orchestrates critical data pipelines or business processes is significant. Misuse could lead to data breaches, workflow sabotage, or further compromise of internal systems.

Mitigation Recommendations

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
apache
Date Reserved
2025-08-01T06:55:04.376Z
Cvss Version
null
State
PUBLISHED

Threat ID: 690335411ead54a02dedddcd

Added to database: 10/30/2025, 9:52:01 AM

Last enriched: 2/27/2026, 5:35:24 AM

Last updated: 3/26/2026, 11:11:11 AM

Views: 129

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses