Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.7%top 51%

CVE-2026-40861: CWE-59: Improper Link Resolution Before File Access ('Link Following') in Apache Software Foundation Apache Airflow

0
Medium
VulnerabilityCVE-2026-40861cvecve-2026-40861cwe-59
Published: 06/01/2026 (06/01/2026, 07:55:37 UTC)
Source: CVE Database V5
Vendor/Project: Apache Software Foundation
Product: Apache Airflow

Description

CVE-2026-40861 is a medium severity vulnerability in Apache Airflow prior to version 3.2.2. It involves improper link resolution before file access, allowing a DAG author to cause the FileTaskHandler to read or overwrite arbitrary files outside the intended log directory. This occurs when the worker log folder is shared with the API server. The vulnerability can lead to sensitive file disclosure but does not affect availability or integrity directly.

CVSS v3.1

Score 6.5medium

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Affected software

apache-airflow
pkg:pypi/apache-airflow
Affected versions
<3.2.2

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/10/2026, 09:57:15 UTC

Technical Analysis

This vulnerability (CWE-59) in Apache Airflow allows a DAG author to exploit improper symbolic link resolution in the FileTaskHandler. By creating a symlink in the task's log directory pointing to arbitrary files readable by the API server (read-path attack) or by supplying a specially crafted task_id containing '..' sequences (write-path attack), the log path can be resolved outside the configured base_log_folder. This results in unauthorized file disclosure or overwriting. The issue only affects deployments where the worker log folder is shared with the API server. The vendor recommends upgrading to Apache Airflow 3.2.2 or later and suggests separating log volumes for the worker and API server as a defense-in-depth measure.

Potential Impact

An attacker with DAG author privileges can read sensitive files such as /etc/passwd or airflow.cfg or overwrite arbitrary files accessible by the API server process. This compromises confidentiality but does not impact integrity or availability directly. The vulnerability requires the worker log folder to be shared with the API server, limiting exposure to certain deployment configurations.

Mitigation Recommendations

Upgrade Apache Airflow to version 3.2.2 or later, where this vulnerability is fixed. Additionally, as a defense-in-depth measure, deploy the worker and API server with separate log volumes to prevent worker-controlled paths from reaching the API server's filesystem. Patch status is confirmed by the vendor advisory recommending upgrade to 3.2.2.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
apache
Date Reserved
2026-04-15T13:58:24.192Z
Cvss Version
null
State
PUBLISHED
Remediation Level
null

Threat ID: 6a1d4e71e29bf47b50cd495f

Added to database: 06/01/2026, 09:18:41 UTC

Last enriched: 07/10/2026, 09:57:15 UTC

Last updated: 07/31/2026, 19:22:58 UTC

Views: 87

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses