Browse / AI Framework and Platform Flaws / CVE-2024-55459
keras Path Traversal vulnerability
- Class
- AI Framework and Platform Flaws (filed by a model that read the advisory)
- Technique
- Path traversal and file access
- Also involves
- Unsafe Model Loading and Supply Chain
- Affected
- keras (PyPI)
- CVSS
- 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
- EPSS
- 0.2% chance of exploitation in 30 days
How it works, in short
Extracting a crafted tar archive fetched by the file download helper writes files to paths outside the intended directory. (Our summary, written by a model. The source text is below.)
Details
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://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://keras.io
- https://river-bicycle-f1e.notion.site/Arbitrary-File-Write-Vulnerability-in-get_file-function-11888e31952580179224e50892976d32
Source: GitHub Advisory Database, used under CC BY 4.0.