Ollama contains a heap out-of-bounds read vulnerability in the GGUF model loader
High9.1CVE-2026-7482 · Published May 4, 2026 · updated Sep 10, 2026
Ollama before 0.17.1 contains a heap out-of-bounds read vulnerability in the GGUF model loader. The /api/create endpoint accepts an attacker-supplied GGUF file in which the declared tensor offset and size exceed the file's actual length; during quantization in fs/ggml/gguf.go and server/quantization.go (WriteTo()), the server reads past the allocated heap buffer. The leaked memory contents may include environment variables, API keys, system prompts, and concurrent users' conversation data, and can be exfiltrated by uploading the resulting model artifact through the /api/push endpoint to an attacker-controlled registry. The /api/create and /api/push endpoints have no authentication in the upstream distribution. Default deployments bind to 127.0.0.1, but the documented OLLAMA_HOST=0.0.0.0 configuration is widely used in practice (large public-internet exposure observed).
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| github.com/ollama/ollama Go | < 0.17.1 | 0.17.1 |
Details and references
- CVSS 3.1
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
- Severity from
- GitHub (reviewed advisory)
- Weakness
- CWE-125
- Also known as
- CVE-2026-7482, GO-2026-5748
More Ollama advisories
All Ollama| Date | Advisory | Severity | Fixed in |
|---|---|---|---|
| Apr 26 | Ollama is Vulnerable to Path Traversal | Low5.6 | No fix yet |
| Dec 182025 | Ollama Platform has missing authentication enabling attackers to perform model management operations | Critical | No fix yet |
| Aug 72025 | Ollama allows deletion of arbitrary files | Medium6.6 | 0.1.34 |
| Jul 222025 | Ollama vulnerable to Cross-Domain Token Exposure | Medium6.9 | No fix yet |
| May 162025 | Ollama Server Vulnerable to Denial of Service (DoS) Attack | High7.5 | No fix yet |
| Mar 202025 | Ollama Divide By Zero vulnerability | High7.5 | No fix yet |