CVE-2025-12638 Path Traversal Vulnerability in keras-team/keras via Tar Archive Extraction in keras.utils.get_file()
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: total
- Technology
- DebianRed Hat
Description
Keras version 3.11.3 is affected by a path traversal vulnerability in the keras.utils.get_file() function when extracting tar archives. The vulnerability arises because the function uses Python's tarfile.extractall() method without the security-critical filter='data' parameter. Although Keras attempts to filter unsafe paths using filter_safe_paths(), this filtering occurs before extraction, and a PATH_MAX symlink resolution bug triggers during extraction. This bug causes symlink resolution to fail due to path length limits, resulting in a security bypass that allows files to be written outside the intended extraction directory. This can lead to arbitrary file writes outside the cache directory, enabling potential system compromise or malicious code execution. The vulnerability affects Keras installations that process tar archives with get_file() and does not affect versions where this extraction method is secured with the appropriate filter parameter.
Upgrade path
23 packages: 2 fixed, 21 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| azure linux keras(Azure Linux 3.0) | All versions | No fix listed | No fix yet |
| debian/keras(Debian 11) | = 2.3.1+dfsg-3; = 2.3.1+dfsg2-1; All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-kserve-agent-rhel9:1770754605(Red Hat openshift_ai 3.3 el9) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-kserve-agent-rhel9:v2.25.1-1765613316(Red Hat openshift_ai 2.25 el9) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-kserve-controller-rhel9:1770754646(Red Hat openshift_ai 3.3 el9) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-kserve-controller-rhel9:v2.25.1-1765613316(Red Hat openshift_ai 2.25 el9) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-kserve-router-rhel9:1770754585(Red Hat openshift_ai 3.3 el9) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-kserve-router-rhel9:v2.25.1-1765613316(Red Hat openshift_ai 2.25 el9) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-kserve-storage-initializer-rhel9:1771840993(Red Hat openshift_ai 3.3 el9) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-kserve-storage-initializer-rhel9:v2.25.1-1765326513(Red Hat openshift_ai 2.25 el9) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-modelmesh-runtime-adapter-rhel8:1774283191(Red Hat openshift_ai 2.16 el8) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-modelmesh-runtime-adapter-rhel9:v2.25.1-1764825096(Red Hat openshift_ai 2.25 el9) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-pipeline-runtime-tensorflow-cuda-py312-rhel9:1771502897(Red Hat openshift_ai 3.3 el9) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-pipeline-runtime-tensorflow-cuda-py312-rhel9:v2.25.1-1764961121(Red Hat openshift_ai 2.25 el9) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-pipeline-runtime-tensorflow-rocm-py312-rhel9:1771502844(Red Hat openshift_ai 3.3 el9) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-pipeline-runtime-tensorflow-rocm-py312-rhel9:v2.25.1-1764961121(Red Hat openshift_ai 2.25 el9) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-workbench-jupyter-tensorflow-cuda-py312-rhel9:1771502910(Red Hat openshift_ai 3.3 el9) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-workbench-jupyter-tensorflow-cuda-py312-rhel9:v2.25.1-1764961121(Red Hat openshift_ai 2.25 el9) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-workbench-jupyter-tensorflow-rocm-py312-rhel9:1771502884(Red Hat openshift_ai 3.3 el9) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-workbench-jupyter-tensorflow-rocm-py312-rhel9:v2.25.1-1764961121(Red Hat openshift_ai 2.25 el9) | All versions | No fix listed | No fix yet |
| redhat/rhtas/model-transparency-rhel9:1772614635(Red Hat trusted_artifact_signer 1.3 el9) | All versions | No fix listed | No fix yet |
| keras-team/keras | <= latest | after latest | Fixed |
| pypi keras(PyPI) | < 3.12.0; = 0.2.0; = 0.3.0; = 0.3.1 +109 more | 3.12.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi keras(PyPI) | < 3.12.0 | 3.12.0 |
| pypi keras(PyPI) | = 0.2.0 | No fix listed |
| pypi keras(PyPI) | = 0.3.0 | No fix listed |
| pypi keras(PyPI) | = 0.3.1 | No fix listed |
| pypi keras(PyPI) | = 0.3.2 | No fix listed |
| pypi keras(PyPI) | = 0.3.3 | No fix listed |
| pypi keras(PyPI) | = 1.0.0 | No fix listed |
| pypi keras(PyPI) | = 1.0.1 | No fix listed |
| pypi keras(PyPI) | = 1.0.2 | No fix listed |
| pypi keras(PyPI) | = 1.0.3 | No fix listed |
| pypi keras(PyPI) | = 1.0.4 | No fix listed |
| pypi keras(PyPI) | = 1.0.5 | No fix listed |
| pypi keras(PyPI) | = 1.0.6 | No fix listed |
| pypi keras(PyPI) | = 1.0.7 | No fix listed |
| pypi keras(PyPI) | = 1.0.8 | No fix listed |
| pypi keras(PyPI) | = 1.1.0 | No fix listed |
| pypi keras(PyPI) | = 1.1.1 | No fix listed |
| pypi keras(PyPI) | = 1.1.2 | No fix listed |
| pypi keras(PyPI) | = 1.2.0 | No fix listed |
| pypi keras(PyPI) | = 1.2.1 | No fix listed |
| pypi keras(PyPI) | = 1.2.2 | No fix listed |
| pypi keras(PyPI) | = 2.0.0 | No fix listed |
| pypi keras(PyPI) | = 2.0.1 | No fix listed |
| pypi keras(PyPI) | = 2.0.2 | No fix listed |
| pypi keras(PyPI) | = 2.0.3 | No fix listed |
Show 112 more
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi keras(PyPI) | = 2.0.4 | No fix listed |
| pypi keras(PyPI) | = 2.0.5 | No fix listed |
| pypi keras(PyPI) | = 2.0.6 | No fix listed |
| pypi keras(PyPI) | = 2.0.7 | No fix listed |
| pypi keras(PyPI) | = 2.0.8 | No fix listed |
| pypi keras(PyPI) | = 2.0.9 | No fix listed |
| pypi keras(PyPI) | = 2.1.0 | No fix listed |
| pypi keras(PyPI) | = 2.1.1 | No fix listed |
| pypi keras(PyPI) | = 2.1.2 | No fix listed |
| pypi keras(PyPI) | = 2.1.3 | No fix listed |
| pypi keras(PyPI) | = 2.1.4 | No fix listed |
| pypi keras(PyPI) | = 2.1.5 | No fix listed |
| pypi keras(PyPI) | = 2.1.6 | No fix listed |
| pypi keras(PyPI) | = 2.10.0 | No fix listed |
| pypi keras(PyPI) | = 2.10.0rc0 | No fix listed |
| pypi keras(PyPI) | = 2.10.0rc1 | No fix listed |
| pypi keras(PyPI) | = 2.11.0 | No fix listed |
| pypi keras(PyPI) | = 2.11.0rc0 | No fix listed |
| pypi keras(PyPI) | = 2.11.0rc1 | No fix listed |
| pypi keras(PyPI) | = 2.11.0rc2 | No fix listed |
| pypi keras(PyPI) | = 2.11.0rc3 | No fix listed |
| pypi keras(PyPI) | = 2.12.0 | No fix listed |
| pypi keras(PyPI) | = 2.12.0rc0 | No fix listed |
| pypi keras(PyPI) | = 2.12.0rc1 | No fix listed |
| pypi keras(PyPI) | = 2.13.1 | No fix listed |
| pypi keras(PyPI) | = 2.13.1rc0 | No fix listed |
| pypi keras(PyPI) | = 2.13.1rc1 | No fix listed |
| pypi keras(PyPI) | = 2.14.0 | No fix listed |
| pypi keras(PyPI) | = 2.14.0rc0 | No fix listed |
| pypi keras(PyPI) | = 2.15.0 | No fix listed |
| pypi keras(PyPI) | = 2.15.0rc0 | No fix listed |
| pypi keras(PyPI) | = 2.15.0rc1 | No fix listed |
| pypi keras(PyPI) | = 2.2.0 | No fix listed |
| pypi keras(PyPI) | = 2.2.1 | No fix listed |
| pypi keras(PyPI) | = 2.2.2 | No fix listed |
| pypi keras(PyPI) | = 2.2.3 | No fix listed |
| pypi keras(PyPI) | = 2.2.4 | No fix listed |
| pypi keras(PyPI) | = 2.2.5 | No fix listed |
| pypi keras(PyPI) | = 2.3.0 | No fix listed |
| pypi keras(PyPI) | = 2.3.1 | No fix listed |
| pypi keras(PyPI) | = 2.4.0 | No fix listed |
| pypi keras(PyPI) | = 2.4.1 | No fix listed |
| pypi keras(PyPI) | = 2.4.2 | No fix listed |
| pypi keras(PyPI) | = 2.4.3 | No fix listed |
| pypi keras(PyPI) | = 2.5.0rc0 | No fix listed |
| pypi keras(PyPI) | = 2.6.0 | No fix listed |
| pypi keras(PyPI) | = 2.6.0rc0 | No fix listed |
| pypi keras(PyPI) | = 2.6.0rc1 | No fix listed |
| pypi keras(PyPI) | = 2.6.0rc2 | No fix listed |
| pypi keras(PyPI) | = 2.6.0rc3 | No fix listed |
| pypi keras(PyPI) | = 2.7.0 | No fix listed |
| pypi keras(PyPI) | = 2.7.0rc0 | No fix listed |
| pypi keras(PyPI) | = 2.7.0rc2 | No fix listed |
| pypi keras(PyPI) | = 2.8.0 | No fix listed |
| pypi keras(PyPI) | = 2.8.0rc0 | No fix listed |
| pypi keras(PyPI) | = 2.8.0rc1 | No fix listed |
| pypi keras(PyPI) | = 2.9.0 | No fix listed |
| pypi keras(PyPI) | = 2.9.0rc0 | No fix listed |
| pypi keras(PyPI) | = 2.9.0rc1 | No fix listed |
| pypi keras(PyPI) | = 2.9.0rc2 | No fix listed |
| pypi keras(PyPI) | = 3.0.0 | No fix listed |
| pypi keras(PyPI) | = 3.0.1 | No fix listed |
| pypi keras(PyPI) | = 3.0.2 | No fix listed |
| pypi keras(PyPI) | = 3.0.3 | No fix listed |
| pypi keras(PyPI) | = 3.0.4 | No fix listed |
| pypi keras(PyPI) | = 3.0.5 | No fix listed |
| pypi keras(PyPI) | = 3.1.0 | No fix listed |
| pypi keras(PyPI) | = 3.1.1 | No fix listed |
| pypi keras(PyPI) | = 3.10.0 | No fix listed |
| pypi keras(PyPI) | = 3.11.0 | No fix listed |
| pypi keras(PyPI) | = 3.11.1 | No fix listed |
| pypi keras(PyPI) | = 3.11.2 | No fix listed |
| pypi keras(PyPI) | = 3.11.3 | No fix listed |
| pypi keras(PyPI) | = 3.2.0 | No fix listed |
| pypi keras(PyPI) | = 3.2.1 | No fix listed |
| pypi keras(PyPI) | = 3.3.0 | No fix listed |
| pypi keras(PyPI) | = 3.3.1 | No fix listed |
| pypi keras(PyPI) | = 3.3.2 | No fix listed |
| pypi keras(PyPI) | = 3.3.3 | No fix listed |
| pypi keras(PyPI) | = 3.4.0 | No fix listed |
| pypi keras(PyPI) | = 3.4.1 | No fix listed |
| pypi keras(PyPI) | = 3.5.0 | No fix listed |
| pypi keras(PyPI) | = 3.6.0 | No fix listed |
| pypi keras(PyPI) | = 3.7.0 | No fix listed |
| pypi keras(PyPI) | = 3.8.0 | No fix listed |
| pypi keras(PyPI) | = 3.9.0 | No fix listed |
| pypi keras(PyPI) | = 3.9.1 | No fix listed |
| pypi keras(PyPI) | = 3.9.2 | No fix listed |
| azure linux keras(Azure Linux:3.0) | All versions | No fix listed |
| debian/keras(Debian:11) | All versions | No fix listed |
| debian/keras(Debian:11) | = 2.3.1+dfsg-3 | No fix listed |
| debian/keras(Debian:11) | = 2.3.1+dfsg2-1 | No fix listed |
| keras-team/keras | <= latest | No fix listed |
| redhat/rhoai/odh-modelmesh-runtime-adapter-rhel8:1774283191(Red Hat:openshift_ai:2.16::el8) | All versions | No fix listed |
| redhat/rhoai/odh-kserve-agent-rhel9:v2.25.1-1765613316(Red Hat:openshift_ai:2.25::el9) | All versions | No fix listed |
| redhat/rhoai/odh-kserve-controller-rhel9:v2.25.1-1765613316(Red Hat:openshift_ai:2.25::el9) | All versions | No fix listed |
| redhat/rhoai/odh-kserve-router-rhel9:v2.25.1-1765613316(Red Hat:openshift_ai:2.25::el9) | All versions | No fix listed |
| redhat/rhoai/odh-kserve-storage-initializer-rhel9:v2.25.1-1765326513(Red Hat:openshift_ai:2.25::el9) | All versions | No fix listed |
| redhat/rhoai/odh-modelmesh-runtime-adapter-rhel9:v2.25.1-1764825096(Red Hat:openshift_ai:2.25::el9) | All versions | No fix listed |
| redhat/rhoai/odh-pipeline-runtime-tensorflow-cuda-py312-rhel9:v2.25.1-1764961121(Red Hat:openshift_ai:2.25::el9) | All versions | No fix listed |
| redhat/rhoai/odh-pipeline-runtime-tensorflow-rocm-py312-rhel9:v2.25.1-1764961121(Red Hat:openshift_ai:2.25::el9) | All versions | No fix listed |
| redhat/rhoai/odh-workbench-jupyter-tensorflow-cuda-py312-rhel9:v2.25.1-1764961121(Red Hat:openshift_ai:2.25::el9) | All versions | No fix listed |
| redhat/rhoai/odh-workbench-jupyter-tensorflow-rocm-py312-rhel9:v2.25.1-1764961121(Red Hat:openshift_ai:2.25::el9) | All versions | No fix listed |
| redhat/rhoai/odh-kserve-agent-rhel9:1770754605(Red Hat:openshift_ai:3.3::el9) | All versions | No fix listed |
| redhat/rhoai/odh-kserve-controller-rhel9:1770754646(Red Hat:openshift_ai:3.3::el9) | All versions | No fix listed |
| redhat/rhoai/odh-kserve-router-rhel9:1770754585(Red Hat:openshift_ai:3.3::el9) | All versions | No fix listed |
| redhat/rhoai/odh-kserve-storage-initializer-rhel9:1771840993(Red Hat:openshift_ai:3.3::el9) | All versions | No fix listed |
| redhat/rhoai/odh-pipeline-runtime-tensorflow-cuda-py312-rhel9:1771502897(Red Hat:openshift_ai:3.3::el9) | All versions | No fix listed |
| redhat/rhoai/odh-pipeline-runtime-tensorflow-rocm-py312-rhel9:1771502844(Red Hat:openshift_ai:3.3::el9) | All versions | No fix listed |
| redhat/rhoai/odh-workbench-jupyter-tensorflow-cuda-py312-rhel9:1771502910(Red Hat:openshift_ai:3.3::el9) | All versions | No fix listed |
| redhat/rhoai/odh-workbench-jupyter-tensorflow-rocm-py312-rhel9:1771502884(Red Hat:openshift_ai:3.3::el9) | All versions | No fix listed |
| redhat/rhtas/model-transparency-rhel9:1772614635(Red Hat:trusted_artifact_signer:1.3::el9) | All versions | No fix listed |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch
- github.com product
- huntr.com exploit
- MSRC Security Update Guide vendor-advisory
- security-tracker.debian.org vendor-advisory
- github.com
- Red Hat CVE page mitigation vendor-advisory
- RHSA-2026:5807 patch vendor-advisory
- RHSA-2025:23531 patch vendor-advisory
- RHSA-2026:3713 patch vendor-advisory
- RHSA-2026:4271 patch vendor-advisory
- Red Hat Bugzilla 2417711 issue-tracking
- www.cve.org