Description
Ollama (HEAD f0078ae) contains an uncontrolled memory allocation vulnerability in the GGUF metadata parser that allows remote attackers to crash the server by supplying a crafted GGUF file with attacker-controlled length and count fields in string lengths, tensor dimension counts, and metadata array counts that are used as allocation sizes without validation against remaining file size. Attackers can upload a sub-1KB crafted GGUF file via the blob upload and model create or pull API endpoints to trigger unrecoverable Go runtime out-of-memory fatal errors or makeslice panics that bypass recovery middleware and crash the entire server process.
Published: 2026-07-21
Score: 8.7 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

An uncontrolled memory allocation in the GGUF metadata parser allows a crafted GGUF file to trigger an unrecoverable Go makeslice panic, causing the entire Ollama server process to terminate. The vulnerability is triggered by length and count fields in string lengths, tensor dimensions, and metadata arrays that are used as allocation sizes without validation against the remaining file size, resulting in a fatal crash without recovery.

Affected Systems

The affected product is Ollama, the open‑source model hosting platform. Any deployment of Ollama that accepts GGUF uploads through the blob upload, model create, or pull API endpoints is vulnerable. The impact is not limited to running the HEAD f0078ae codebase will be affected until the parser is corrected.

Risk and Exploitability

The CVSS score of 8.7 classifies this as high very low but non‑zero likelihood of exploitation in the wild, and the vulnerability is not listed in the CISA KEV catalog. Attackers can target the server remotely by submitting a sub‑1KB GGUF file via the documented API endpoints, making this a purely remote denial of service threat that bypasses existing recovery middleware and forces a complete process shutdown.

Generated by OpenCVE AI on July 30, 2026 at 16:15 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the official Ollama patch by upgrading to the latest stable release that contains the GGUF metadata parser fix.
  • If the patch is not yet available, block or heavily rate‑limit the blob upload, model create, and pull API endpoints to prevent malicious GGUF uploads.
  • Implement input validation that checks length and count fields in GGUF files against the remaining payload size before allocating memory.

Generated by OpenCVE AI on July 30, 2026 at 16:15 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 28 Jul 2026 01:30:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:ollama:ollama:*:*:*:*:*:*:*:*

Thu, 23 Jul 2026 01:00:00 +0000

Type Values Removed Values Added
First Time appeared Ollama
Ollama ollama
Vendors & Products Ollama
Ollama ollama

Wed, 22 Jul 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 21 Jul 2026 21:45:00 +0000

Type Values Removed Values Added
Description Ollama (HEAD f0078ae) contains an uncontrolled memory allocation vulnerability in the GGUF metadata parser that allows remote attackers to crash the server by supplying a crafted GGUF file with attacker-controlled length and count fields in string lengths, tensor dimension counts, and metadata array counts that are used as allocation sizes without validation against remaining file size. Attackers can upload a sub-1KB crafted GGUF file via the blob upload and model create or pull API endpoints to trigger unrecoverable Go runtime out-of-memory fatal errors or makeslice panics that bypass recovery middleware and crash the entire server process.
Title Ollama Remote Denial of Service via Attacker-Controlled Allocation in GGUF Metadata Parser
Weaknesses CWE-789
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-07-28T01:06:06.852Z

Reserved: 2026-07-21T20:57:44.879Z

Link: CVE-2026-65315

cve-icon Vulnrichment

Updated: 2026-07-22T18:21:10.163Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-30T16:30:05Z

Weaknesses
  • CWE-789

    Memory Allocation with Excessive Size Value