GHSA-c85c-g9wv-pph2
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to Airflow UI/API
-
DeliveryIdentify DAG using vulnerable BashOperator template
-
ExploitTrigger DAG run with Jinja2 payload in conf
-
ExecutionWorker renders template and executes injected expression
-
PersistShell command runs as Airflow worker user
-
ImpactPivot to secrets, connections, or worker host
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V1 - Encoding and Sanitization Template injection prevention
|
| Exploitation Conditions | Exploitation requires (1) an Airflow deployment running 3.0.0 through 3.2.1, (2) at least one DAG authored with BashOperator (or comparable templated operator) that interpolates |
| Impact | Signals here are notably conflicting. CVSS 9.1 with AV:N/AC:L/PR:N/UI:N/C:H/I:H suggests an unauthenticated network-reachable critical, yet the description and PR clearly describe a 'low-privilege user pattern' requiring the ability to trigger a DAG run with a custom conf payload - meaning real exploitation requires at least Airflow user authentication with trigger_dag permission on a vulnerable DAG, not anonymous network access. EPSS at 0.03% (9th percentile) and the absence of KEV listing or known public exploit indicate this is not currently being exploited at scale. The realistic risk is high for any Airflow deployment with multi-tenant DAG access where untrusted users can trigger runs against DAGs authored with the unsafe BashOperator pattern, and substantially lower for single-tenant deployments. The CVSS PR:N rating should be verified against vendor documentation, as the description's 'low-privilege user' phrasing contradicts a true unauthenticated rating. |
| Exploit ScenarioDerived | An authenticated Airflow user with permission to trigger a DAG that uses the unsafe BashOperator pattern submits a DAG run with a crafted conf payload such as |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 02, 2026
Server-side template injection in Apache Airflow versions 3.0.0 through 3.2.1 allows low-privilege authenticated users to inject Jinja2 expressions via dag_run.conf parameters that are unsafely interpolated into BashOperator commands, leading to arbitrary command execution in the worker context. The flaw carries a 9.1 CVSS but EPSS sits at just 0.03% (9th percentile), and there is no public exploit identified at time of analysis despite a vendor patch being available. Disclosure occurred via the oss-security mailing list on 2026-05-31 alongside several other Airflow advisories.
RemediationAI
Upgrade to Apache Airflow 3.2.2 or later, which is the first release outside the affected range per the EUVD record; patch is available from the vendor and the upstream fix is tracked in https://github.com/apache/airflow/pull/64129. As an immediate code-level mitigation, rewrite vulnerable DAGs to pass dag_run.conf values via the BashOperator env parameter and reference them as shell variables in bash_command (e.g. echo "$message" with env={"message": '{{ dag_run.conf["message"] if dag_run else "" }}'}) rather than splicing them directly into the command template - this prevents Jinja2 from re-rendering attacker-controlled data. Where upgrade is not yet possible, restrict the can_create DAG run / can_edit permissions to trusted users only and audit existing DAGs for direct {{ dag_run.conf[...] }} interpolation inside BashOperator, PythonOperator command strings, or similar templated execution sinks; note that restricting trigger permissions reduces operational flexibility for self-service pipelines.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
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 workflow orchestration platform where DAGs (directed acyclic graphs) define pipelines composed of operators such as BashOperator. The BashOperator passes its bash_command field through Jinja2 template rendering before shell execution, and when authors directly interpolate dag_run.conf values (e.g. {{ dag_run.conf['conf1'] }}) into the command string, those values are first rendered as Jinja2 templates rather than treated as literal data. This maps to CWE-1336 (improper neutralization of special elements used in a template engine), the classic SSTI pattern. The upstream fix in PR #64129 demonstrates the safe pattern: pass user-controlled conf values through the env parameter and reference them as shell variables ($message), which avoids re-rendering the data through Jinja2 entirely.
Know when 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:N/UI:N/S:U/C:H/I:H/A:N
Primary rating from Vendor (CNA) · only source for this CVE.
CVSS VectorVendor
Lifecycle Timeline
4Description PRE-NVD
Blast Radius
ecosystem impact- 4 pypi packages depend on apache-airflow (2 direct, 2 indirect)
Ecosystem-wide dependent count for version 3.0.0.
Executive ViewAI
Apache Airflow versions 3.0.0 through 3.2.1 contain a critical server-side template injection vulnerability that allows low-privilege authenticated users to execute arbitrary commands on orchestration workers. This threatens data pipeline integrity and worker infrastructure at affected organizations; however, no public exploit code exists and active exploitation remains unlikely based on current threat intelligence.
Patch available per vendor advisory. If immediate patching is not feasible: restrict permissions for dag_run.conf parameter submission to administrators; implement network segmentation to limit worker node exposure; deploy detection for unexpected command execution patterns on worker processes.
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
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
The previous default setting for Airflow's Experimental API was to allow all API requests without authentication, but th
An issue was found in Apache Airflow versions 1.10.10 and below. Rated high severity (CVSS 8.8), this vulnerability is r
The variable import endpoint was not protected by authentication in Airflow >=2.0.0, <2.1.3. Rated critical severity (CV
A vulnerability in Example Dags of Apache Airflow allows an attacker with UI access who can trigger DAGs, to execute arb
In Apache Airflow, prior to version 2.2.4, some example DAGs did not properly sanitize user-provided params, making them
In Apache Airflow versions prior to 2.4.3, there was an open redirect in the webserver's `/login` endpoint. Rated medium
An issue was found in Apache Airflow versions 1.10.10 and below. Rated critical severity (CVSS 9.8), this vulnerability
Incorrect Session Validation in Apache Airflow Webserver versions prior to 1.10.14 with default config allows a maliciou
An issue was found in Apache Airflow versions 1.10.10 and below. Rated critical severity (CVSS 9.8), this vulnerability
In Apache Airflow < 1.10.12, the "origin" parameter passed to some of the endpoints like '/trigger' was vulnerable to XS
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') vulnerability in Apache Airfl
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') vulnerability in Apache Airfl
EUVD-2026-33591
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB