MLX Wild Pointer Dereference Vulnerability in GGUF File Loading

Vulnerability

A segmentation fault vulnerability has been identified in MLX versions prior to 0.29.4. The issue arises in the 'mlx::core::load_gguf()' function when malicious GGUF files are loaded. An untrusted pointer from the external gguflib library is dereferenced without proper validation, leading to an application crash. This vulnerability affects MLX users on all platforms who use the 'load_gguf' method with unsanitized input.

Impact

Exploitation of this vulnerability causes a segmentation fault, leading to an application crash. This type of error is uncatchable by exception handlers, causing the program to terminate abruptly.

Reproduction

The vulnerability can be reproduced by installing MLX and using the 'load' function to load a malicious GGUF file, such as one containing exploited model weights. The AddressSanitizer output will indicate a segmentation fault caused by an invalid memory access, demonstrating the impact of the vulnerability.

Remediation

Users can upgrade to MLX version 0.29.4 or later, where this vulnerability has been patched.

Added: Nov 21, 2025, 7:19 PM
Updated: Nov 21, 2025, 7:19 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
2.5
exploitability
8.7
remediation
7.7
relevance
1.1
threat
6.4
urgency
2.9
incentive
5.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.