{"cve":"CVE-2026-40861","nvd":{"published":"2026-06-01T09:16:17.893","modified":"2026-07-21T19:10:00.107","status":"Analyzed","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5},"cwes":["CWE-59"],"references":["https://github.com/apache/airflow/pull/65325","https://lists.apache.org/thread/823334db2559xjlwt59gpzjz47thnscl","http://www.openwall.com/lists/oss-security/2026/05/31/1"],"products":["apache:airflow"],"source":"nvd","synced_at":"2026-10-19T22:37:48.043517290+00:00"},"epss":{"cve":"CVE-2026-40861","score":0.00691,"percentile":0.52861,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-89cj-xrpx-j79m","url":"https://osv.dev/vulnerability/GHSA-89cj-xrpx-j79m","summary":"Apache Airflow has a Link Following issue","modified":"2026-07-09T21:11:15.179661288Z","packages":[{"ecosystem":"PyPI","name":"apache-airflow","purl":"pkg:pypi/apache-airflow","ranges":["<3.2.2"],"fixed":["3.2.2"]}]},{"id":"PYSEC-2026-181","url":"https://osv.dev/vulnerability/PYSEC-2026-181","summary":"","modified":"2026-07-13T16:45:04.882012634Z","packages":[{"ecosystem":"PyPI","name":"apache-airflow","purl":"pkg:pypi/apache-airflow","ranges":["<3.2.2"],"fixed":["3.2.2"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}