PoC Monitor
← All CVEs
CVE-2026-7482published 4 May 2026 12:38 UTCData: JSON · API

Ollama

Ollama heap out-of-bounds read in GGUF tensor parsing leaks server process memory to unauthenticated remote attackers

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

First public PoC 1.3 daysafter publication · 5 May 2026
Public PoCs32 on GitHub · 1 Exploit-DB, Metasploit or nuclei
CVSS9.1critical · scored by CNA · CWE-125
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

ollama ollama
  • < 0.17.1

Fixed in 0.17.1

Mitigation

Upgrade to ollama 0.17.1 or later. The fix in PR #14406 validates that declared tensor offset+size do not exceed the GGUF file size before reading, and adds a length check in the quantizer prior to the unsafe read.

Workaround

Until upgrade is possible: (1) ensure Ollama is bound to a trusted interface only (default OLLAMA_HOST=127.0.0.1); (2) front Ollama with a reverse proxy that requires authentication on /api/create and /api/push; (3) restrict outbound network egress from the Ollama host to prevent exfiltration via /api/push to attacker-controlled registries.

References

Timeline

Days relative to CVE publication
-2t=0+2+4+6+8CVE published4 May 2026 · t = 0First public PoC5 May 2026 · t+1.3d

First public PoC 1.3 days after publication; not in CISA KEV. First PoC: 0x0OZ/CVE-2026-7482-PoC (created 5 May 2026, found by us: backfilled).

PoC repositories

Found on GitHub.

2 PoCs · 1 informational · 1 suspicious or fake

PoCs 2
RepositoryCreatedStarsAssessment
0x0OZ/CVE-2026-7482-PoC 5 May 2026 +1.3 d 7 PoC
szybnev/CVE-2026-7482 7 May 2026 +3.2 d 1 PoC
Informational 1
RepositoryCreatedStarsAssessment
kaleth4/CVE-2026-7482 10 May 2026 +6.4 d 0 Informational · write-up
Suspicious or fake 1
RepositoryCreatedStarsAssessment
cylockholmes/assay 25 Aug 2026 +113 d 0 Fake

Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.

Other public exploits

Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.
SourceTitlePublishedFound by us
nuclei templatenuclei template: Ollama < 0.17.1 - Information Disclosure11 Nov 202614 Nov 2026

PoC characteristics

What to hunt for in your logs · from 2 PoC repos

POST /api/create

Body markers
"model" "modelfile":"FROM malicious.gguf " "# The actual Modelfile instruction "files"" "quantize":"Q4_K_M" "stream" "model":"pwn-leak" "files" "quantize" in application/json
Ports
11434, 11435
Seen in
2 repos: 0x0OZ/CVE-2026-7482-PoC, szybnev/CVE-2026-7482
Evidence
0x0OZ/CVE-2026-7482-PoC/exploit.py:63 szybnev/CVE-2026-7482/exp.py:267

DELETE /api/delete

Body markers
"model":"pwn-leak" in application/json
Ports
11435
Seen in
1 repo: szybnev/CVE-2026-7482
Evidence
szybnev/CVE-2026-7482/exp.py:314

HEAD /api/blobs/sha256:{var}

Ports
11434
Seen in
1 repo: 0x0OZ/CVE-2026-7482-PoC
Evidence
0x0OZ/CVE-2026-7482-PoC/exploit.py:41

HEAD /api/blobs/{var}

Ports
11435
Seen in
1 repo: szybnev/CVE-2026-7482
Evidence
szybnev/CVE-2026-7482/exp.py:188

POST /api/blobs/sha256:{var}

Ports
11434
Seen in
1 repo: 0x0OZ/CVE-2026-7482-PoC
Evidence
0x0OZ/CVE-2026-7482-PoC/exploit.py:42

POST /api/blobs/{var}

Ports
11435
Seen in
1 repo: szybnev/CVE-2026-7482
Evidence
szybnev/CVE-2026-7482/exp.py:194

POST /api/push

Body markers
"name" "insecure" "# Required to push to our unencrypted HTTP Docker registry "stream"" in application/json
Ports
11434
Seen in
1 repo: 0x0OZ/CVE-2026-7482-PoC
Evidence
0x0OZ/CVE-2026-7482-PoC/exploit.py:78

POST /api/show

Body markers
"model":"pwn-leak" in application/json
Ports
11435
Seen in
1 repo: szybnev/CVE-2026-7482
Evidence
szybnev/CVE-2026-7482/exp.py:287

Regex

Generated from PoC characteristics; not yet reviewed. Matches the request path and query.

POST /api/create
(?i)^/api/create(?:[?#].*)?$
DELETE /api/delete
(?i)^/api/delete(?:[?#].*)?$
HEAD /api/blobs/sha256:{var}
(?i)^/api/blobs/sha256:[^/?#]*(?:[?#].*)?$
HEAD /api/blobs/{var}
(?i)^/api/blobs/[^/?#]*(?:[?#].*)?$
POST /api/blobs/sha256:{var}
(?i)^/api/blobs/sha256:[^/?#]*(?:[?#].*)?$

Suricata

Template generated from PoC characteristics. Review before deploying.

POST /api/create
alert http any any -> $HOME_NET [11434,11435] (msg:"GG PoC-Monitor CVE-2026-7482 ollama ollama exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/create"; http.request_body; content:"|22|model|22|"; http.request_body; content:"|22|modelfile|22|:|22|FROM malicious.gguf
|22|"; http.request_body; content:"|22|# The actual Modelfile instruction
        |22|files|22||22|"; http.request_body; content:"|22|quantize|22|:|22|Q4_K_M|22|"; http.request_body; content:"|22|stream|22|"; http.request_body; content:"|22|model|22|:|22|pwn-leak|22|"; http.request_body; content:"|22|files|22|"; http.request_body; content:"|22|quantize|22|"; reference:url,poc.griffinguard.io/cve/CVE-2026-7482; classtype:web-application-attack; sid:9577188; rev:1;)
DELETE /api/delete
alert http any any -> $HOME_NET [11435] (msg:"GG PoC-Monitor CVE-2026-7482 ollama ollama exploit attempt"; flow:established,to_server; http.method; content:"DELETE"; http.uri; content:"/api/delete"; http.request_body; content:"|22|model|22|:|22|pwn-leak|22|"; reference:url,poc.griffinguard.io/cve/CVE-2026-7482; classtype:web-application-attack; sid:9289030; rev:1;)
HEAD /api/blobs/sha256:{var}
alert http any any -> $HOME_NET [11434] (msg:"GG PoC-Monitor CVE-2026-7482 ollama ollama exploit attempt"; flow:established,to_server; http.method; content:"HEAD"; http.uri; content:"/api/blobs/sha256:"; reference:url,poc.griffinguard.io/cve/CVE-2026-7482; classtype:web-application-attack; sid:9038101; rev:1;)
HEAD /api/blobs/{var}
alert http any any -> $HOME_NET [11435] (msg:"GG PoC-Monitor CVE-2026-7482 ollama ollama exploit attempt"; flow:established,to_server; http.method; content:"HEAD"; http.uri; content:"/api/blobs/"; reference:url,poc.griffinguard.io/cve/CVE-2026-7482; classtype:web-application-attack; sid:9275966; rev:1;)
POST /api/blobs/sha256:{var}
alert http any any -> $HOME_NET [11434] (msg:"GG PoC-Monitor CVE-2026-7482 ollama ollama exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/blobs/sha256:"; reference:url,poc.griffinguard.io/cve/CVE-2026-7482; classtype:web-application-attack; sid:9151373; rev:1;)

Sigma

Template generated from PoC characteristics. Review before deploying.

POST /api/create
title: ollama ollama exploit attempt (CVE-2026-7482)
id: gg-pocmon-cve-2026-7482-9577188
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-7482. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2026-7482
logsource:
  category: webserver
detection:
  selection:
    cs-method: POST
    cs-uri-stem|contains|all:
      - '/api/create'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2026.7482
DELETE /api/delete
title: ollama ollama exploit attempt (CVE-2026-7482)
id: gg-pocmon-cve-2026-7482-9289030
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-7482. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2026-7482
logsource:
  category: webserver
detection:
  selection:
    cs-method: DELETE
    cs-uri-stem|contains|all:
      - '/api/delete'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2026.7482
HEAD /api/blobs/sha256:{var}
title: ollama ollama exploit attempt (CVE-2026-7482)
id: gg-pocmon-cve-2026-7482-9038101
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-7482. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2026-7482
logsource:
  category: webserver
detection:
  selection:
    cs-method: HEAD
    cs-uri-stem|contains|all:
      - '/api/blobs/sha256:'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2026.7482
HEAD /api/blobs/{var}
title: ollama ollama exploit attempt (CVE-2026-7482)
id: gg-pocmon-cve-2026-7482-9275966
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-7482. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2026-7482
logsource:
  category: webserver
detection:
  selection:
    cs-method: HEAD
    cs-uri-stem|contains|all:
      - '/api/blobs/'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2026.7482
POST /api/blobs/sha256:{var}
title: ollama ollama exploit attempt (CVE-2026-7482)
id: gg-pocmon-cve-2026-7482-9151373
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-7482. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2026-7482
logsource:
  category: webserver
detection:
  selection:
    cs-method: POST
    cs-uri-stem|contains|all:
      - '/api/blobs/sha256:'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2026.7482