CVE-2025-54550 Apache Airflow: RCE by race condition in example_xcom dag

High 8.1 Published Updated

An attacker with XCom modification access can execute arbitrary code on workers if they use a specific unsafe example DAG pattern.

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-54550?

CVE-2025-54550 is a high-severity code injection vulnerability in Apache Airflow, published on 15 Apr 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

The example example_xcom that was included in airflow documentation implemented unsafe pattern of reading value from xcom in the way that could be exploited to allow UI user who had access to modify XComs to perform arbitrary execution of code on the worker. Since the UI users are already highly trusted, this is a Low severity vulnerability.

It does not affect Airflow release - example_dags are not supposed to be enabled in production environment, however users following the example could replicate the bad pattern. Documentation of Airflow 3.2.0 contains version of the example with improved resiliance for that case.

Users who followed that pattern are advised to adjust their implementations accordingly.

Weakness: CWE-94

Which versions are affected by CVE-2025-54550?

4 open source packages ship an affected version, including apache-airflow and airflow. It affects 1 product.

PackageAffectedFixed in
apache-airflow PyPIAll versions3.2.0
apache-airflow PyPIAll versions3.2.0
apache-airflow PyPIAll versions3.2.0
airflow BitnamiAll versions3.2.0

Products include Apache Airflow.

How do I fix CVE-2025-54550?

Upgrade apache-airflow to 3.2.0 or later.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2025-54550 being exploited?

There is no known exploitation of CVE-2025-54550 in the wild and no public exploit code.

All Apache Airflow vulnerabilities

Sources

Also known as BIT-airflow-2025-54550, ECHO-968f-a05c-4a8b, GHSA-q2hg-643c-gw8h, MINI-8chf-v58v-vmm7, MINI-pg3r-qfr6-3c2x, PYSEC-2026-2353.

Is CVE-2025-54550 in your software?

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

Check your SBOMs for free