> CVE-2026-40861

« BACK_TO_HOME
PUBLISHED
2026-06-01 09:16
MODIFIED
2026-06-01 09:16
EPSS (Prob. Exploit)
0.76%
Top 45.2%
DATA SOURCES:
NVD 🔗 2026-06-01 CWE MITRE 🔗 2026-11-01 FIRST EPSS 🔗 2026-10-25 GITHUB 🔗 2026-11-05 OSV 🔗 2026-09-20

> 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_PRODUCTS

ℹ️ Aucun produit affecté n'a encore été publié par NVD pour cette CVE.

> WEAKNESSES

CWE-59

> CWE DETAILED DESCRIPTIONS

CWE-59: Improper Link Resolution Before File Access - The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.

> GITHUB SECURITY ADVISORY

GHSA-89cj-xrpx-j79m MODERATE

Apache Airflow has a Link Following issue

AFFECTED PACKAGES:
PIP / apache-airflow
< 3.2.2
Fixed in: 3.2.2

> OSV (GOOGLE OPEN SOURCE VULNERABILITIES)

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

AFFECTED PACKAGES:
Unknown / Unknown
8238 versions affected
ALIASES:
BIT-airflow-2026-40861, GHSA-89cj-xrpx-j79m, PYSEC-2026-181

> HISTORIQUE DES MODIFICATIONS

Première apparition
01/06/2026 09:16
Source: NVD
📊 ENRICHISSEMENT 01/11/2026 06:59
CWE
Champ modifié: Description CWE
Ancienne valeur:
CWE-59: Improper Link Resolution Before File Access ('Link Following') - The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a ...
Nouvelle valeur:
CWE-59: Improper Link Resolution Before File Access - The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut th...
📊 ENRICHISSEMENT 01/07/2026 06:01
CWE
Champ modifié: Description CWE
Ancienne valeur:
N/A
Nouvelle valeur:
CWE-59: Improper Link Resolution Before File Access ('Link Following') - The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a ...
Total des modifications: 2 Dernière mise à jour: 6 days ago

> REFERENCES

https://github.com/apache/airflow/pull/65325
https://lists.apache.org/thread/823334db2559xjlwt59gpzjz47thnscl
« BACK_TO_HOME