CVE-2025-62608
mlx: MLX has heap-buffer-overflow in load()
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by GHSA (medium), Red Hat (medium).
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.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| pip::GitHub Security Advisory pip | mlx | 0.29.4 |
References
- https://access.redhat.com/security/cve/CVE-2025-62608
- https://github.com/ml-explore/mlx
- https://github.com/ml-explore/mlx/pull/1
- https://github.com/ml-explore/mlx/pull/2
- https://github.com/ml-explore/mlx/security/advisories/GHSA-w6vg-jg77-2qg6
- https://github.com/pypa/advisory-database/tree/main/vulns/mlx/PYSEC-2025-138.yaml
- https://nvd.nist.gov/vuln/detail/CVE-2025-62608
- https://www.cve.org/CVERecord?id=CVE-2025-62608