CVE-2026-7482
Description
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).
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
github.com/ollama/ollamaGo | < 0.17.1 | 0.17.1 |
Affected products
7- osv-coords5 versionspkg:apk/chainguard/k8sgptpkg:apk/chainguard/modspkg:apk/wolfi/k8sgptpkg:apk/wolfi/modspkg:golang/github.com/ollama/ollama
< 0.4.33-r0+ 4 more
- (no CPE)range: < 0.4.33-r0
- (no CPE)range: < 1.8.1-r12
- (no CPE)range: < 0.4.33-r0
- (no CPE)range: < 1.8.1-r12
- (no CPE)range: < 0.17.1
Patches
Vulnerability mechanics
References
5- github.com/ollama/ollama/commit/88d57d0483cca907e0b23a968c83627a20b21047nvdPatchWEB
- github.com/ollama/ollama/pull/14406nvdIssue TrackingPatchWEB
- github.com/advisories/GHSA-x8qc-fggm-mpqgghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-7482ghsaADVISORY
- github.com/ollama/ollama/releases/tag/v0.17.1nvdRelease NotesWEB
News mentions
3- ⚡ Weekly Recap: Linux Rootkit, macOS Crypto Stealer, WebSocket Skimmers and MoreThe Hacker News · May 11, 2026
- Ollama Out-of-Bounds Read Vulnerability Allows Remote Process Memory LeakThe Hacker News · May 10, 2026
- Critical Bug Could Expose 300,000 Ollama Deployments to Information TheftSecurityWeek · May 5, 2026