CVE-2026-40861: Apache Airflow - Path Traversal
- Cve: CVE-2026-40861
- Name: Apache Airflow - Path Traversal
- Description: A Dag author could either (a) create a symlink under their task's log directory pointing to an arbitrary file readable by the API server process (read-path attack — e.g. `/etc/passwd` or `airflow.cfg`) or (b) supply a `task_id` containing `..` sequences accepted by the Task SDK's `KEY_REGEX` (write-path attack), and in both cases the FileTaskHandler resolves the log path outside the configured `base_log_folder`, leaking or overwriting arbitrary files. Only affects deployments where the worker log folder is shared with the API server. Users are advised to upgrade to `apache-airflow` 3.2.2 or later. As a defense-in-depth mitigation, deploy the worker and API server with separate log volumes so that worker-controlled paths cannot reach the API server's filesystem.
- Impact: Attackers can read or overwrite arbitrary files on the API server, potentially leading to information disclosure or data tampering.
- Remediation: Upgrade to apache-airflow 3.2.2 or later and separate log volumes for worker and API server.
- Vulnerability type: path_traversal
- Vulnerability impact: information_disclosure, data_tampering
- Requirements: Worker log folder must be shared with API server
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 6.5
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- Epss score: 0.00691
- Epss percentile: 0.53595
- Assignee: [email protected]
- Published at: 2026-06-01T09:16:17Z
- Age in days: 176
- Modified at: 2026-11-03T07:19:54Z
- Patch available: yes
- References total: 3
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-40861
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirement type, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-59 | Improper Link Resolution Before File Access |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://github.com/apache/airflow/pull/65325 | Issue Tracking, Patch |
| https://lists.apache.org/thread/823334db2559xjlwt59gpzjz47thnscl | Mailing List, Vendor Advisory |
| http://www.openwall.com/lists/oss-security/2026/05/31/1 | Mailing List, Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| apache:airflow | < 3.2.2 | no | nvd | /v1/products/apache/airflow |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| apache/airflow | fix, package, pull | yes | /v1/repositories/apache/airflow |
Index
- Repositories: 52
- Repositories high signal: 28
- Packages: 1
Exploitation
- Remote: yes
- Authentication required: yes
- Exposed hosts: 169896
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports