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 package | Versions | Reported by |
|---|---|---|
| apache-airflow | before 3.0.0 | CVE List |
| apache-airflow-core | from 3.0.0 before 3.2.2 | CVE List |
| apache-airflow (PyPI) | before 3.2.2 | GitHub Advisory Database, PyPA Advisory Database |
| apache airflow | before 3.2.2 | NVD |
| airflow (Bitnami) | before 3.2.2 | Bitnami Vulnerability Database |
All scores
| CISA-ADP | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| GitHub | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| PyPA Advisory Database | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| Bitnami Vulnerability Database | medium rating |
Classification
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
| 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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-40861 changed 2026-11-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-89cj-xrpx-j79m changed 2026-07-09 | CC-BY-4.0 |
| NVD | CVE-2026-40861 changed 2026-11-03 | Public domain |
| PyPA Advisory Database | PYSEC-2026-181 changed 2026-07-13 | CC-BY-4.0 |
| Bitnami Vulnerability Database | BIT-AIRFLOW-2026-40861 changed 2026-09-08 | Apache-2.0 |