CVE-2025-62608 MLX has heap-buffer-overflow in load()

Medium 5.5 Published Updated

A heap buffer overflow in MLX allows attackers to cause crashes or disclose information via malicious NumPy files.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-62608?

CVE-2025-62608 is a medium-severity memory corruption vulnerability in ml-explore mlx, published on 21 Nov 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

MLX is an array framework for machine learning on Apple silicon. Prior to version 0.29.4, there is a heap buffer overflow in mlx::core::load() when parsing malicious NumPy .npy files. Attacker-controlled file causes 13-byte out-of-bounds read, leading to crash or information disclosure. This issue has been patched in version 0.29.4.

Weakness: CWE-122

Which versions are affected by CVE-2025-62608?

3 open source packages ship an affected version, including mlx. It affects 1 product.

PackageAffectedFixed in
mlx PyPIAll versions0.29.4
mlx PyPIAll versions0.29.4
mlx PyPIAll versions0.29.4

Products include Ml-Explore Mlx.

How do I fix CVE-2025-62608?

Upgrade mlx to 0.29.4 or later.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2025-62608 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-62608 exists.

Sources

Also known as GHSA-w6vg-jg77-2qg6, PYSEC-2025-138.

Is CVE-2025-62608 in your software?

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

Check your SBOMs for free