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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| ollama | ollama | < 0.17.1 | 0.17.1 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 16.0 | govulncheck-vulndb | 0.0.20260727T201416-160000.1.1 | SUSE-SU-2026:23227-1, SUSE-SU-2026:23216-1 |
| SLES 16.0 | govulncheck-vulndb | 0.0.20260727T201416-160000.1.1 | SUSE-SU-2026:23227-1, SUSE-SU-2026:23216-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | ollama | 0.33.1-1.1 | openSUSE-SU-2026:11688-1 |
| openSUSE Leap 16.0 | govulncheck-vulndb | 0.0.20260727T201416-160000.1.1 | openSUSE-SU-2026:21551-1 |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | k8sgpt | 0.4.33-r0 | — |
| Wolfi rolling | mods | 1.8.1-r10 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 3 repositories
-
0x0OZ/CVE-2026-7482-PoC ★ 7 · May 5, 2026
1day vuln research I guess
-
szybnev/CVE-2026-7482 ★ 1 · May 7, 2026
Ollama CVE-2026-7482 Heap OOB read reproduction and black-box impact notes
-
kaleth4/CVE-2026-7482 ★ 0 · May 10, 2026
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- Ollama < 0.17.1 - Information Disclosure http/cves/2026/CVE-2026-7482.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Go | github.com/ollama/ollama | < 0.17.1 | 0.17.1 | GHSA-x8qc-fggm-mpqg |
Advisories 5
- WID-SEC-2026-1379 Ollama: Schwachstelle ermöglicht Offenlegung von Informationen BSI CERT-Bund (WID) · Sep 6, 2026
- openSUSE-SU-2026:11688-1 ollama-0.33.1-1.1 on GA media SUSE / openSUSE Security Updates · Sep 5, 2026
- SUSE-SU-2026:23227-1 Security update for govulncheck-vulndb SUSE / openSUSE Security Updates · Aug 27, 2026
- SUSE-SU-2026:23216-1 Security update for govulncheck-vulndb SUSE / openSUSE Security Updates · Aug 27, 2026
- openSUSE-SU-2026:21551-1 Security update for govulncheck-vulndb SUSE / openSUSE Security Updates · Aug 12, 2026
References
- ollama/ollama PR #14406 — ggml: ensure tensor size is valid (fix) patch
- Fix commit 88d57d0 patch
- ollama v0.17.1 release notes release-notes