CVE Catalog

CVE-2026-40861

MediumCVSS 6.5
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.67%

48th percentile - higher than 48% of all known CVEs

Summary

A DAG author can use symlinks or `..` sequences in task IDs to read or overwrite arbitrary files outside the configured log folder if the worker log folder is shared with the API server.

Risk Assessment

An attacker could access or modify sensitive files like `/etc/passwd` or `airflow.cfg`, potentially leading to privilege escalation or system integrity compromise.

Recommendation

Upgrade Apache Airflow to version 3.2.2 or later and deploy separate log volumes for workers and the API server.

Other vulnerabilities in Apache Airflow

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS