{"id":"CVE-2026-7482","published":"2026-05-04T12:38:28Z","modified":"2026-05-04T13:48:39Z","title":"Ollama heap out-of-bounds read in GGUF tensor parsing leaks server process memory to unauthenticated remote attackers","vendor":"ollama","product":"ollama","tier":"core","eol":null,"affectedVersions":[{"vendor":"ollama","product":"ollama","versions":["< 0.17.1"]}],"solutions":{"items":["Upgrade to ollama 0.17.1 or later. The fix in PR #14406 validates that declared tensor offset+size do not exceed the GGUF file size before reading, and adds a length check in the quantizer prior to the unsafe read."],"from":"CVE.org CNA","provenance":"source"},"workarounds":{"items":["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."],"from":"CVE.org CNA","provenance":"source"},"capec":[{"id":"CAPEC-540","name":"Overread Buffers"}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2026-05-04T13:48:32.181054Z","from":"CISA ADP","provenance":"source"},"description":{"text":"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).","provenance":"source","from":"CVE.org"},"summary":{"text":"Ollama versions before 0.17.1 contain a heap out-of-bounds read in the GGUF model loader, where the server processes attacker-supplied model files through the /api/create endpoint during quantization. An unauthenticated remote attacker who can reach that endpoint, which by default is limited to localhost but is often exposed via OLLAMA_HOST=0.0.0.0, can upload a crafted GGUF file with inflated tensor offsets and sizes to leak server process memory, then exfiltrate the resulting artifact through the /api/push endpoint to an attacker-controlled registry.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-10-31T12:59:16Z"},"cvss":{"score":9.1,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0708,"percentile":0.94365,"date":"2026-11-20","provenance":"source"},"kev":null,"vulncheckKev":{"dateAdded":"2026-06-08","exploitedFirstSeen":"2026-06-08","ransomware":false,"evidence":[{"url":"https://posts.inthecyber.com/tales-of-an-ollama-honeypot-part-3-more-traffic-more-findings-cb965e85fc8d","date":"2026-06-08"},{"url":"https://hunt.io/blog/eastern-europe-malicious-infrastructure-report","date":"2026-06-24"}],"evidenceTotal":2,"provenance":"source"},"exploited":true,"otx":{"pulseCount":11,"pulses":[{"name":"Snapchat-Dark-Sword","url":"https://otx.alienvault.com/pulse/6a87ce9bff9ae36cc4bba9f7","created":"2026-08-21"},{"name":"Inside Eastern Europe's C2 Sprawl: 3,900+ Servers and 302 Providers Mapped.","url":"https://otx.alienvault.com/pulse/6a453dab886b08e3447cef7d","created":"2026-07-01"},{"name":"Known_Cve | May 14, 2026 | Part 1/2","url":"https://otx.alienvault.com/pulse/6a0487a01a4a82d9d068e332","created":"2026-05-13"},{"name":"Known_Cve | May 13, 2026 | Part 1/2","url":"https://otx.alienvault.com/pulse/6a033614c2ffc68639c724b6","created":"2026-05-12"},{"name":"Known_Cve | May 12, 2026","url":"https://otx.alienvault.com/pulse/6a01e46d5f244e70404ff2c4","created":"2026-05-11"},{"name":"Known_Cve | May 11, 2026","url":"https://otx.alienvault.com/pulse/6a0092f454354dab01de3bef","created":"2026-05-10"},{"name":"Known_Cve | May 10, 2026","url":"https://otx.alienvault.com/pulse/69ff4160e930613f7b38fcf5","created":"2026-05-09"},{"name":"Known_Cve | May 9, 2026","url":"https://otx.alienvault.com/pulse/69fdf011c783e0baada3fcd1","created":"2026-05-08"},{"name":"Known_Cve | May 8, 2026","url":"https://otx.alienvault.com/pulse/69fc9ec9766595ae8bb6d07c","created":"2026-05-07"},{"name":"Known_Cve | May 7, 2026","url":"https://otx.alienvault.com/pulse/69fb4ce6957faa5ed109be64","created":"2026-05-06"}],"provenance":"machine"},"cwes":[{"id":"CWE-125","name":"Out-of-bounds Read"}],"references":[{"url":"https://github.com/ollama/ollama/pull/14406","tags":["patch"]},{"url":"https://github.com/ollama/ollama/commit/88d57d0483cca907e0b23a968c83627a20b21047","tags":["patch"]},{"url":"https://github.com/ollama/ollama/releases/tag/v0.17.1","tags":["release-notes"]}],"techniques":[],"reports":[],"affected":[{"ecosystem":"Go","package":"github.com/ollama/ollama","vulnerableRanges":["<0.17.1"],"patched":["0.17.1"],"from":["GHSA-x8qc-fggm-mpqg","GO-2026-5748"],"provenance":"source"}],"advisories":[{"id":"GHSA-x8qc-fggm-mpqg","url":"https://github.com/advisories/GHSA-x8qc-fggm-mpqg","severity":"HIGH","ecosystem":"Go","package":"github.com/ollama/ollama","vulnerableRanges":["<0.17.1"],"patched":["0.17.1"],"provenance":"source","from":"GHSA"}],"euvd":{"id":"EUVD-2026-26949","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-26949","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[],"exploitSources":{"pocGithub":{"count":2,"skipped":1,"earliest":"2026-05-05","earliestUrl":"https://github.com/0x0OZ/CVE-2026-7482-PoC","repos":[{"name":"0x0OZ/CVE-2026-7482-PoC","url":"https://github.com/0x0OZ/CVE-2026-7482-PoC","stars":7,"created":"2026-05-05"},{"name":"szybnev/CVE-2026-7482","url":"https://github.com/szybnev/CVE-2026-7482","stars":1,"created":"2026-05-07"}]},"nuclei":[{"id":"CVE-2026-7482","name":"Ollama < 0.17.1 - Information Disclosure","severity":"high","path":"http/cves/2026/CVE-2026-7482.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-7482.yaml"}],"first":{"date":"2026-05-05","source":"PoC-in-GitHub","url":"https://github.com/0x0OZ/CVE-2026-7482-PoC"},"provenance":"source"},"exploitRefs":[],"flow":[],"timeline":[{"date":"2026-05-04","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2026-7482","provenance":"source"},{"date":"2026-05-05","kind":"exploit-public","label":"First public exploit: PoC-in-GitHub","url":"https://github.com/0x0OZ/CVE-2026-7482-PoC","provenance":"source"},{"date":"2026-06-08","kind":"exploited-reported","label":"Exploitation first reported (VulnCheck KEV evidence)","url":"https://posts.inthecyber.com/tales-of-an-ollama-honeypot-part-3-more-traffic-more-findings-cb965e85fc8d","provenance":"source"}],"speed":{"daysToPublicExploit":1,"firstExploitFrom":"PoC-in-GitHub","daysToKev":null},"priority":{"score":72.7,"factors":[{"name":"In a KEV catalog","points":35.0,"detail":"listed in VulnCheck KEV"},{"name":"Recent KEV listing","points":5.0,"detail":"added 166 days ago"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":18.87,"detail":"percentile 0.9436"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"2 PoC-in-GitHub repos; 1 nuclei template"},{"name":"Mentioned in OTX pulses","points":2.45,"detail":"11 pulses"},{"name":"CVSS severity","points":6.37,"detail":"base score 9.1"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]}}