CVE-2026-11816
JSON

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 packageVersionsReported by
keras-team keras-team/kerasfrom unspecified before 3.14.0CVE List
rhoai/odh-kserve-storage-initializer-rhel9Not specified
Not affected: from 1783024305 before *
CVE List
rhoai/odh-modelmesh-runtime-adapter-rhel9Not specified
Not affected: from 1783342900 before *
CVE List
rhoai/odh-kserve-agent-rhel9Not specifiedCVE List
rhoai/odh-kserve-controller-rhel9Not specifiedCVE List
rhoai/odh-kserve-router-rhel9Not specifiedCVE List
rhoai/odh-pipeline-runtime-tensorflow-cuda-py312-rhel9Not specifiedCVE List
rhoai/odh-pipeline-runtime-tensorflow-rocm-py312-rhel9Not specifiedCVE List
rhoai/odh-workbench-jupyter-tensorflow-cuda-py312-rhel9Not specifiedCVE List
rhoai/odh-workbench-jupyter-tensorflow-rocm-py312-rhel9Not specifiedCVE List
keras (PyPI)before 3.14.0GitHub Advisory Database, PyPA Advisory Database
keras kerasbefore 3.14.0NVD

All scores

@huntr_ai8.1high CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
redhat-SADP8.1high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
GitHub8.1high CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
PyPA Advisory Database8.1high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N

Classification

CWE-22

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-38f1dea01a4fevidence, exploit, third-party-advisory, web
https://github.com/keras-team/keras/commit/2465b6657b02c8eed308759b7e800e295ae01888fix, patch, web
https://access.redhat.com/security/cve/CVE-2026-11816advisory, mitigation, third-party-advisory, vdb-entry, web
https://bugzilla.redhat.com/show_bug.cgi?id=2487912advisory, issue-tracking, third-party-advisory, web
https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-11816.jsonadvisory, third-party-advisory, web
https://access.redhat.com/errata/RHSA-2026:42644vendor-advisory, web
https://nvd.nist.gov/vuln/detail/CVE-2026-11816advisory
https://github.com/keras-team/keras/pull/22194web
https://github.com/keras-team/keraspackage
https://github.com/keras-team/keras/releases/tag/v3.14.0web
https://github.com/pypa/advisory-database/tree/main/vulns/keras/PYSEC-2026-2324.yamlweb
https://github.com/advisories/GHSA-hqp4-2352-xf5radvisory

Sources

SourceRecordLicence
CVE ListCVE-2026-11816 changed 2026-07-21CVE Terms of Use
GitHub Advisory DatabaseGHSA-hqp4-2352-xf5r changed 2026-08-07CC-BY-4.0
NVDCVE-2026-11816 changed 2026-10-26Public domain
PyPA Advisory DatabasePYSEC-2026-2324 changed 2026-08-10CC-BY-4.0