Skip to main content

Apache Airflow CVE-2026-40861

| EUVDEUVD-2026-33598 MEDIUM
Improper Link Resolution Before File Access (CWE-59)
6.5
CVSS 3.1 · Vendor
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as low-privilege Airflow user
  2. Delivery
    Author DAG task that writes symlink into log directory pointing to target file
  3. Exploit
    Trigger task execution on worker node
  4. Execution
    Airflow FileTaskHandler globs log directory and follows symlink without containment check
  5. Impact
    Read arbitrary file contents returned via Airflow log API or UI

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Symlink resolution safety
Exploitation Conditions

Exploitation requires an authenticated Airflow account with at least low-level privileges (confirmed by CVSS PR:L), sufficient to submit or trigger a DAG or task that can create files or symlinks within the task's log directory on the Airflow worker or scheduler filesystem. The victim deployment must use the default FileTaskHandler with local filesystem log storage - deployments that route logs exclusively to remote backends (S3, GCS, Elasticsearch) are not affected by this code path. The attacker must also be able to read back task logs through the Airflow UI or API. Exploitation is limited to confidentiality (C:H); no write or execution primitive is provided by this vulnerability. Anonymous or unauthenticated exploitation is not possible.

Impact

The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N) scores 6.5 Medium, correctly reflecting network-reachable exploitation requiring only low-privilege credentials, no user interaction, and yielding high confidentiality impact with no integrity or availability loss. The PR:L requirement is a meaningful constraint: anonymous exploitation is not possible; an adversary must first obtain a valid Airflow account or API token. The EPSS score of 0.02% (5th percentile) and absence from CISA KEV align with this - exploitation requires deliberate targeting of a specific Airflow deployment by an insider or compromised account holder, not opportunistic scanning. There is no confirmed public proof-of-concept at time of analysis. Despite the low EPSS, the C:H rating is not inflated: successful exploitation can expose secrets files, SSH private keys, or Airflow's own secrets backend configuration, making this high priority for multi-tenant Airflow deployments where untrusted users exist. Single-tenant, tightly controlled environments face lower realistic risk.

Exploit ScenarioDerived

An adversary holding a low-privilege Airflow account (e.g., a developer with DAG authoring rights) writes a DAG that, as part of task execution, creates a symbolic link inside the task's log directory - for example, linking '1.log.secret' to '/home/airflow/.ssh/id_rsa'. When the Airflow UI or API retrieves logs for that task, FileTaskHandler._read_from_local() globs the log directory, matches the symlink, follows it without validation, and streams the SSH private key contents back to the requesting user's browser or API response. No public proof-of-concept exists, but the attack is straightforward to construct given the PR diff.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 02, 2026

Arbitrary file read in Apache Airflow's FileTaskHandler allows authenticated users to read files outside the designated log directory by placing symlinks within the log folder tree. Versions prior to 3.2.2 are affected. Because FileTaskHandler._read_from_local() resolved glob matches without first verifying that a symlink's real path stays within the configured base log folder, a low-privileged Airflow user could exfiltrate sensitive server-side files - credentials, keys, or configuration - by directing log reads through a crafted symlink. No public exploit code exists and the vulnerability is not in CISA KEV, though the CVSS C:H rating reflects genuine confidentiality risk.

RemediationAI

Upgrade Apache Airflow to version 3.2.2 or later, which contains the upstream fix from PR #65325 (https://github.com/apache/airflow/pull/65325). The fix is a path-containment enforcement change in FileTaskHandler._read_from_local() requiring no configuration changes post-upgrade. If an immediate upgrade is not feasible, restrict the ability of non-administrative Airflow users to write files or create symlinks within the Airflow log directory (base_log_folder) at the filesystem level using OS permissions (e.g., chmod 755 on log parent directories, ensuring only the airflow service account can write). This compensating control eliminates the attacker's ability to plant the malicious symlink, though it trades off against DAG-authored log customisation features. Alternatively, switching to a remote log backend (S3, GCS, Azure Blob) removes the local FileTaskHandler entirely and eliminates this vulnerability surface. Vendor advisory thread: https://lists.apache.org/thread/823334db2559xjlwt59gpzjz47thnscl.

Affected VersionsENISA

Apache Airflow 0 <3.2.2

Affected Packages

pypi apache-airflow fix: 3.2.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Apache Airflow's FileTaskHandler (airflow-core/src/airflow/utils/log/file_task_handler.py) is responsible for writing and reading task execution logs to a configured base_log_folder on disk. The _read_from_local() method uses a glob pattern to discover log files associated with a task instance and opens each matching path directly. Prior to 3.2.2, the code called open(path) on raw glob results without resolving symlinks or validating path containment, a classic CWE-59 (Improper Link Resolution Before File Access - 'Link Following') defect. An attacker-controlled symlink matching the glob pattern (e.g., '1.log.external') inside a log subdirectory could point anywhere on the filesystem. The fix in PR #65325 introduces os.path.realpath() on both the base log folder and each glob hit, then uses os.path.commonpath() to enforce containment - rejecting any resolved path whose canonical form does not begin with the canonical base_log_folder. The affected CPE range is Apache Airflow 0 through < 3.2.2 per EUVD-2026-33598.

Know when Airflow gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (CNA) PRIMARY 6.5 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Primary rating from Vendor (CNA) · only source for this CVE.

CVSS VectorVendor

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

Lifecycle Timeline

4
CVSS changed
Jun 02, 2026 - 17:22 NVD
6.5 (MEDIUM)
Patch available
Jun 01, 2026 - 10:01 EUVD
CVE Published
May 31, 2026 - 12:45 nvd
UNKNOWN (no severity yet)
CVE Published
May 31, 2026 - 12:45 nvd
MEDIUM 6.5

Description PRE-NVD

Disclosed via oss-security. NVD scoring and full description are pending.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 9 pypi packages depend on apache-airflow (5 direct, 4 indirect)

Ecosystem-wide dependent count for version 3.2.2.

Threat Intelligence Overview

EPSS Score
0.0%
Top 95% exploitable
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0
CVE-2020-13927 CRITICAL POC
9.8 Nov 10

The previous default setting for Airflow's Experimental API was to allow all API requests without authentication, but th

CVE-2020-11978 HIGH POC
8.8 Jul 17

An issue was found in Apache Airflow versions 1.10.10 and below. Rated high severity (CVSS 8.8), this vulnerability is r

CVE-2021-38540 CRITICAL POC
9.8 Sep 09

The variable import endpoint was not protected by authentication in Airflow >=2.0.0, <2.1.3. Rated critical severity (CV

CVE-2022-40127 HIGH POC
8.8 Nov 14

A vulnerability in Example Dags of Apache Airflow allows an attacker with UI access who can trigger DAGs, to execute arb

CVE-2022-24288 HIGH POC
8.8 Feb 25

In Apache Airflow, prior to version 2.2.4, some example DAGs did not properly sanitize user-provided params, making them

CVE-2022-45402 MEDIUM
6.1 Nov 15

In Apache Airflow versions prior to 2.4.3, there was an open redirect in the webserver's `/login` endpoint. Rated medium

CVE-2020-11981 CRITICAL POC
9.8 Jul 17

An issue was found in Apache Airflow versions 1.10.10 and below. Rated critical severity (CVSS 9.8), this vulnerability

CVE-2020-17526 HIGH POC
7.7 Dec 21

Incorrect Session Validation in Apache Airflow Webserver versions prior to 1.10.14 with default config allows a maliciou

CVE-2020-11982 CRITICAL
9.8 Jul 17

An issue was found in Apache Airflow versions 1.10.10 and below. Rated critical severity (CVSS 9.8), this vulnerability

CVE-2020-13944 MEDIUM
6.1 Sep 17

In Apache Airflow < 1.10.12, the "origin" parameter passed to some of the endpoints like '/trigger' was vulnerable to XS

CVE-2022-40189 CRITICAL
9.8 Nov 22

Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') vulnerability in Apache Airfl

CVE-2022-38649 CRITICAL
9.8 Nov 22

Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') vulnerability in Apache Airfl

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy