Ollama heap out-of-bounds read in GGUF tensor parsing leaks server process memory to unauthenticated remote attackers
Published May 4, 2026
8.8
HIGHCVSS 4.0
EPSS 0.71%
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
-
- Version 0StatusaffectedConstraints<0.17.1
- Version
No data.
Migration Toolkit for Applications 8
mta/mta-solution-server-rhel9
Not affected
Red Hat Ansible Automation Platform 2
ansible-automation-platform-24/lightspeed-rhel8
Not affected
Red Hat Ansible Automation Platform 2
ansible-automation-platform-25/lightspeed-rhel8
Not affected
Red Hat OpenShift AI (RHOAI)
rhoai/odh-trustyai-garak-lls-provider-dsp-rhel9
Not affected
Red Hat Trusted Profile Analyzer
rhtpa/rhtpa-trustification-service-rhel9
Not affected
Red Hat build of Debezium 3
debezium-ai-embeddings-ollama
Not affected
Red Hat build of Debezium 3
langchain4j-ollama
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Migration Toolkit for Applications 8 | mta/mta-solution-server-rhel9 | Not affected | n/a |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-24/lightspeed-rhel8 | Not affected | n/a |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-25/lightspeed-rhel8 | Not affected | n/a |
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-trustyai-garak-lls-provider-dsp-rhel9 | Not affected | n/a |
| Red Hat Trusted Profile Analyzer | rhtpa/rhtpa-trustification-service-rhel9 | Not affected | n/a |
| Red Hat build of Debezium 3 | debezium-ai-embeddings-ollama | Not affected | n/a |
| Red Hat build of Debezium 3 | langchain4j-ollama | Not affected | n/a |
github.com/ollama/ollama
Go
Introduced 0 Fixed 0.17.1
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Go | github.com/ollama/ollama | 0 | 0.17.1 |
Remediation
Vendor solution
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.
Red Hat statement
An Important information disclosure flaw exists in Ollama, allowing a remote, unauthenticated attacker to read heap memory via a crafted GGUF file submitted to the /api/create endpoint. This can expose sensitive data, including API keys and user conversation data, which can then be exfiltrated. While default deployments bind to localhost, configurations exposing Ollama to the public internet significantly increase the risk. In this flaw a network attacker may leak sensitive data (C:H, I:N) with limited scope of system denial of servci (A:L), where a system reboot may not be the scenario.
Metrics
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
1 other source (NVD) ▾
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:Y/R:A/V:D/RE:L/U:Red
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
No CVSS v3.0 score for this CVE.
No CVSS v2.0 score for this CVE.
This CVE is not in the KEV list.
CISA SSVC (Vulnrichment)
Stakeholder-Specific Vulnerability Categorization from CISA ADP.
Exploitation
NoneAutomatable
YesTechnical Impact
TotalDecision
n/aAssessed May 4, 2026 · SSVC 2.0.3
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 3, 2026.
Score over time
May-Oct 2026- EPSS v4
- EPSS v5
Percentile over time
- EPSS v4
- EPSS v5
Table of values (6 key points)
Flat stretches are collapsed. Showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 3, 2026 | 0.71% (0.00713) | 52.01th | v5 (v2026.06.15) |
| Oct 1, 2026 | 0.71% (0.00713) | 51.92th | v5 (v2026.06.15) |
| Sep 20, 2026 | 2.24% (0.02241) | 82.08th | v5 (v2026.06.15) |
| Jul 24, 2026 | 1.93% (0.01928) | 77.83th | v5 (v2026.06.15) |
| Jun 15, 2026 | 0.76% (0.00756) | 50.14th | v5 (v2026.06.15) |
| May 5, 2026 | 0.09% (0.00090) | 25.14th | v4 (v2025.03.14) |
References (8)
- https://access.redhat.com/security/cve/CVE-2026-7482 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2464938 Issue Tracking
- https://github.com/advisories/GHSA-x8qc-fggm-mpqg Advisory
- https://github.com/ollama/ollama/commit/88d57d0483cca907e0b23a968c83627a20b21047 patch
- https://github.com/ollama/ollama/pull/14406 patchIssue Tracking
- https://github.com/ollama/ollama/releases/tag/v0.17.1 release-notesRelease Notes
- https://nvd.nist.gov/vuln/detail/CVE-2026-7482
- https://www.cve.org/CVERecord?id=CVE-2026-7482
| Link | Providers | Tags |
|---|---|---|
| https://access.redhat.com/security/cve/CVE-2026-7482 | Vendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2464938 | Issue Tracking | |
| https://github.com/advisories/GHSA-x8qc-fggm-mpqg | Advisory | |
| https://github.com/ollama/ollama/commit/88d57d0483cca907e0b23a968c83627a20b21047 | patch | |
| https://github.com/ollama/ollama/pull/14406 | patchIssue Tracking | |
| https://github.com/ollama/ollama/releases/tag/v0.17.1 | release-notesRelease Notes | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-7482 | ||
| https://www.cve.org/CVERecord?id=CVE-2026-7482 |
Change history (0)
No recorded changes yet.