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 get_file function.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | keras | <= 3.7.0 | no fix |
References
- https://keras.io
- https://river-bicycle-f1e.notion.site/Arbitrary-File-Write-Vulnerability-in-get_file-function-11888e31952580179224e50892976d32
- https://github.com/keras-team/keras
- https://github.com/advisories/GHSA-cjgq-5qmw-rcj6
- https://nvd.nist.gov/vuln/detail/CVE-2024-55459
- 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
- CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:P- Weakness (CWE)
CWE-22- Platform
- Python (PyPI)
- Package
keras- Disclosed
- 08.01.2025
- Updated
- 11.10.2026 15:17
Sources and licenses
OSV / GitHub Advisory Database - PYSEC-2025-121 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-cjgq-5qmw-rcj6 - CC BY 4.0
Vulnerability history: keras
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 20
- First → latest
- 04.2024 08.2026
- Without a fix
- 1
- Exploited in attacks
- 0
Severity breakdown
- Critical 2
- High 11
- Medium 6
- Low 1
Disclosures per year
- 2024: 1
- 2025: 8
- 2026: 11
-
keras Path Traversal vulnerability this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.