Apache Airflow: RCE by race condition in example_xcom dag
High8.1CVE-2025-54550 · Published Apr 16, 2026 · updated Jul 13, 2026
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
| Package | Affected | Fixed in |
|---|---|---|
| apache-airflow PyPI | < 3.2.0 | 3.2.0 |
Details and references
- CVSS 3.1
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
- Severity from
- GitHub (reviewed advisory)
- Weakness
- CWE-94
- Also known as
- BIT-airflow-2025-54550, CVE-2025-54550, PYSEC-2026-2353
More Apache Airflow advisories
All Apache Airflow| Date | Advisory | Severity | Fixed in |
|---|---|---|---|
| Apr 18 | Apache Airflow Exposes Secrets in Variables Saved as JSON Dictionaries | Low3.7 | 3.2.0 |
| Apr 18 | In case of SQL errors | High7.5 | 3.2.0 |
| Apr 18 | Apache Airflow: code execution | High7.2 | 3.2.0 |
| Apr 16 | Apache Airflow: JWT token appearing in logs | Medium7.5 | 3.2.0 |
| Apr 15 | Apache Airflow: information disclosure | Medium6.5 | 3.1.8 |
| Apr 13 | Apache Airflow: Unsafe Deserialization via Legacy Serialization Keys (__type/__var) Bypass in XCom API | High8.8 | 3.2.0 |