CVE-2025-62402: Apache Airflow DAG Code Execution Vulnerability in API
Summary
CVE-2025-62402: Apache Airflow /api/v2/dagReports executes DAG Python in API. Affects apache-airflow versions >= 3.0.0, < 3.1.1. Fixed in 3.1.1. How to fix ↓
Also tracked for
- airflow · Bitnami
The same CVE-2025-62402 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
Apache Airflow is an open-source platform designed to programmatically author, schedule, and monitor workflows. It allows users to define workflows as Directed Acyclic Graphs (DAGs) using Python code. The platform is widely used for orchestrating complex data workflows and is known for its scalability and flexibility. However, it has been identified that certain API endpoints can execute DAG code, potentially leading to unauthorized access and execution of arbitrary code in the context of the API server.
Vulnerability Detail
The vulnerability arises from the API endpoint '/api/v2/dagReports', which allows users to execute DAG Python code directly on the API server. If the server is deployed in an environment where DAG files are accessible, an attacker could exploit this feature to execute arbitrary code. This could lead to unauthorized data access, data manipulation, or even complete control over the server, depending on the permissions granted to the API user. The vulnerability affects versions of Apache Airflow starting from 3.0.0 and is fixed in version 3.1.1.
How To Fix
Latest published version: 3.3.2 as of 22 Oct 2026
pip install --upgrade "apache-airflow==3.3.2"
Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.
If you need the minimum change
3.1.1
This is the first release that contains the fix.
pip install --upgrade "apache-airflow==3.1.1"
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
As a temporary workaround, consider restricting access to the API server or disabling the vulnerable endpoint until the software can be updated. Additionally, ensure that the environment where the API server is deployed does not expose DAG files to unauthorized users.
Conclusion
The CVE-2025-62402 vulnerability in Apache Airflow allows for potential code execution through the API, posing significant security risks. It is crucial for users to update to version 3.1.1 or later to mitigate these risks. Additionally, utilizing tools like Vulert can help monitor and manage vulnerabilities effectively.
See every vulnerability recorded for apache-airflow →
FAQ
The CVSS score of this vulnerability is 5.4, indicating a medium severity level.
Versions of Apache Airflow starting from 3.0.0 are affected by this vulnerability.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
Exploitation of this vulnerability could lead to unauthorized code execution, data breaches, or complete control over the API server.
Yes, Vulert provides real-time monitoring and alerts for open-source vulnerabilities in your software using just the Pipfile.lock.
References
Related vulnerabilities
Recent vulnerabilities recorded for apache-airflow.