6.5

CVE-2026-40861: apache software foundation apache airflow Link Following

CVSS: 6.5v3.1MediumAnalyzed
AliasesGHSA-89cj-xrpx-j79mBIT-airflow-2026-40861PYSEC-2026-181
Published 01-06-2026Last modified 02-06-2026

Vulnerability summary

CVE-2026-40861 is a medium (CVSS 6.5) Link Following vulnerability in apache software foundation apache airflow. EPSS estimates a 0.76% chance of exploitation in the next 30 days, higher than 54.4% of scored vulnerabilities.

Overall risk
26/100
0100
Medium · default modelHow is this calculated?
CVSS score
6.5/10
010
Medium · v3.1 (CVE.org)
EPSS score
0.76%
0%100%
Low · +0.07 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Timeline

  1. 01-06-2026
    PublishedVulnerability first disclosed.
  2. 02-06-2026
    Last modifiedVulnerability information updated.

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.

CVSS metrics

4 scores · 4 sources · 1 version

EPSS trend

Probability

0.76%

Chance of exploitation in the next 30 days

Percentile

54%

Versus all other CVEs

30-day change

+0.07 pp

From 0.69% on 19-09-2026

19-09-202619-10-2026
EPSS score
0.76%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Chainguard2 products
  • airflow-2All versions (No fix recorded)
  • airflow-core-2All versions (No fix recorded)
Apache1 product
Apache software foundation1 product
PyPI1 product
  • apache-airflow< 3.2.2

4 vendors · 5 products

References

9 links