patchminder
Weaponized · Nuclei CVE-2026-7482

Out-of-bounds readin Ollama.

Published 4 May 2026 · Updated 4 May 2026 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Weaponized: a Nuclei exploit is public.

Attack code is public
Severity
Critical 9.1
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1 · no login needed
Attack likelihood
Moderate
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 7.5% chance in 30 days · 4 Dec 2026
Fix
Available
Upgrade to 0.17.1 or later
In plain words

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).

What to do now
  • 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.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
ollama
before 0.17.1
0.17.1
CVE record
github.com/ollama/ollama (Go)
before 0.17.1
0.17.1
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 30 Apr 2026
    CVE ID reserved by Echo.
  2. 4 May 2026
    Published in the CVE List.
  3. 4 May 2026
    CVE record last updated.
  4. 5 May 2026
    First public proof of concept on GitHub.
Exploit code

Attack code anyone can find

Exploit maturity: Weaponized (Nuclei). CISA assessment (SSVC): exploitation none.

Metasploit module
None known
Nuclei scan template
Available
Exploit-DB
None known
GitHub proof of concepts
3 repositories
GitHubno warning signs found0x0OZ/CVE-2026-7482-PoC7 stars · created 5 May 20261day vuln research I guess
GitHubno warning signs foundszybnev/CVE-2026-74821 stars · created 7 May 2026Ollama CVE-2026-7482 Heap OOB read reproduction and black-box impact notes
GitHubno warning signs foundkaleth4/CVE-2026-74820 stars · created 10 May 2026

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.

Related

Other Ollama vulnerabilities

Same weakness: Out-of-bounds read

All CWE-125 vulnerabilities

References
Cite this page

Patchminder. CVE-2026-7482: Out-of-bounds read in Ollama. https://patchminder.com/cve/cve-2026-7482/ (accessed 5 December 2026).