CVE-2026-7482: Github.com/ollama/ollama Ollama Contains A Heap Out-of-bounds Vulnerability
HIGHCVE-2026-7482 is a HIGH (CVSS 9.1) ollama contains a heap out-of-bounds vulnerability (CWE-125: Out-of-bounds Read) affecting Github.com/ollama/ollama libraries in the Go ecosystem. The issue involves ollama contains a heap out-of-bounds read vulnerability in the gguf model loader. Remediation is available by upgrading affected packages to version 0.17.1.
CVE-2026-7482 at a Glance
Security Impact
CVSS: 9.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H).
How to Fix CVE-2026-7482
To remediate this vulnerability, upgrade all affected Github.com/ollama/ollama dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/ollama/ollama to 0.17.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/ollama/ollama
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-7482, inspect your project dependencies for Github.com/ollama/ollama:
inspect dependencies for github.com/ollama/ollama
Analyze the terminal output to locate any version of Github.com/ollama/ollama in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.17.1), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-125: Out-of-bounds Read, where the product reads data past the end, or before the beginning, of the intended buffer. In Github.com/ollama/ollama, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-7482 Affected Github.com/ollama/ollama Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/ollama/ollama
|
Go |
< 0.17.1
|
0.17.1
|
References
Frequently Asked Questions
What is CVE-2026-7482?
Which Github.com/ollama/ollama versions are affected?
What version fixes CVE-2026-7482?
Is github.com/ollama/ollama affected?
What is the CVSS score of CVE-2026-7482?
What CWE is associated with CVE-2026-7482?
How can I check Go dependencies for CVE-2026-7482?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-x8qc-fggm-mpqg",
"modified" : "2026-05-08T17:26:00Z",
"published" : "2026-05-04T15:31:14Z",
"aliases" : [ "CVE-2026-7482" ],
"summary" : "Ollama contains a heap out-of-bounds read vulnerability in the GGUF model loader",
"details" : "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).",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H"
}, {
"type" : "CVSS_V4",
"score" : "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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/ollama/ollama"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.17.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-7482"
}, {
"type" : "WEB",
"url" : "https://github.com/ollama/ollama/pull/14406"
}, {
"type" : "WEB",
"url" : "https://github.com/ollama/ollama/commit/88d57d0483cca907e0b23a968c83627a20b21047"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/ollama/ollama"
}, {
"type" : "WEB",
"url" : "https://github.com/ollama/ollama/releases/tag/v0.17.1"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-125" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-05-08T17:26:00Z",
"nvd_published_at" : "2026-05-04T13:16:01Z"
}
}