CVE-2024-55459: keras Path Traversal vulnerability
An issue in keras 3.7.0 allows attackers to write arbitrary files to the user's machine via downloading a crafted tar file through the getfile function.
Published Jan 8, 2025 · Updated Jun 6, 2026
Affected packages
keras
- Ecosystem
- PyPI
- Affected
- <= 3.7.0
- Fixed in
- No patched version yet
- Check
pip show keras
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
An issue in keras 3.7.0 allows attackers to write arbitrary files to the user's machine via downloading a crafted tar file through the get_file function.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-55459
- https://github.com/keras-team/keras
- https://keras.io
- https://river-bicycle-f1e.notion.site/Arbitrary-File-Write-Vulnerability-in-get_file-function-11888e31952580179224e50892976d32
- https://github.com/keras-team/keras/blob/8f5592bcb61ff48c96560c8923e482db1076b54a/keras/src/utils/file_utils.py#L115
- https://github.com/pypa/advisory-database/tree/main/vulns/keras/PYSEC-2025-121.yaml
- https://github.com/advisories/GHSA-cjgq-5qmw-rcj6
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More PyPI vulnerabilities
All PyPI entriesCVE-2026-12570
Keras model loading is vulnerable to denial of service through HDF5 shape bombs
medium5.5Aug 10, 2026CVE-2026-9335
Keras: HDF5 links can disclose local file contents
medium6.5Aug 2, 2026CVE-2026-12484
Keras: TorchModuleWrapper can deserialize unsafe PyTorch pickle data
high7.8Jul 19, 2026CVE-2026-12482
Keras: tar extraction permits symlink-based path traversal
low3.1Jul 14, 2026CVE-2026-12481
Keras: Lambda deserialization can bypass safe mode and execute code
high8.8Jul 3, 2026CVE-2026-12480
Keras: HDF5 virtual datasets can disclose local files
medium5.5Jul 1, 2026
