Vulnerabilities / CVE-2026-7482

critical

CVE-2026-7482

github.com/ollama/ollama: ollama: Ollama: Information disclosure via heap out-of-bounds read in GGUF model loader

Published Modified CWE 125
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

GHSA8.8CVSS: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
Red Hat9.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H

Trivy's own label is CRITICAL. Rated critical by Red Hat. Rated lower by GHSA (high).

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 packages and fixed versions

SourcePackageFixed in
chainguardk8sgpt, mods0.4.33-r0 and 1 more
go::GitHub Security Advisory Gogithub.com/ollama/ollama0.17.1
minimosollama0.17.1-r0
rapidfort alpine 3.20ollama0.17.7-r0
rapidfort alpine 3.21ollama0.17.7-r0
rapidfort alpine 3.22ollama0.17.7-r0
rapidfort alpine 3.23ollama0.17.7-r0
rapidfort fedora 43ollama0.9.4-5.fc43
wolfik8sgpt, mods0.4.33-r0 and 1 more
Show all 11 entries from 9 sources
SourcePackageFixed in
chainguardk8sgpt0.4.33-r0
chainguardmods1.8.1-r12
go::GitHub Security Advisory Gogithub.com/ollama/ollama0.17.1
minimosollama0.17.1-r0
rapidfort alpine 3.20ollama0.17.7-r0
rapidfort alpine 3.21ollama0.17.7-r0
rapidfort alpine 3.22ollama0.17.7-r0
rapidfort alpine 3.23ollama0.17.7-r0
rapidfort fedora 43ollama0.9.4-5.fc43
wolfik8sgpt0.4.33-r0
wolfimods1.8.1-r12

References

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.