CVE-2026-40861Apache Airflow Improper Link Resolution Before File Access ('Link Following')
NVDCVSS scored by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Vulnerability Summary
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.
CVSS v3.1 Base Metrics — Score 6.5 (MEDIUM)
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:NAttack VectorNetwork
Attack ComplexityLow
Privileges RequiredLow
User InteractionNone
ScopeUnchanged
ConfidentialityHigh
IntegrityNone
AvailabilityNone
Affected & Patched Versions
- Apache Airflow < 3.2.2
- Apache Software Foundation Apache Airflow < 3.0.0
- Apache Software Foundation Apache Airflow >= 3.0.0 and < 3.2.2
- Apache Airflow 3.2.2
- Apache Software Foundation Apache Airflow 3.0.0
- Apache Software Foundation Apache Airflow 3.2.2
What to do
Fix it during your normal patch cycle. No exploitation is confirmed yet.
- Check whether you run Apache Airflow and which version.
- Update to a patched version listed above, then confirm the new version.
Timeline
- Jun 1, 2026Published
- Nov 3, 2026Record last modified
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new Apache Airflow CVEsYou are reading CVE-2026-40861. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsExternal References
Data last checked: Nov 25, 2026 15:40 UTC