---
id: CVE-2026-111702
title: >-
  ChatOllama through commit 96c3ce5 contains an insecure direct object reference
  vulnerability that allows remote attackers to access other users' private
  knowledge bases by supplying sequential ids
summary: >-
  ChatOllama through commit 96c3ce5 contains an insecure direct object reference
  vulnerability that allows remote attackers to access other users' private
  knowledge bases by supplying sequential ids. Attackers can enumerate ids via
  GET /ap…
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'
cwe:
  - CWE-639
vendor: sugarforever
product: chat-ollama
affected:
  - chat-ollama <= 96c3ce50c3ba4ec3b19f126f50c035f84183f9fc
published: '2026-10-16'
updated: '2026-10-16'
sourceUpdated: '2026-10-16T19:17:05.120'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-111702'
references:
  - url: >-
      https://github.com/sugarforever/chat-ollama/blob/6f4245a96b58ce8833a8c51d90d923b0e9814784/server/api/knowledgebases/%5Bid%5D.get.ts#L25-L34
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/sugarforever/chat-ollama/blob/6f4245a96b58ce8833a8c51d90d923b0e9814784/server/api/models/chat/index.post.ts#L392-L427
    label: disclosure@vulncheck.com
  - url: >-
      https://hackmd.io/@hieuPenguinnn/chat-ollama-knowledge-base-cross-user-idor
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/chatollama-through-commit-96c3ce5-idor-exposes-private-knowledge-bases
    label: disclosure@vulncheck.com
  - url: >-
      https://hackmd.io/@hieuPenguinnn/chat-ollama-knowledge-base-cross-user-idor
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
tags:
  - nvd
  - cve.org
  - exploit-available
epss: 0.00426
epssPercentile: 0.36672
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'yes'
  technicalImpact: partial
  timestamp: '2026-10-16T18:22:35.409213Z'
ingestedAt: '2026-10-16T18:43:08.624Z'
---

## Overview

ChatOllama through commit 96c3ce5 contains an insecure direct object reference vulnerability that allows remote attackers to access other users' private knowledge bases by supplying sequential ids. Attackers can enumerate ids via GET /api/knowledgebases/{id} or the knowledgebaseId parameter of POST /api/models/chat to read metadata and retrieved document content.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
