All vulnerabilities

Servers and applications

CVE-2026-40861

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

Severity
Medium 6.5
Published
1 Jun 2026
Last changed
3 Nov 2026
Added to UpHeron
1 Nov 2026
Fixed in
3.0.0, 3.2.2
Exploit chance
0.7% in the next 30 daysHigher than 53% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Link following (CWE-59)
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Read data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Sources
NVD, CVE Program

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.

From the CVE Program.

Affected software

SoftwareAffected versions
Apache AirflowServers and applications · cna:apache software foundation|apache airflow
  • Every version before 3.0.0
  • From 3.0.0 before 3.2.2
Apache AirflowServers and applications · cpe:a:apache:airflow
  • Every version before 3.2.2

About Apache Airflow

open-source workflow management platform written in Python, where workflows are created via Python scripts

From Wikidata, CC0 1.0.
Weekly downloads (PyPI)
1,437,607PyPI Stats, 15 Nov 2026
Docker Hub pulls
1,734,204,390Docker Hub, 15 Nov 2026
GitHub stars
47,481GitHub, 15 Nov 2026
Forks
18,360GitHub, 15 Nov 2026
Latest release
3.4.0GitHub, 15 Nov 2026
Released
6 Nov 2026GitHub
Developer
Apache Software FoundationWikidata
License
Apache Software License 2.0, Apache LicenseWikidata
Written in
PythonWikidata
First published on GitHub
13 Apr 2015GitHub

Release lines

ReleaseLatestSecurity fixes
3.43.4.0Yes
3.33.3.2Ended 7 Nov 2026
3.23.2.2Ended 6 Jul 2026
3.13.1.8Ended 7 Apr 2026
3.03.0.6Ended 25 Sept 2025
22.11.2Ended 22 Apr 2026

From endoflife.date.

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2026-40861
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-40861