CVE-2026-40861
published medium CVSS 3.1 · 6.5Apache Airflow: Arbitrary File Read via Log Symlink following in FileTaskHandler
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Apache Software Foundation | — | apache-airflowApache Airflow · 0 to < 3.0.0 · Other versions: unaffected | Affected | Not stated | apache |
| Apache Software Foundation | — | apache-airflow-coreApache Airflow · 3.0.0 to < 3.2.2 · Other versions: unaffected | Affected | Not stated | apache |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.5 / 10
- Severity
- medium
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Apache Software Foundation | Apache Airflow | 0 to < 3.0.0 (affected · semver)Default: unaffected | apache · cna |
| Apache Software Foundation | Apache Airflow | 3.0.0 to < 3.2.2 (affected · semver)Default: unaffected | apache · cna |
Weaknesses
1- CWE-59 CWE-59: Improper Link Resolution Before File Access ('Link Following')
References
3Provider assertions
3apache · cna
Apache Airflow: Arbitrary File Read via Log Symlink following in FileTaskHandler
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- c82edb15445b33ae7f7be010ce233b4d7354eb4585bfed67c7aa8b6838936dca
- Ingested
- 03 Nov 2026, 07:03:29 UTC
- Source record
- Official CVE record