CVE-2024-55459 keras Path Traversal vulnerability

Medium 6.5 Published Updated

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.

PackageAffectedFixed in
keras PyPIAll versions to 3.7.0None
keras PyPIAll versions to 3.7.0None
keras PyPIAll versions to 3.7.0None

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.

Sources

Also known as AZL-55313, DEBIAN-CVE-2024-55459, GHSA-cjgq-5qmw-rcj6, PYSEC-2025-121, UBUNTU-CVE-2024-55459.

Is CVE-2024-55459 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free