CVE-2026-40861
JSON

6.5medium

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

Severity
6.5medium CVSS:3.1 by CISA-ADP
Exploit likelihood
0.69% (higher than 54% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
apache
Also known as
GHSA-89cj-xrpx-j79mBIT-AIRFLOW-2026-40861PYSEC-2026-181

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.

Affected

Product or packageVersionsReported by
apache-airflowbefore 3.0.0CVE List
apache-airflow-corefrom 3.0.0 before 3.2.2CVE List
apache-airflow (PyPI)before 3.2.2GitHub Advisory Database, PyPA Advisory Database
apache airflowbefore 3.2.2NVD
airflow (Bitnami)before 3.2.2Bitnami Vulnerability Database

All scores

CISA-ADP6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
GitHub6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
PyPA Advisory Database6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Bitnami Vulnerability Databasemedium rating

Classification

CWE-59

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

Un autor de Dag podría (a) crear un enlace simbólico bajo el directorio de logs de su tarea apuntando a un archivo arbitrario legible por el proceso del servidor API (ataque de ruta de lectura - p. ej. '/etc/pass1d' o 'airflow.cfg') o (b) proporcionar un 'task_id' que contenga secuencias '..' aceptadas por el 'KEY_REGEX' del SDK de Tareas (ataque de ruta de escritura), y en ambos casos el FileTaskHandler resuelve la ruta del log fuera de la 'base_log_folder' configurada, filtrando o sobrescribiendo archivos arbitrarios. Solo afecta a despliegues donde la carpeta de logs del worker es compartida con el servidor API. Se aconseja a los usuarios actualizar a 'apache-airflow' 3.2.2 o posterior. Como mitigación de defensa en profundidad, despliegue el worker y el servidor API con volúmenes de log separados para que las rutas controladas por el worker no puedan alcanzar el sistema de archivos del servidor API.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-40861 changed 2026-11-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-89cj-xrpx-j79m changed 2026-07-09CC-BY-4.0
NVDCVE-2026-40861 changed 2026-11-03Public domain
PyPA Advisory DatabasePYSEC-2026-181 changed 2026-07-13CC-BY-4.0
Bitnami Vulnerability DatabaseBIT-AIRFLOW-2026-40861 changed 2026-09-08Apache-2.0