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.
CVE-2026-40861
Score 6.5 from GitHub Security Advisory published 2026-06-01. CISA-ADP (Vulnrichment) CVSS v3.1 baseline 6.5; sources differ by 0.0.
- Lower severity and no public exploit yet
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 6.5
- EG Score
- 6.5(medium)
- EPSS
- 47.4%
- KEV
- Not listed
Published
June 1, 2026
Last Modified
June 2, 2026
Advisory Details (3)
Auto-updated Jun 13, 2026oss-security - CVE-2026-40861: Apache Airflow: Arbitrary File Read via Log Symlink following in FileTaskHandler
http://www.openwall.com/lists/oss-security/2026/05/31/1Refuse to follow log symlinks that resolve outside the base log folder
Fix merged in apache/airflow PR #65325 on 2026-04-16 — awaiting tagged release
https://github.com/apache/airflow/pull/65325Vendor Advisories for CVE-2026-40861(1)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
Affected Packages
(1 across 1 ecosystem)
PyPI(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| apache-airflow | 1.10.0 ... 3.2.2rc3 (289 versions) | 3.2.2 | — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 12× in last 7d / 69× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
Showing the most recent 100 of 107 total refreshes for this CVE.
- 2026-07-11 13:47 UTCEG score recompute
- 2026-07-11 08:27 UTCEPSS rescore
- 2026-07-09 19:10 UTCEPSS rescore
- 2026-07-08 17:05 UTCEG score recompute
- 2026-07-08 17:05 UTCGHSA enrichment
- 2026-07-08 15:15 UTCEPSS rescore
- 2026-07-07 13:46 UTCEPSS rescore
- 2026-07-06 16:27 UTCEPSS rescore
- 2026-07-06 16:27 UTCEPSS rescore
- 2026-07-06 02:23 UTCEPSS rescore
- 2026-07-06 02:23 UTCEPSS rescore
- 2026-07-05 02:30 UTCEPSS rescore
- 2026-07-04 06:31 UTCEPSS rescore
- 2026-07-02 02:31 UTCEG score recompute
- 2026-07-02 02:31 UTCGHSA enrichment
- 2026-07-01 15:06 UTCEPSS rescore
- 2026-07-01 00:47 UTCEG score recompute
- 2026-07-01 00:46 UTCGHSA enrichment
- 2026-06-30 23:22 UTCEPSS rescore
- 2026-06-29 14:11 UTCEG score recompute
- 2026-06-29 14:10 UTCGHSA enrichment
- 2026-06-29 14:06 UTCEPSS rescore
- 2026-06-28 16:14 UTCEG score recompute
- 2026-06-28 16:14 UTCGHSA enrichment
- 2026-06-28 14:07 UTCEPSS rescore
Show 75 moreShow fewer
- 2026-06-28 04:56 UTCEPSS rescore
- 2026-06-27 18:17 UTCEG score recompute
- 2026-06-27 18:17 UTCGHSA enrichment
- 2026-06-27 03:08 UTCEPSS rescore
- 2026-06-26 20:19 UTCEG score recompute
- 2026-06-26 20:19 UTCGHSA enrichment
- 2026-06-25 22:22 UTCEG score recompute
- 2026-06-25 22:22 UTCGHSA enrichment
- 2026-06-25 13:49 UTCEPSS rescore
- 2026-06-25 13:49 UTCEPSS rescore
- 2026-06-25 00:22 UTCEG score recompute
- 2026-06-25 00:22 UTCGHSA enrichment
- 2026-06-24 14:05 UTCEPSS rescore
- 2026-06-24 02:15 UTCEG score recompute
- 2026-06-24 02:15 UTCGHSA enrichment
- 2026-06-23 21:33 UTCEPSS rescore
- 2026-06-22 14:25 UTCEPSS rescore
- 2026-06-22 14:25 UTCEPSS rescore
- 2026-06-21 14:56 UTCEPSS rescore
- 2026-06-21 14:56 UTCEPSS rescore
- 2026-06-21 01:59 UTCEPSS rescore
- 2026-06-19 19:25 UTCEPSS rescore
- 2026-06-18 17:52 UTCEPSS rescore
- 2026-06-18 17:52 UTCEPSS rescore
- 2026-06-18 03:50 UTCEG score recompute
- 2026-06-18 03:50 UTCGHSA enrichment
- 2026-06-17 17:53 UTCEPSS rescore
- 2026-06-17 05:53 UTCEG score recompute
- 2026-06-17 05:53 UTCGHSA enrichment
- 2026-06-16 17:52 UTCEPSS rescore
- 2026-06-16 07:57 UTCEG score recompute
- 2026-06-16 07:57 UTCGHSA enrichment
- 2026-06-15 17:49 UTCEPSS rescore
- 2026-06-15 10:00 UTCEG score recompute
- 2026-06-15 10:00 UTCGHSA enrichment
- 2026-06-14 12:01 UTCEG score recompute
- 2026-06-14 12:01 UTCGHSA enrichment
- 2026-06-13 23:00 UTCEPSS rescore
- 2026-06-13 14:04 UTCEG score recompute
- 2026-06-13 14:04 UTCGHSA enrichment
- 2026-06-12 23:12 UTCEPSS rescore
- 2026-06-12 23:12 UTCEPSS rescore
- 2026-06-12 16:07 UTCEG score recompute
- 2026-06-12 16:07 UTCGHSA enrichment
- 2026-06-11 18:09 UTCEG score recompute
- 2026-06-11 18:09 UTCGHSA enrichment
- 2026-06-11 14:00 UTCEPSS rescore
- 2026-06-10 22:18 UTCEPSS rescore
- 2026-06-10 20:13 UTCEG score recompute
- 2026-06-10 20:13 UTCGHSA enrichment
- 2026-06-10 13:22 UTCEPSS rescore
- 2026-06-10 13:22 UTCEPSS rescore
- 2026-06-09 22:17 UTCEG score recompute
- 2026-06-09 22:17 UTCGHSA enrichment
- 2026-06-09 00:20 UTCEG score recompute
- 2026-06-09 00:20 UTCGHSA enrichment
- 2026-06-08 14:17 UTCEPSS rescore
- 2026-06-08 14:17 UTCEPSS rescore
- 2026-06-08 02:24 UTCEG score recompute
- 2026-06-08 02:24 UTCGHSA enrichment
- 2026-06-07 15:25 UTCEPSS rescore
- 2026-06-07 15:25 UTCEPSS rescore
- 2026-06-07 04:28 UTCEG score recompute
- 2026-06-07 04:28 UTCGHSA enrichment
- 2026-06-06 13:47 UTCEPSS rescore
- 2026-06-06 13:47 UTCEPSS rescore
- 2026-06-06 06:31 UTCEG score recompute
- 2026-06-06 06:31 UTCGHSA enrichment
- 2026-06-05 22:47 UTCEPSS rescore
- 2026-06-05 08:35 UTCEG score recompute
- 2026-06-05 08:35 UTCGHSA enrichment
- 2026-06-05 06:10 UTCEPSS rescore
- 2026-06-05 06:10 UTCEPSS rescore
- 2026-06-04 13:12 UTCEPSS rescore
- 2026-06-04 13:12 UTCEPSS rescore
Related CVEs(same CWE)
Frequently asked(5)
What is CVE-2026-40861?
When was CVE-2026-40861 disclosed?
Is CVE-2026-40861 actively exploited?
What is the CVSS score of CVE-2026-40861?
How do I remediate CVE-2026-40861?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2026-40861
Is Your Infrastructure Affected by CVE-2026-40861?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.