CVE-2026-7482
Ollama heap out-of-bounds read in GGUF tensor parsing leaks server process memory to unauthenticated remote attackers
Also known as GHSA-x8qc-fggm-mpqg, GO-2026-5748
Mitigation
- Upgrade github.com/ollama/ollama to 0.17.1 or later.
- Vendor workaround: 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.
Who should check
- Projects that depend on Go package github.com/ollama/ollama (< 0.17.1)
- Anyone running ollama < 0.17.1
Vulnerability facts
- Affected
- github.com/ollama/ollama < 0.17.1
- Fixed in
- 0.17.1
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 8.8 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:H/SC:N/SI:N/SA:N/AU:Y/R:A/V:D/RE:L/U:RedOpen in CVSS calculator
Show all 16 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: None
- Privileges required: None
- User interaction: None
- Confidentiality impact: High
- Integrity impact: None
- Availability impact: High
- Confidentiality impact on other systems: None
- Integrity impact on other systems: None
- Availability impact on other systems: None
- AU: Y
- R: A
- V: D
- RE: L
- U: Red
- EPSS
- 2.51% chance of exploitation in 30 days (percentile 85, 2026-11-26)
- CWE
- CWE-125
- Modified
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).
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Go github.com/ollama/ollama | < 0.17.1 | 0.17.1 | osv |
| ollama | < 0.17.1 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-7482. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-7482.md Affected: github.com/ollama/ollama < 0.17.1 Fixed in: 0.17.1 Steps: 1. Search this machine and project for github.com/ollama/ollama (Go), ollama: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
FAQ
Is CVE-2026-7482 being exploited?
There is no confirmed exploitation: CVE-2026-7482 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 2.51% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-7482?
High: CVSS 8.8 (v4.0, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2026-7482?
github.com/ollama/ollama < 0.17.1.
Is there a fix for CVE-2026-7482?
Yes. Fixed in 0.17.1. Upgrade github.com/ollama/ollama to 0.17.1 or later. Vendor workaround: 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.
How do I check if I'm affected by CVE-2026-7482?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.