8.1high
Path Traversal in keras-team/keras
- Severity
- 8.1high CVSS:3.1 by redhat-SADP
- Exploit likelihood
- 0.56% (higher than 48% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- @huntr_ai
- Also known as
- GHSA-hqp4-2352-xf5rPYSEC-2026-2324
Description
Keras versions prior to 3.14.0 are vulnerable to a path traversal issue in the archive extraction utilities located in `keras/src/utils/file_utils.py`. The functions `filter_safe_tarinfos()` and `filter_safe_zipinfos()` validate archive member paths against the process current working directory (CWD) instead of the actual extraction destination. When the process runs with CWD set to `/`, which is common in Docker containers, CI/CD runners, and Jupyter environments, the validation boundary becomes the filesystem root, allowing traversal paths to bypass the security check. Additionally, the zip filter contains a bug that causes an `AttributeError` when a blocked entry is encountered, leading to incomplete extraction. Furthermore, Python 3.11 installations lack the `filter="data"` safety net, leaving them entirely reliant on the flawed CWD-based filter. Exploitation of this vulnerability can result in arbitrary file writes outside the intended extraction directory, enabling attackers to overwrite configuration files, inject malicious code, or corrupt machine learning datasets and pipelines.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| keras-team keras-team/keras | from unspecified before 3.14.0 | CVE List |
| rhoai/odh-kserve-storage-initializer-rhel9 | Not specified Not affected: from 1783024305 before * | CVE List |
| rhoai/odh-modelmesh-runtime-adapter-rhel9 | Not specified Not affected: from 1783342900 before * | CVE List |
| rhoai/odh-kserve-agent-rhel9 | Not specified | CVE List |
| rhoai/odh-kserve-controller-rhel9 | Not specified | CVE List |
| rhoai/odh-kserve-router-rhel9 | Not specified | CVE List |
| rhoai/odh-pipeline-runtime-tensorflow-cuda-py312-rhel9 | Not specified | CVE List |
| rhoai/odh-pipeline-runtime-tensorflow-rocm-py312-rhel9 | Not specified | CVE List |
| rhoai/odh-workbench-jupyter-tensorflow-cuda-py312-rhel9 | Not specified | CVE List |
| rhoai/odh-workbench-jupyter-tensorflow-rocm-py312-rhel9 | Not specified | CVE List |
| keras (PyPI) | before 3.14.0 | GitHub Advisory Database, PyPA Advisory Database |
| keras keras | before 3.14.0 | NVD |
All scores
| @huntr_ai | 8.1high CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N |
| redhat-SADP | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N |
| GitHub | 8.1high CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N |
| PyPA Advisory Database | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.
What each source says
CVE List
Keras versions prior to 3.14.0 are vulnerable to a path traversal issue in the archive extraction utilities located in `keras/src/utils/file_utils.py`. The functions `filter_safe_tarinfos()` and `filter_safe_zipinfos()` validate archive member paths against the process current working directory (CWD) instead of the actual extraction destination. When the process runs with CWD set to `/`, which is common in Docker containers, CI/CD runners, and Jupyter environments, the validation boundary becomes the filesystem root, allowing traversal paths to bypass the security check. Additionally, the zip filter contains a bug that causes an `AttributeError` when a blocked entry is encountered, leading to incomplete extraction. Furthermore, Python 3.11 installations lack the `filter="data"` safety net, leaving them entirely reliant on the flawed CWD-based filter. Exploitation of this vulnerability can result in arbitrary file writes outside the intended extraction directory, enabling attackers to overwrite configuration files, inject malicious code, or corrupt machine learning datasets and pipelines.
NVD (es)
Las versiones de Keras anteriores a la 3.14.0 son vulnerables a un problema de salto de ruta en las utilidades de extracción de archivos ubicadas en ’keras/src/utils/file_utils.py’. Las funciones ’filter_safe_tarinfos()’ y ’filter_safe_zipinfos()’ validan las rutas de los miembros del archivo contra el directorio de trabajo actual del proceso (CWD) en lugar del destino de extracción real. Cuando el proceso se ejecuta con CWD establecido en ’/’, lo cual es común en contenedores Docker, ejecutores de CI/CD y entornos Jupyter, el límite de validación se convierte en la raíz del sistema de archivos, permitiendo que las rutas de salto eludan la comprobación de seguridad. Además, el filtro zip contiene un error que causa un ’AttributeError’ cuando se encuentra una entrada bloqueada, lo que lleva a una extracción incompleta. Además, las instalaciones de Python 3.11 carecen de la red de seguridad ’filter=“data”’, dejándolas completamente dependientes del filtro defectuoso basado en CWD. La explotación de esta vulnerabilidad puede resultar en escrituras de archivos arbitrarias fuera del directorio de extracción previsto, permitiendo a los atacantes sobrescribir archivos de configuración, inyectar código malicioso o corromper conjuntos de datos y pipelines de aprendizaje automático.
References
| https://huntr.com/bounties/a07e3983-7158-4419-af2b-38f1dea01a4f | evidence, exploit, third-party-advisory, web | |
| https://github.com/keras-team/keras/commit/2465b6657b02c8eed308759b7e800e295ae01888 | fix, patch, web | |
| https://access.redhat.com/security/cve/CVE-2026-11816 | advisory, mitigation, third-party-advisory, vdb-entry, web | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2487912 | advisory, issue-tracking, third-party-advisory, web | |
| https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-11816.json | advisory, third-party-advisory, web | |
| https://access.redhat.com/errata/RHSA-2026:42644 | vendor-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-11816 | advisory | |
| https://github.com/keras-team/keras/pull/22194 | web | |
| https://github.com/keras-team/keras | package | |
| https://github.com/keras-team/keras/releases/tag/v3.14.0 | web | |
| https://github.com/pypa/advisory-database/tree/main/vulns/keras/PYSEC-2026-2324.yaml | web | |
| https://github.com/advisories/GHSA-hqp4-2352-xf5r | advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-11816 changed 2026-07-21 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-hqp4-2352-xf5r changed 2026-08-07 | CC-BY-4.0 |
| NVD | CVE-2026-11816 changed 2026-10-26 | Public domain |
| PyPA Advisory Database | PYSEC-2026-2324 changed 2026-08-10 | CC-BY-4.0 |