CVE-2025-62402: Apache Airflow DAG Code Execution Vulnerability in API

apache-airflow Updated 07 Jul 2026

Summary

07/07/2026
Yes i
Moderate
5.4

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

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.

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

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 →

Share this vulnerability

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.

Related vulnerabilities

Recent vulnerabilities recorded for apache-airflow.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback