{"id":"CVE-2026-40861","state":"PUBLISHED","title":"Apache Airflow: Arbitrary File Read via Log Symlink following in FileTaskHandler","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.","publishedAt":"2026-06-01T07:55:37.566Z","updatedAt":"2026-06-02T16:42:26.285Z","severity":{"score":6.5,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","source":"CISA-ADP"},"assigner":"apache","products":["Apache Software Foundation Apache Airflow"],"affected":[{"vendor":"Apache Software Foundation","product":"Apache Airflow","packageName":"apache-airflow","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"3.2.2","versionType":"semver"}],"collectionURL":"https://pypi.python.org"}],"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"],"weaknesses":["CWE-59"],"ingestedAt":"2026-10-29T20:11:57.932Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/40xxx/CVE-2026-40861.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-40861","state":"PUBLISHED","datePublished":"2026-06-01T07:55:37.566Z","dateUpdated":"2026-06-02T16:42:26.285Z","assignerShortName":"apache","assignerOrgId":"f0158376-9dc2-43b6-827c-5f631a4d8d09","dateReserved":"2026-04-15T13:58:24.192Z"},"containers":{"cna":{"title":"Apache Airflow: Arbitrary File Read via Log Symlink following in FileTaskHandler","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Apache Software Foundation","product":"Apache Airflow","packageName":"apache-airflow","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"3.2.2","versionType":"semver"}],"collectionURL":"https://pypi.python.org"}],"references":[{"url":"https://github.com/apache/airflow/pull/65325","tags":["patch"]},{"url":"https://lists.apache.org/thread/823334db2559xjlwt59gpzjz47thnscl","tags":["vendor-advisory"]}],"metrics":[{"other":{"content":{"text":"low"},"type":"Textual description of severity"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-59","description":"CWE-59: Improper Link Resolution Before File Access ('Link Following')","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"apache","orgId":"f0158376-9dc2-43b6-827c-5f631a4d8d09","dateUpdated":"2026-06-01T07:55:37.566Z"},"credits":[{"lang":"en","type":"finder","value":"Silas Boch"},{"lang":"en","type":"finder","value":"Lakshmikanthan K (letchupkt)"},{"lang":"en","type":"remediation developer","value":"Jarek Potiuk"}],"source":{"discovery":"UNKNOWN"},"x_generator":{"engine":"airflow-s/generate_cve_json.py"}},"adp":[{"title":"CVE Program Container","references":[{"url":"http://www.openwall.com/lists/oss-security/2026/05/31/1"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2026-06-01T09:52:20.189Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":6.5,"attackVector":"NETWORK","baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","integrityImpact":"NONE","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"NONE","privilegesRequired":"LOW","confidentialityImpact":"HIGH"}},{"other":{"type":"ssvc","content":{"timestamp":"2026-06-02T16:33:03.378849Z","id":"CVE-2026-40861","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-06-02T16:42:26.285Z"}}]}}}