Description
A vulnerability was found in Ollama up to 0.31.1. This issue affects the function readGGUFV1String of the file fs/ggml/gguf.go of the component GGUF Decoder. Performing a manipulation results in integer overflow. The attack is possible to be carried out remotely. The exploit has been made public and could be used. Upgrading to version 0.31.2-rc1 is capable of addressing this issue. The patch is named 67b6a1c2d45321e0cb3c04a18073f9818de7724b. It is recommended to upgrade the affected component.
Published: 2026-09-07
Score: 5.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Integer Overflow leading to potential remote exploitation
Action: Patch
AI Analysis

Impact

A flaw was discovered in Ollama’s GGUF Decoder, specifically in the readGGUFV1String function of fs/ggml/gguf.go, where an integer overflow can be triggered by a crafted GGUF file. The overflow can corrupt internal counters and memory, allowing an attacker to alter program flow or cause a crash. The vulnerability can be exploited remotely by feeding maliciously crafted GGUF files to an affected instance, potentially resulting in denial of service or unintended behavior. The weakness corresponds to CWE-189 and CWE-190.

Affected Systems

Ollama versions up to and including 0.31.1 are affected. The vulnerability resides in the core Ollama application that decodes GGUF model files. Users of Ollama 0.31.2-rc1 or newer are protected, as the commit identified in the patch resolves the integer overflow in the decoder.

Risk and Exploitability

The CVSS score of 5.3 classifies the flaw as medium severity, and the EPSS score is not available, but the weakness is publicly exploitable. As the exploit is already in the public domain and the attack vector requires only delivery of a malicious GGUF file, the risk for systems that load untrusted GGUF files remains significant. The flaw is not listed in the CISA Known Exploited Vulnerabilities catalog, but the public availability of an exploit lowers the bar for attackers.

Generated by OpenCVE AI on September 7, 2026 at 13:51 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Ollama to v0.31.2-rc1 or later to apply the integer‑overflow fix.
  • If a patch cannot be applied immediately, restrict the loading of GGUF files to trusted sources or run the application in an isolated environment to limit impact of corrupted data.
  • Monitor logs and application stability for signs of abnormal memory usage or crashes and apply additional security controls such as file integrity monitoring to detect tampered GGUF files.

Generated by OpenCVE AI on September 7, 2026 at 13:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 11 Sep 2026 23:45:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Mon, 07 Sep 2026 09:00:00 +0000

Type Values Removed Values Added
Description A vulnerability was found in Ollama up to 0.31.1. This issue affects the function readGGUFV1String of the file fs/ggml/gguf.go of the component GGUF Decoder. Performing a manipulation results in integer overflow. The attack is possible to be carried out remotely. The exploit has been made public and could be used. Upgrading to version 0.31.2-rc1 is capable of addressing this issue. The patch is named 67b6a1c2d45321e0cb3c04a18073f9818de7724b. It is recommended to upgrade the affected component.
Title Ollama GGUF Decoder gguf.go readGGUFV1String integer overflow
First Time appeared Ollama
Ollama ollama
Weaknesses CWE-189
CWE-190
CPEs cpe:2.3:a:ollama:ollama:*:*:*:*:*:*:*:*
Vendors & Products Ollama
Ollama ollama
References
Metrics cvssV2_0

{'score': 5, 'vector': 'AV:N/AC:L/Au:N/C:N/I:N/A:P/E:POC/RL:OF/RC:C'}

cvssV3_0

{'score': 4.3, 'vector': 'CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L/E:P/RL:O/RC:C'}

cvssV3_1

{'score': 4.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L/E:P/RL:O/RC:C'}

cvssV4_0

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


cve-icon MITRE

Status: PUBLISHED

Assigner: VulDB

Published:

Updated: 2026-09-11T20:35:22.078Z

Reserved: 2026-09-06T15:44:05.664Z

Link: CVE-2026-86289

cve-icon Vulnrichment

Updated: 2026-09-11T20:02:58.641Z

cve-icon NVD

Status : Deferred

Published: 2026-09-07T09:17:17.470

Modified: 2026-09-11T21:17:43.407

Link: CVE-2026-86289

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-07T14:00:17Z

Weaknesses