Loading SecureCyberVM…
SecureCyberVM
CVE Lookup Daily Threat Briefing Exploited CVEs Ransomware Zero-day
SecureCyberVM
Get the Patch Brief

Ollama CVE-2026-7482: GGUF loader flaw can leak server memory to remote attackers

A heap out-of-bounds read in Ollama's GGUF model loader, CVE-2026-7482, can let an unauthenticated remote attacker leak process memory, including API keys and prompts. Ollama 0.17.1 fixes it.

Ollama CVE-2026-7482: GGUF loader flaw can leak server memory to remote attackers

A critical vulnerability in Ollama, the open-source tool for running large language models locally, can allow a remote attacker without credentials to read memory from the server process. Tracked as CVE-2026-7482, the flaw is a heap out-of-bounds read in the code that loads models in the GGUF format.

Qualys reports that leaked memory may contain environment variables, API keys, system prompts and conversation data belonging to other users of the same server. Ollama version 0.17.1 fixes the issue.

What happened

GGUF is a file format used to store model weights for efficient local loading. According to Qualys and the GitHub advisory, Ollama’s model creation endpoint, /api/create, accepts GGUF files whose tensor metadata declares offsets and sizes larger than the file itself. During quantization, code in fs/ggml/gguf.go and server/quantization.go then reads past the end of the allocated heap buffer, pulling adjacent process memory into the resulting model.

The leaked data does not stay on the server. Qualys explains that the attacker can export the resulting model artifact through the /api/push endpoint to a registry the attacker controls. In upstream Ollama, neither endpoint requires authentication.

Who is affected

ProductAffectedFixed
OllamaVersions before 0.17.10.17.1

Default installations bind the API to 127.0.0.1, which limits exposure to the local machine. Qualys notes, however, that the documented OLLAMA_HOST=0.0.0.0 setting is widely used to make Ollama reachable from other hosts, and that this has led to broad exposure on the public internet. Ollama embedded in container images is also in scope.

Shared Ollama servers carry the greatest exposure, because the leaked memory can contain prompts and conversation data from every user and application connected to the same instance, not only data belonging to the attacker’s own session.

Severity and exploitation

The flaw carries a CVSS score of 9.9 according to Qualys; a vector string is not given in the Qualys summary. The sources reviewed do not report exploitation in the wild. Exploitation requires only network access to the Ollama API, with no credentials or user interaction.

Qualys detects the issue with QIDs 734196, 387461 and 5012259, the last of which is available for container scanning.

What defenders should do now

  1. Upgrade every Ollama installation, including those inside container images, to 0.17.1 or later.
  2. Find Ollama servers listening on non-loopback interfaces and confirm whether that exposure is required.
  3. Place any network-reachable Ollama API behind an authenticating reverse proxy or restrict it with firewall rules.
  4. Block or alert on outbound model pushes to registries the organization does not use.
  5. If a vulnerable server was internet-exposed, rotate API keys and secrets held in its environment variables.

SCVM analysis

Local LLM runtimes are spreading through developer laptops, GPU workstations and internal AI services faster than they are being added to asset inventories. Ollama’s lack of built-in API authentication means its security depends entirely on network placement, and a single configuration change moves it from local-only to internet-facing.

Vulnerability management programs should add AI runtimes to software inventory and external attack surface scans, and treat any internet-exposed instance found during this cycle as a potential secrets exposure rather than only a missing patch.

Sources

About this article: produced by the SCVM Newsroom with AI assistance from the public sources linked above, enriched with NVD, FIRST EPSS and CISA KEV data, and checked by automated quality controls under our editorial policy. Spotted an error? Request a correction.

SecureCyberVM

Install SecureCyberVM

Get the Daily Threat Briefing and exploited-CVE alerts one tap away, full screen, like an app.