CVE-2026-40861

published 1 Jun 2026 · updated 3 Nov 2026

Apache Airflow: Arbitrary File Read via Log Symlink following in FileTaskHandler

6.5MediumCVSS 6.5EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in Airflow 3.2.2, 3.0.0 and 3.2.2.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
ApacheAirflow<3.2.23.2.2
Apache Software Foundation<3.0.0, >=3.0.0 <3.2.23.0.0, 3.2.2

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Airflow, strongest first

10.0CriticalCISA KEVPublic exploit

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-40861 severity on Zeptric[![CVE-2026-40861](https://zeptric.io/badge/cve/CVE-2026-40861.svg)](https://zeptric.io/cve/CVE-2026-40861)