{"id":"CVE-2026-40861","published":"2026-06-01T07:55:37Z","modified":"2026-11-03T06:54:55Z","title":"Apache Airflow: Arbitrary File Read via Log Symlink following in FileTaskHandler","vendor":"Apache","product":"Apache Airflow","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00758,"percentile":0.51437,"provenance":"source"},"cwes":[{"id":"CWE-59","name":"Improper Link Resolution Before File Access"}],"references":[{"url":"https://github.com/apache/airflow/pull/65325","tags":["patch"]},{"url":"https://lists.apache.org/thread/823334db2559xjlwt59gpzjz47thnscl","tags":["vendor-advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2026/05/31/1","tags":[]}],"priority":{"score":14.8,"factors":[{"name":"EPSS percentile","points":10.29},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"apache","affectedVersions":[{"vendor":"Apache Software Foundation","product":"Apache Airflow","versions":["< 3.0.0"]},{"vendor":"Apache Software Foundation","product":"Apache Airflow","versions":[">= 3.0.0, < 3.2.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-06-02T16:33:03.378849Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"apache-airflow","vulnerableRanges":["<3.2.2"],"patched":["3.2.2"],"from":["GHSA-89cj-xrpx-j79m","PYSEC-2026-181"],"provenance":"source"}],"summary":{"text":"The flaw is in the FileTaskHandler component of Apache Airflow, where log paths are resolved without confining them to the configured base log folder, so symlinks or crafted task identifiers can point outside it. The issue only affects deployments where the worker log folder is shared with the API server. An attacker who is a Dag author can read arbitrary files readable by the API server process, or in the write-path variant, overwrite arbitrary files, using a symlink in their task's log directory or a task_id containing \"..\" sequences that the Task SDK's KEY_REGEX accepts.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:31:45Z"},"euvd":{"id":"EUVD-2026-33598","exploited":false,"provenance":"source"}}