CVE Watchtower

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.
Severity Level
MEDIUM(6.5)
Published Date
Jun 1, 2026
Last Modified
Nov 3, 2026
Exploitation Status
No confirmed exploitation yet
EPSS Score (30-Day)
0.76%Probability
Root Weakness (CWE)
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.
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:N
Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredLow
User InteractionNone
ScopeUnchanged
ConfidentialityHigh
IntegrityNone
AvailabilityNone

Affected & Patched Versions

Affected 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
Patched Versions
  • 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.

  1. Check whether you run Apache Airflow and which version.
  2. 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 alerts

Data last checked: Nov 25, 2026 15:40 UTC