Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.4%top 69%

CVE-2026-42252: CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine in Apache Software Foundation Apache Airflow

0
Critical
VulnerabilityCVE-2026-42252cvecve-2026-42252cwe-1336
Published: 06/01/2026 (06/01/2026, 07:51:19 UTC)
Source: CVE Database V5
Vendor/Project: Apache Software Foundation
Product: Apache Airflow

Description

CVE-2026-42252 is a critical vulnerability in Apache Airflow 3.0.0 related to improper neutralization of special elements in a template engine. The official documentation previously showed an example using BashOperator with unsanitized parameters, which could lead to shell command injection if users with Dag.can_trigger permission supplied malicious input in the conf field. This vulnerability allows authenticated users to execute arbitrary shell commands on the worker. The issue was addressed by correcting the documentation and advising safer usage patterns. Users are recommended to upgrade to Apache Airflow 3.2.2 or later to receive the corrected documentation and avoid this risk.

CVSS v3.1

Score 9.1critical

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

Affected software

apache-airflow
pkg:pypi/apache-airflow
Affected versions
=3.0.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/10/2026, 09:58:59 UTC

Technical Analysis

Apache Airflow's official documentation for passing parameters when triggering DAGs included an example using BashOperator with a bash_command that directly interpolated user-supplied conf parameters without quoting or sanitization. This allowed authenticated users with permission to trigger DAGs to inject shell metacharacters via the conf field, leading to potential remote code execution on the worker node. The vulnerability is due to improper neutralization of special elements in the template engine (CWE-1336). The issue affects deployments that implemented DAG code based on the vulnerable documentation example, specifically version 3.0.0. The fix involved updating the documentation to include explicit shell quoting and safety warnings. Users should upgrade to Apache Airflow 3.2.2 or later to obtain the corrected documentation and mitigate the risk.

Potential Impact

An authenticated user with permission to trigger DAGs can supply malicious input in the conf parameter that leads to shell command injection on the worker node. This can result in arbitrary code execution with the privileges of the Airflow worker process. The vulnerability has a CVSS score of 9.1 (critical), indicating high confidentiality and integrity impact but no availability impact. There are no known exploits in the wild at this time.

Mitigation Recommendations

Users should upgrade to Apache Airflow version 3.2.2 or later, which includes the corrected documentation with explicit shell quoting and safety caveats. The vendor advisory does not indicate a direct code patch but emphasizes the importance of following the updated safe usage patterns. Deployments modeled on the vulnerable documentation example should review and update their DAG code to properly sanitize or quote parameters passed to BashOperator to prevent shell injection.

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
2026-04-25T18:49:46.124Z
Cvss Version
null
State
PUBLISHED
Remediation Level
null

Threat ID: 6a1d4e71e29bf47b50cd4977

Added to database: 06/01/2026, 09:18:41 UTC

Last enriched: 07/10/2026, 09:58:59 UTC

Last updated: 07/31/2026, 19:22:58 UTC

Views: 201

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