llama.cpp MTMD Multimodal GGUF File Parsing Out-Of-Bounds Read Denial-of-Service Vulnerability
The multimodal projector GGUF file parser in llama.cpp does not properly validate user-supplied data, leading to a read past the end of an allocated buffer. An attacker could exploit this to cause a denial-of-service condition when a malicious file is opened.
This vulnerability allows remote attackers to cause a denial of service on affected installations of llama.cpp. User interaction is required to exploit this vulnerability in that the target must open a malicious file.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely, the parser trusts size or offset fields in the GGUF file without checking them against the actual buffer bounds, so it reads past the allocated buffer.
Impact
An attacker could cause a denial-of-service condition on the system by getting the target to open a malicious file; user interaction is required.
What the attacker needed
Victim opens a malicious GGUF file
The fix
The vendor issued an update to correct this vulnerability.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
A program that loads model files reads data from the file into a fixed-size memory area. If the file claims to contain more data than expected, the program can read beyond that area, which may crash it. This report says a crafted file can make the program crash, stopping it from working.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.