CVE-2026-40861: Apache Airflow: Arbitrary File Read via Log Symlink following in FileTaskHandler

Published May 31, 2026
·
Updated

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 taskid containing .. sequences accepted by the Task SDK's KEYREGEX (write-path attack), and in both cases the FileTaskHandler resolves the log path outside the configured baselogfolder, 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.

Affected Software

2 affected components
pypi/apache-airflow<3.2.2
Apache Airflow<3.2.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade apache-airflow to a version that resolves this vulnerability.

    Fixed in 3.2.2
  2. Compensating control

    Deploy the Apache Airflow worker and API server with separate log volumes so worker-controlled paths cannot reach the API server filesystem (defense-in-depth mitigation for CVE-2026-40861; mitigation applies only where worker log folder is shared with the API server).

Event History

Jun 1, 2026
CVE Published
via MITRE·07:55 AM
Data Sourced
via MITRE·07:55 AM
DescriptionWeakness
Data Sourced
via NVD·09:16 AM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-40861?

The severity of CVE-2026-40861 is medium with a score of 6.5 based on the CVSS 3.1 metrics.

2

How do I fix CVE-2026-40861?

CVE-2026-40861 can be fixed by applying the available patch from the Apache Airflow repository.

3

What type of vulnerability is CVE-2026-40861?

CVE-2026-40861 is an arbitrary file read vulnerability that can be exploited through log symlink manipulation.

4

Who is affected by CVE-2026-40861?

Users running affected versions of Apache Airflow with specific configurations are vulnerable to CVE-2026-40861.

5

What can an attacker do with CVE-2026-40861?

An attacker can exploit CVE-2026-40861 to read arbitrary files on the server, such as sensitive configuration files.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203