{"id":"CVE-2026-40861","aliases":["CVE-2026-40861","GHSA-89cj-xrpx-j79m","BIT-AIRFLOW-2026-40861","PYSEC-2026-181"],"related":[],"kind":"vulnerability","state":"published","title":"Apache Airflow: Arbitrary File Read via Log Symlink following in FileTaskHandler","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"Un autor de Dag podría (a) crear un enlace simbólico bajo el directorio de logs de su tarea apuntando a un archivo arbitrario legible por el proceso del servidor API (ataque de ruta de lectura - p. ej. '/etc/pass1d' o 'airflow.cfg') o (b) proporcionar un 'task_id' que contenga secuencias '..' aceptadas por el 'KEY_REGEX' del SDK de Tareas (ataque de ruta de escritura), y en ambos casos el FileTaskHandler resuelve la ruta del log fuera de la 'base_log_folder' configurada, filtrando o sobrescribiendo archivos arbitrarios. Solo afecta a despliegues donde la carpeta de logs del worker es compartida con el servidor API. Se aconseja a los usuarios actualizar a 'apache-airflow' 3.2.2 o posterior. Como mitigación de defensa en profundidad, despliegue el worker y el servidor API con volúmenes de log separados para que las rutas controladas por el worker no puedan alcanzar el sistema de archivos del servidor API.","source":"nvd"}],"published":"2026-06-01T07:55:37.566Z","modified":"2026-11-03T07:19:54.920Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS: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,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS: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,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS: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,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS: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,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-59"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"3.0.0","status":"affected"}],"vendor":"Apache Software Foundation","product":"Apache Airflow","package":"apache-airflow","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"3.0.0","fixed":"3.2.2","status":"affected"}],"vendor":"Apache Software Foundation","product":"Apache Airflow","package":"apache-airflow-core","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.2.2"}],"ecosystem":"PyPI","package":"apache-airflow","purl":"pkg:pypi/apache-airflow","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"3.2.2"}],"vendor":"apache","product":"airflow","cpe":"cpe:2.3:a:apache:airflow:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.2.2"}],"ecosystem":"PyPI","package":"apache-airflow","purl":"pkg:pypi/apache-airflow","source":"pysec"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.2.2"}],"ecosystem":"Bitnami","package":"airflow","purl":"pkg:bitnami/airflow","source":"bitnami"}],"references":[{"url":"https://github.com/apache/airflow/pull/65325","tags":["fix","issue-tracking","patch","web"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://lists.apache.org/thread/823334db2559xjlwt59gpzjz47thnscl","tags":["advisory","mailing-list","vendor-advisory","web"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"http://www.openwall.com/lists/oss-security/2026/05/31/1","tags":["advisory","mailing-list","third-party-advisory","web"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40861","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/apache/airflow","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/apache-airflow/PYSEC-2026-181.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-89cj-xrpx-j79m","tags":["advisory"],"sources":["pysec"]}],"credits":["Silas Boch","Lakshmikanthan K (letchupkt)","Jarek Potiuk"],"assigner":"apache","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-06-02T16:33:03.378Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-40861","url":"https://www.cve.org/CVERecord?id=CVE-2026-40861","licence":"CVE Terms of Use","modified":"2026-11-03T06:54:55.643Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-89cj-xrpx-j79m","url":"https://github.com/advisories/GHSA-89cj-xrpx-j79m","licence":"CC-BY-4.0","modified":"2026-07-09T21:11:15.179Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-40861","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40861","licence":"Public domain","modified":"2026-11-03T07:19:54.920Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-181","url":"https://osv.dev/vulnerability/PYSEC-2026-181","licence":"CC-BY-4.0","modified":"2026-07-13T16:45:04.882Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-AIRFLOW-2026-40861","url":"https://osv.dev/vulnerability/BIT-AIRFLOW-2026-40861","licence":"Apache-2.0","modified":"2026-09-08T08:45:22.397Z"}],"updatedAt":"2026-11-25T22:59:23.426Z","epss":{"score":0.00691,"percentile":0.54113,"date":"2026-12-01T12:00:22.000Z"}}