CVE-2024-55459 keras Path Traversal vulnerability
Attackers can write arbitrary files to the user's machine by tricking them into downloading a crafted tar file via the get_file function.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2024-55459?
CVE-2024-55459 is a medium-severity path traversal vulnerability in n/a, published on 8 Jan 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
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.
Weakness: CWE-494
Which versions are affected by CVE-2024-55459?
3 open source packages ship an affected version, including keras. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
keras PyPI | All versions to 3.7.0 | None |
keras PyPI | All versions to 3.7.0 | None |
keras PyPI | All versions to 3.7.0 | None |
Products include Keras Keras.
How do I fix CVE-2024-55459?
Upgrade to a fixed version.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2024-55459 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-55459 exists.
Other vulnerabilities in n/a
- CVE-2024-3660 Arbitrary code injection vulnerability in Keras framework < 2.13
- CVE-2026-12481 Deserialization of Untrusted Data in keras-team/keras
- CVE-2026-1462 Safe Mode Bypass in keras-team/keras
- CVE-2025-9906 Arbitrary Code execution in Keras Safe Mode
- CVE-2025-8747 Keras safe_mode bypass allows arbitrary code execution when loading a malicious model.
Sources
Also known as AZL-55313, DEBIAN-CVE-2024-55459, GHSA-cjgq-5qmw-rcj6, PYSEC-2025-121, UBUNTU-CVE-2024-55459.