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
Share

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

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

Lifecycle Timeline

6
Source Code Evidence Fetched
Jun 02, 2026 - 17:24 vuln.today
Analysis Generated
Jun 02, 2026 - 17:24 vuln.today
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

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.

Description PRE-NVD

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

AnalysisAI

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.

Technical ContextAI

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.

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.

More in Ssti

View all
CVE-2025-47916 CRITICAL POC
10.0 May 16

Invision Community 5.0.0 through 5.0.6 contains an unauthenticated remote code execution vulnerability in the template e

CVE-2024-6386 CRITICAL POC
9.9 Aug 21

Remote code execution in the WPML WordPress multilingual plugin (versions up to and including 4.6.12) allows Contributor

CVE-2024-23692 CRITICAL POC
9.8 May 31

Rejetto HTTP File Server, up to and including version 2.3m, is vulnerable to a template injection vulnerability. Rated c

CVE-2025-23211 CRITICAL POC
9.9 Jan 28

Tandoor Recipes is an application for managing recipes, planning meals, and building shopping lists. Rated critical seve

CVE-2024-32651 CRITICAL POC
10.0 Apr 26

changedetection.io is an open source web page change detection, website watcher, restock monitor and notification servic

CVE-2024-4040 CRITICAL POC
10.0 Apr 22

A server side template injection vulnerability in CrushFTP in all versions before 10.7.1 and 11.1.0 on all platforms all

CVE-2024-24724 CRITICAL POC
9.8 Apr 03

Gibbon through 26.0.00 allows /modules/School%20Admin/messengerSettings.php Server Side Template Injection leading to Re

CVE-2026-28496 CRITICAL POC
9.4 Jun 23

Server-side template injection in FOSSBilling versions prior to 0.8.0 allows authenticated administrators to execute arb

CVE-2025-1040 HIGH POC
8.8 Mar 20

AutoGPT versions 0.3.4 and earlier are vulnerable to a Server-Side Template Injection (SSTI) that could lead to Remote C

CVE-2023-6709 HIGH POC
8.8 Dec 12

Improper Neutralization of Special Elements Used in a Template Engine in GitHub repository mlflow/mlflow prior to 2.9.2.

CVE-2022-0896 HIGH POC
8.8 Mar 09

Improper Neutralization of Special Elements Used in a Template Engine in GitHub repository microweber/microweber prior t

CVE-2024-54954 HIGH POC
8.0 Feb 10

OneBlog v2.3.6 was discovered to contain a template injection vulnerability via the template management department. Rate

Share

CVE-2026-42252 vulnerability details – vuln.today

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