CVE-2025-54550

Apache Airflow: RCE by race condition in example_xcom dag

Published Apr 15, 2026 CVSS 3.1 · 8.1 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The vulnerability arises from an unsafe pattern used in the example_xcom DAG for reading XCom values, which can be exploited when a UI user with XCom modification rights triggers a race condition that leads to arbitrary code execution on an Airflow worker. The flaw allows the user to inject and execute arbitrary Python code, resulting in a remote code execution condition. Because the attack requires a trusted UI account and the example DAGs are not intended for production use, the severity is considered low, but any system that adopts the same pattern is at risk.

Affected Systems

Apache Software Foundation’s Airflow is the affected product. The issue appears only in DAGs that copy the example_xcom logic from the official documentation; it is not present in core Airflow releases. Users who have included the example DAG or otherwise implemented the same unsafe XCom access pattern could be affected. The Airflow 3.2.0 documentation has been updated with a safer version of the example, so upgrading to that or newer reduces the risk.

Risk and Exploitability

Exploitation requires a user who already has the ability to write to XComs through the Airflow UI, a privilege normally held by highly trusted individuals or processes. Because the CVSS Score is 8.1 and the EPSS is < 1%, and the vulnerability is not listed in CISA’s KEV catalog, the overall exposure remains low. An attacker would still need to insert malicious payload into an XCom and trigger the race condition to cause the worker to evaluate the payload, which is unlikely without the prerequisite UI access. Consequently, the risk is confined to environments where the example DAG is deployed or mirrored in production, and the exploitability is limited.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Identify and remove any DAGs that contain the example_xcom pattern, especially if deployed outside the documentation context.
  • Replace the unsafe XCom retrieval logic in existing DAGs with the safe method demonstrated in the Airflow 3.2.0 example, ensuring proper validation of the XCom payload.
  • Disable the default example_dags directory or configure Airflow to exclude example DAGs from being scheduled in production environments.
  • Review and restrict UI permissions so that only necessary personnel can write to XComs, reducing the likelihood of malicious payload injection.

Generated by OpenCVE AI on April 17, 2026 at 07:58 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-q2hg-643c-gw8h Withdrawn Advisory: Apache Airflow: RCE by race condition in example_xcom dag
History
Type Values Removed Values Added
CPEs cpe:2.3:a:apache:airflow:*:*:*:*:*:*:*:*
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Apache
Apache airflow
Vendors & Products Apache
Apache airflow
Type Values Removed Values Added
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.
Title Apache Airflow: RCE by race condition in example_xcom dag
Weaknesses CWE-94
References
Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')

Sources

Status
PUBLISHED
Assigner
apache
Published
Updated
Nov 3, 2026, 7:01 AM
Reserved
Jul 24, 2025, 9:10 PM
Status
Analyzed
Published
Apr 15, 2026, 4:17 AM
Modified
Nov 3, 2026, 7:17 AM