{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-40861","id":"CVE-2026-40861","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 `ba","descriptionLong":"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.","published":"2026-06-01T07:55:37.566Z","updated":"2026-11-04T02:47:34.092608233Z","reserved":"2026-04-15T13:58:24.192Z","status":"Analyzed","rejected":false,"assigner":"apache","metric":{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","rating":"medium","source":"CISA-ADP"},"metrics":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","rating":"medium","source":"CISA-ADP"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":["Apache Software Foundation Apache Airflow"],"affectedProducts":[{"vendor":"Apache Software Foundation","product":"Apache Airflow","defaultStatus":"unaffected","versions":[{"status":"affected","version":"0","lessThan":"3.0.0","versionType":"semver"}],"platforms":[]},{"vendor":"Apache Software Foundation","product":"Apache Airflow","defaultStatus":"unaffected","versions":[{"status":"affected","version":"3.0.0","lessThan":"3.2.2","versionType":"semver"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"apache-airflow","purl":"pkg:pypi/apache-airflow","ranges":["<3.2.2"],"fixed":["3.2.2"],"advisory":"GHSA-89cj-xrpx-j79m"}],"cwes":["CWE-59"],"aliases":["BIT-airflow-2026-40861","GHSA-89cj-xrpx-j79m","PYSEC-2026-181"],"references":[{"url":"https://github.com/apache/airflow/pull/65325","tags":["patch","Issue Tracking","Patch","fix","web"]},{"url":"https://lists.apache.org/thread/823334db2559xjlwt59gpzjz47thnscl","tags":["vendor-advisory","Mailing List","Vendor Advisory","advisory","web"]},{"url":"http://www.openwall.com/lists/oss-security/2026/05/31/1","tags":["Mailing List","Third Party Advisory","web","advisory"]},{"url":"https://pypi.python.org","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40861.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40861","tags":["advisory"]},{"url":"https://github.com/apache/airflow","tags":["package"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/apache-airflow/PYSEC-2026-181.yaml","tags":["web"]},{"url":"https://github.com/advisories/GHSA-89cj-xrpx-j79m","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00691,"epssPercentile":0.53632,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-40861","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40861","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-40861","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-89cj-xrpx-j79m","ok":true,"note":"GHSA-89cj-xrpx-j79m"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-40861","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}