Skip to main content
EPSS 0.6%top 54%

CVE-2025-54550: CWE-94: Improper Control of Generation of Code ('Code Injection') in Apache Software Foundation Apache Airflow

0
High
VulnerabilityCVE-2025-54550cvecve-2025-54550cwe-94gcve
Published: 04/15/2026 (04/15/2026, 00:22:03 UTC)
Source: CVE Database V5
Vendor/Project: Apache Software Foundation
Product: 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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N

Affected software

Apache Software Foundation

Apache Airflow

Affected versions
>=0 <3.2.0

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/13/2026, 13:20:43 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses