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 reads values from XCom in a way that can be exploited by UI users with modification access to execute arbitrary code on the worker. Since UI users are already highly trusted, the severity is considered low in practice. The vulnerability does not impact official Airflow releases because example DAGs are not meant for production. The documentation for Airflow 3.2.0 contains a safer example that addresses this issue. No official patch or remediation level has been published, and no known exploits are reported in the wild.
Potential Impact
If an attacker has UI access with permissions to modify XComs, they could leverage this vulnerability to execute arbitrary code on Airflow workers. However, because such UI users are already highly trusted, the practical impact is limited. The vulnerability does not affect production environments unless users replicate the unsafe example pattern from the documentation.
Mitigation Recommendations
Users should avoid using the unsafe example_xcom pattern from older Airflow documentation and instead follow the improved example provided in Airflow 3.2.0 documentation. Since the example DAG is not intended for production, disabling or not enabling example DAGs in production environments effectively mitigates the risk. There is no official patch or remediation level published; users must manually adjust their implementations if they followed the vulnerable pattern.
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
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 reads values from XCom in a way that can be exploited by UI users with modification access to execute arbitrary code on the worker. Since UI users are already highly trusted, the severity is considered low in practice. The vulnerability does not impact official Airflow releases because example DAGs are not meant for production. The documentation for Airflow 3.2.0 contains a safer example that addresses this issue. No official patch or remediation level has been published, and no known exploits are reported in the wild.
Potential Impact
If an attacker has UI access with permissions to modify XComs, they could leverage this vulnerability to execute arbitrary code on Airflow workers. However, because such UI users are already highly trusted, the practical impact is limited. The vulnerability does not affect production environments unless users replicate the unsafe example pattern from the documentation.
Mitigation Recommendations
Users should avoid using the unsafe example_xcom pattern from older Airflow documentation and instead follow the improved example provided in Airflow 3.2.0 documentation. Since the example DAG is not intended for production, disabling or not enabling example DAGs in production environments effectively mitigates the risk. There is no official patch or remediation level published; users must manually adjust their implementations if they followed the vulnerable pattern.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- apache
- Date Reserved
- 2025-07-24T21:10:16.628Z
- Cvss Version
- null
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69dee70482d89c981fce52d4
Added to database: 4/15/2026, 1:16:52 AM
Last enriched: 4/22/2026, 6:17:56 AM
Last updated: 5/27/2026, 6:29:05 AM
Views: 86
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.