CVE-2025-54550: Apache Airflow: RCE by race condition in example_xcom dag
| Severity | Low |
|---|---|
| Affects | Apache Airflow |
| Weakness | CWE-94: Improper Control of Generation of Code ('Code Injection') |
| Published | April 15, 2026 |
| Record updated | November 3, 2026 |
| CVE record | CVE-2025-54550 on cve.org |
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.
Affected versions
| Product | Package | Versions |
|---|---|---|
| Apache Airflow | apache-airflow |
before 3.0.0 |
| Apache Airflow | apache-airflow-core |
from 3.0.0 before 3.2.0 |
Credits
- Vincent55 Yang (finder)
References
- https://lists.apache.org/thread/3mf4cfx070ofsnf9qy0s2v5gqb5sc2g1 (vendor-advisory)
- https://github.com/apache/airflow/pull/63200 (patch)