Out-of-bounds readin Ollama.
Weaponized: a Nuclei exploit is public.
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).
- Upgrade ollama to 0.17.1 or later.
- Upgrade github.com/ollama/ollama (Go) to 0.17.1 or later.
- Can't upgrade today? Until upgrade is possible: (1) ensure Ollama is bound to a trusted interface only (default OLLAMA_HOST=127.0.0.1); (2) front Ollama with a reverse proxy that requires authentication on /api/create and /api/push; (3) restrict outbound network egress from the Ollama host to prevent exfiltration via /api/push to attacker-controlled registries.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 30 Apr 2026CVE ID reserved by Echo.
- 4 May 2026Published in the CVE List.
- 4 May 2026CVE record last updated.
- 5 May 2026First public proof of concept on GitHub.
Attack code anyone can find
Exploit maturity: Weaponized (Nuclei). CISA assessment (SSVC): exploitation none.
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Other Ollama vulnerabilities
Same weakness: Out-of-bounds read
- github.com patch
- github.com patch
- github.com release-notes
Patchminder. CVE-2026-7482: Out-of-bounds read in Ollama. https://patchminder.com/cve/cve-2026-7482/ (accessed 5 December 2026).