{"cve":"CVE-2026-7482","nvd":{"published":"2026-05-04T13:16:01.727","modified":"2026-06-17T11:02:30.040","status":"Analyzed","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).","cvss_v4":{"vector":"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:Red","score":8.8},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","score":9.1},"cwes":["CWE-125"],"references":["https://github.com/ollama/ollama/commit/88d57d0483cca907e0b23a968c83627a20b21047","https://github.com/ollama/ollama/pull/14406","https://github.com/ollama/ollama/releases/tag/v0.17.1"],"products":["ollama:ollama"],"source":"nvd","synced_at":"2026-10-19T22:33:09.003606135+00:00"},"epss":{"cve":"CVE-2026-7482","score":0.02241,"percentile":0.82839,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-x8qc-fggm-mpqg","url":"https://osv.dev/vulnerability/GHSA-x8qc-fggm-mpqg","summary":"Ollama contains a heap out-of-bounds read vulnerability in the GGUF model loader","modified":"2026-09-10T03:51:07.267076997Z","packages":[{"ecosystem":"Go","name":"github.com/ollama/ollama","purl":"pkg:golang/github.com/ollama/ollama","ranges":["<0.17.1"],"fixed":["0.17.1"]}]},{"id":"GO-2026-5748","url":"https://osv.dev/vulnerability/GO-2026-5748","summary":"Ollama contains a heap out-of-bounds read vulnerability in the GGUF model loader in github.com/ollama/ollama","modified":"2026-07-27T17:00:22.536508632Z","packages":[{"ecosystem":"Go","name":"github.com/ollama/ollama","purl":"pkg:golang/github.com/ollama/ollama","ranges":["<0.17.1"],"fixed":["0.17.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}