CVE-2025-54550: CWE-94: Improper Control of Generation of Code ('Code Injection') in Apache Software Foundation Apache Airflow
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.
AI Analysis
Technical Summary
The vulnerability arises from an unsafe code pattern in the example_xcom DAG included in Apache Airflow documentation, which improperly controls code generation by reading values from XCom insecurely. This flaw could allow a UI user with permission to modify XComs to perform arbitrary code execution on the worker node. Since UI users are already highly trusted, the risk is limited. The vulnerability does not affect official Airflow releases because example DAGs are not enabled in production environments. Airflow 3.2.0 documentation includes a safer example to mitigate this issue. No official remediation or patch is indicated, but users are advised to avoid replicating the unsafe pattern.
Potential Impact
An attacker with UI access and the ability to modify XComs could execute arbitrary code on the Airflow worker, potentially compromising the worker environment. However, the impact is limited by the requirement that the attacker must already have a high level of trust and access. Production environments are not affected if example DAGs are not enabled. Confidentiality and integrity impacts are high if exploited, but availability impact is not affected.
Mitigation Recommendations
There is no official patch or fix available. The vendor advisory states that the vulnerability does not affect production releases as example DAGs are not enabled by default. Users who have implemented the vulnerable example pattern should update their implementations following the improved example in Airflow 3.2.0 documentation. No additional urgent action is required if example DAGs are not used.
CVE-2025-54550: CWE-94: Improper Control of Generation of Code ('Code Injection') in Apache Software Foundation Apache Airflow
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.
CVSS v3.1
Score 8.1high
Affected software
Apache Software Foundation
Apache Airflow
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability arises from an unsafe code pattern in the example_xcom DAG included in Apache Airflow documentation, which improperly controls code generation by reading values from XCom insecurely. This flaw could allow a UI user with permission to modify XComs to perform arbitrary code execution on the worker node. Since UI users are already highly trusted, the risk is limited. The vulnerability does not affect official Airflow releases because example DAGs are not enabled in production environments. Airflow 3.2.0 documentation includes a safer example to mitigate this issue. No official remediation or patch is indicated, but users are advised to avoid replicating the unsafe pattern.
Potential Impact
An attacker with UI access and the ability to modify XComs could execute arbitrary code on the Airflow worker, potentially compromising the worker environment. However, the impact is limited by the requirement that the attacker must already have a high level of trust and access. Production environments are not affected if example DAGs are not enabled. Confidentiality and integrity impacts are high if exploited, but availability impact is not affected.
Mitigation Recommendations
There is no official patch or fix available. The vendor advisory states that the vulnerability does not affect production releases as example DAGs are not enabled by default. Users who have implemented the vulnerable example pattern should update their implementations following the improved example in Airflow 3.2.0 documentation. No additional urgent action is required if example DAGs are not used.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- apache
- Date Reserved
- 2025-07-24T21:10:16.628Z
- State
- PUBLISHED
Threat ID: 69dee70482d89c981fce52d4
Added to database: 04/15/2026, 01:16:52 UTC
Last enriched: 08/13/2026, 13:20:43 UTC
Last updated: 09/13/2026, 10:01:28 UTC
Views: 192
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.