Skip to content
CriticalVulnerabilityLLM-specific

CVE-2026-7482: Ollama heap out-of-bounds read in GGUF model loader via /api/create

Identifier
CVE-2026-7482
Published
Record updated
View JSON
Affected
  • github.com/ollama/ollama < 0.17.1
Fixed in
0.17.1
  • released February 25, 2026, 68 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
2.2%

Summary

CVE-2026-7482 affects Ollama before 0.17.1. A heap out-of-bounds read in the GGUF model loader lets an attacker send a crafted GGUF file to the /api/create endpoint, where declared tensor offset and size exceed the file's real length. During quantization in fs/ggml/gguf.go and server/quantization.go (WriteTo()), the server reads past the allocated heap buffer, and the leaked memory may include environment variables, API keys, system prompts and other users' conversation data. The attacker can exfiltrate it by pushing the resulting model artifact through /api/push to an attacker-controlled registry, and neither endpoint requires authentication in the upstream distribution.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.