CVE-2025-62402 Apache Airflow: Airflow 3 API: /api/v2/dagReports executes DAG Python in API

Medium 5.4 Published Updated

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.

PackageAffectedFixed in
apache-airflow PyPIFrom 3.0.03.1.1
apache-airflow PyPIFrom 3.0.03.1.1
apache-airflow PyPIFrom 3.0.03.1.1
airflow BitnamiFrom 3.0.03.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.

All Apache Airflow vulnerabilities

Sources

Also known as BIT-airflow-2025-62402, GHSA-273c-4g26-4jpm, MINI-7375-px9p-8x3c, PYSEC-2026-1129.

Is CVE-2025-62402 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free