CVE-2026-7482 — Vulnerability in github.com/ollama/ollama
Ollama contains a heap out-of-bounds read vulnerability in the GGUF model loader
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (2.51%). Schedule for your next planned update.
Does your project use an affected github.com/ollama/ollama version?
Paste your go.sum to check it for CVE-2026-7482 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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).
Advisory Timeline
- First published May 4, 2026 (206 days ago).
- Last revised September 10, 2026 — 129 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
go get github.com/ollama/ollama@v0.17.1
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: Go (1).
| Package | Fixed In |
|---|---|
| github.com/ollama/ollama Go · Affected: All versions | 0.17.1 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-125Out-of-bounds ReadMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.1 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
References
Frequently Asked Questions
- What is CVE-2026-7482?
- Ollama contains a heap out-of-bounds read vulnerability in the GGUF model loader. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 9.1/10).
- How do I check if my project is affected by CVE-2026-7482?
- CVE-2026-7482 affects github.com/ollama/ollama. It has a 2.5% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-7482 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This places it in the top quartile of EPSS-scored vulnerabilities — 85.5% of tracked vulnerabilities score at or below it, so it is more likely to be exploited than most of the tracked corpus.
Also Known As
Related CVEs
- CVE-2025-63389CRITICAL
Ollama Platform has missing authentication enabling attackers to perform model management operations
- CVE-2026-108262HIGH
DDEV incomplete tar symlink traversal fix allows host file overwrite - Incomplete fix of CVE-2026-32885
- CVE-2026-130007HIGH
k8s-mcp-server: Missing authentication on default SSE/HTTP transport allows unauthenticated Kubernetes tool execution