Loading...
Skip to main content

CVE-2026-7482 — Vulnerability in github.com/ollama/ollama — CVE...

HIGH

Ollama contains a heap out-of-bounds read vulnerability in the GGUF model loader

Published May 4, 2026Updated September 10, 2026Source: osv

Summary

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).

Advisory Timeline

  • First published May 4, 2026 (161 days ago).
  • Last revised September 10, 2026 — 129 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Go
Update github.com/ollama/ollama to 0.17.1 or later
go get github.com/ollama/ollama@v0.17.1

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: go (1).

PackageEcosystemAffectedFixed In
github.com/ollama/ollama
go
All versions0.17.1

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-125
    Out-of-bounds ReadMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.1 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H

Frequently Asked Questions

What is CVE-2026-7482?
Ollama contains a heap out-of-bounds read vulnerability in the GGUF model loader This vulnerability has been assigned a severity rating of HIGH (CVSS score: 9.1/10).
How do I check if my project is affected by CVE-2026-7482?
CVE-2026-7482 affects github.com/ollama/ollama. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-7482 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.1

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-x8qc-fggm-mpqg
GO-2026-5748

Related CVEs

  • CVE-2025-63389
    CRITICAL

    Ollama Platform has missing authentication enabling attackers to perform model management operations

  • CVE-2026-107809
    HIGH

    Nginx-UI AuthRequired token cookie fallback enables CSRF against management APIs

  • CVE-2026-107813
    HIGH

    Nginx UI: Incomplete fix of CVE-2026-84315 - the api/cluster router was not - wrapped in RequireSecureSession, so those sensitive mutations run without OTP step-up

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies