Apache Airflow Arbitrary File Read Vulnerability via Log Symlink in FileTaskHandler

Vulnerability

A vulnerability exists in Apache Airflow versions prior to 3.2.2, allowing a DAG author to create a symlink in their task's log directory that points to an arbitrary file readable by the API server process. This read-path attack could target files like '/etc/passwd' or 'airflow.cfg'. Alternatively, the author could supply a 'task_id' with '..' sequences that bypass the Task SDK's 'KEY_REGEX', leading to a write-path attack. In both scenarios, the FileTaskHandler resolves the log path outside the designated 'base_log_folder', causing unauthorized leakage or overwriting of files. This issue arises only in deployments where the worker log folder is shared with the API server.

Impact

Exploitation of this vulnerability could result in unauthorized reading or modification of files on the API server's filesystem, depending on the nature of the symlink or the file overwritten.

Remediation

Users are advised to upgrade to Apache Airflow version 3.2.2 or later. As an additional precaution, deploy the worker and API server with separate log volumes to prevent worker-controlled paths from accessing the API server's filesystem.

Added: Jun 1, 2026, 9:38 AM
Updated: Jun 1, 2026, 9:38 AM

Vulnerability Rating

Custom Algorithm
spread
5.0
impact
1.0
exploitability
4.8
remediation
7.9
relevance
9.7
threat
0.0
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.