CVE-2025-62608
Python vulnerability analysis and mitigation

Overview

CVE-2025-62608 is a heap buffer overflow vulnerability discovered in MLX (mlx pip package) versions <=0.29.3. The vulnerability was disclosed on November 21, 2025, affecting the load() function when parsing malicious NumPy .npy files. The issue was patched in version 0.29.4 (GitHub Advisory).

Technical details

The vulnerability exists in mlx/io/load.cpp where the parser reads a 118-byte header from the file but incorrectly handles string creation and boundary checking. At line 268, std::string(&buffer[0]) stops at the first null byte, creating a truncated string. Subsequently, at line 276, the code attempts to read header[34] without length verification, resulting in a 13-byte out-of-bounds read beyond the allocation. The vulnerability has been assigned a CVSS v3 score of 6.5, indicating moderate severity (Red Hat Security).

Impact

When exploited, this vulnerability can lead to application crashes or potential information disclosure through a 13-byte heap memory leak. The vulnerability affects MLX users across all platforms who process untrusted input through the vulnerable methods, particularly when handling malicious .npy files such as model weights, datasets, or checkpoints (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been fixed in MLX version 0.29.4. The recommended mitigation is to upgrade to this or a later version. The fix involves proper string construction with explicit length parameter and boundary checking before accessing header elements (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-65106HIGH8.3
  • PythonPython
  • open-webui
NoYesNov 21, 2025
GHSA-m449-cwjh-6pw7MEDIUM6.6
  • PythonPython
  • pypdf
NoYesNov 24, 2025
CVE-2025-62609MEDIUM5.5
  • PythonPython
  • mlx
NoYesNov 21, 2025
CVE-2025-62608MEDIUM5.5
  • PythonPython
  • mlx
NoYesNov 21, 2025
GHSA-j4gv-6x9v-v23gLOW1.3
  • PythonPython
  • omero-web
NoYesNov 24, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management