Out-of-bounds Read Affecting github.com/ollama/ollama/fs/ggml package, versions <0.17.1-rc1


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
1.93% (78th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMOLLAMAOLLAMAFSGGML-16416468
  • published4 May 2026
  • disclosed4 May 2026
  • creditDor Attias, Ofek Itach

Introduced: 4 May 2026

CVE-2026-7482  (opens in a new tab)
CWE-125  (opens in a new tab)

How to fix?

Upgrade github.com/ollama/ollama/fs/ggml to version 0.17.1-rc1 or higher.

Overview

Affected versions of this package are vulnerable to Out-of-bounds Read in the GGUF model loader. An attacker can access sensitive server memory contents, including environment variables, API keys, system prompts, and concurrent users' conversation data, by submitting a specially crafted GGUF file with manipulated tensor offset and size values to the /api/create endpoint, and subsequently exfiltrating the leaked data via the /api/push endpoint to an attacker-controlled registry. This is only exploitable if the server is exposed to untrusted networks or the endpoints are accessible without authentication.

Workaround

This vulnerability can be mitigated by binding the service to a trusted interface only (e.g., OLLAMA_HOST=127.0.0.1), fronting the service with a reverse proxy that requires authentication on /api/create and /api/push, and restricting outbound network egress from the host to prevent exfiltration via /api/push.

CVSS Base Scores

version 4.0
version 3.1