# CVE-2026-40861: Apache Airflow: Arbitrary File Read via Log Symlink following in FileTaskHandler

- Severity: Medium 6.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.69%, higher than 54% of CVEs (2026-12-01)
- Published: 2026-06-01T07:55:37.566Z
- Modified: 2026-11-03T07:19:54.920Z
- Also known as: GHSA-89cj-xrpx-j79m, BIT-AIRFLOW-2026-40861, PYSEC-2026-181
- Weaknesses: CWE-59
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: apache

## 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.

(As written by CVE List.)

## Affected

- apache-airflow: before 3.0.0
- apache-airflow-core: from 3.0.0 before 3.2.2
- apache-airflow (PyPI): before 3.2.2
- apache airflow: before 3.2.2
- airflow (Bitnami): before 3.2.2

## Every score

- CISA-ADP: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- PyPA Advisory Database: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://github.com/apache/airflow/pull/65325> (fix, issue-tracking, patch, web)
- <https://lists.apache.org/thread/823334db2559xjlwt59gpzjz47thnscl> (advisory, mailing-list, vendor-advisory, web)
- <http://www.openwall.com/lists/oss-security/2026/05/31/1> (advisory, mailing-list, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40861> (advisory, web)
- <https://github.com/apache/airflow> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/apache-airflow/PYSEC-2026-181.yaml> (web)
- <https://github.com/advisories/GHSA-89cj-xrpx-j79m> (advisory)

## Sources

- CVE List: [CVE-2026-40861](https://www.cve.org/CVERecord?id=CVE-2026-40861), CVE Terms of Use, modified 2026-11-03
- GitHub Advisory Database: [GHSA-89cj-xrpx-j79m](https://github.com/advisories/GHSA-89cj-xrpx-j79m), CC-BY-4.0, modified 2026-07-09
- NVD: [CVE-2026-40861](https://nvd.nist.gov/vuln/detail/CVE-2026-40861), Public domain, modified 2026-11-03
- PyPA Advisory Database: [PYSEC-2026-181](https://osv.dev/vulnerability/PYSEC-2026-181), CC-BY-4.0, modified 2026-07-13
- Bitnami Vulnerability Database: [BIT-AIRFLOW-2026-40861](https://osv.dev/vulnerability/BIT-AIRFLOW-2026-40861), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2026-40861 · Whole record: https://cve.day/CVE-2026-40861.json · Rebuilt by cve.day 2026-11-25T22:59:23.426Z
