CVE-2025-62402 Apache Airflow: Airflow 3 API: /api/v2/dagReports executes DAG Python in API
Attackers can execute arbitrary Python code via the DAG reports API if the server has access to DAG files.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-62402?
CVE-2025-62402 is a medium-severity code injection vulnerability in Apache Airflow, published on 30 Oct 2025. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
API users via `/api/v2/dagReports` could perform Dag code execution in the context of the api-server if the api-server was deployed in the environment where Dag files were available.
Weakness: CWE-250
Which versions are affected by CVE-2025-62402?
4 open source packages ship an affected version, including apache-airflow and airflow. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
apache-airflow PyPI | From 3.0.0 | 3.1.1 |
apache-airflow PyPI | From 3.0.0 | 3.1.1 |
apache-airflow PyPI | From 3.0.0 | 3.1.1 |
airflow Bitnami | From 3.0.0 | 3.1.1 |
Products include Apache Airflow.
How do I fix CVE-2025-62402?
Upgrade apache-airflow to 3.1.1 or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2025-62402 being exploited?
There is no known exploitation of CVE-2025-62402 in the wild and no public exploit code.
Other vulnerabilities in Apache Airflow
- CVE-2020-13927 Apache Airflow's Experimental API Authentication Bypass
- CVE-2020-11978 Apache Airflow Command Injection
- CVE-2026-33264 Apache Airflow: DAG author RCE on webserver via unrestricted import_string() in BaseSerialization.deserialize()
- CVE-2023-25754 Apache Airflow: Privilege escalation using airflow logs
- CVE-2023-22884 Apache Airflow, Apache Airflow MySQL Provider: Arbitrary file read via MySQL provider in Apache Airflow
Sources
Also known as BIT-airflow-2025-62402, GHSA-273c-4g26-4jpm, MINI-7375-px9p-8x3c, PYSEC-2026-1129.