CVE-2026-40861: CWE-59: Improper Link Resolution Before File Access ('Link Following') in Apache Software Foundation Apache Airflow
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.
AI Analysis
Technical Summary
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.
CVE-2026-40861: CWE-59: Improper Link Resolution Before File Access ('Link Following') in Apache Software Foundation 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
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.