CVE-2026-111702
7.5HighPublished 16 Oct 2026 · NVD status: Deferred · AI triage by gemini-3.8-flash
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
- Impact
- High impact on confidentiality
- Weakness
- CWE-639
Impact
Remote attackers can read private knowledge base metadata and retrieved document contents without authentication. They only need network access to the API to enumerate sequential resource IDs.
Root cause
The API endpoints lack authorization checks when fetching knowledge bases by ID, creating an insecure direct object reference (IDOR).
Affected systems
ChatOllama through commit 96c3ce5
CVSS v3.1 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Fix & remediation
Upgrade to a commit after 96c3ce5 if available. If patching must wait, block external access to GET /api/knowledgebases/* and restrict POST /api/models/chat behind reverse proxy authentication or a firewall.
$ git pull origin mainAI-suggested. Run it in staging first and check it against the vendor advisory. Why?
NVD description
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.
References
- https://github.com/sugarforever/chat-ollama/blob/6f4245a96b58ce8833a8c51d90d923b0e9814784/server/api/knowledgebases/%5Bid%5D.get.ts#L25-L34
- https://github.com/sugarforever/chat-ollama/blob/6f4245a96b58ce8833a8c51d90d923b0e9814784/server/api/models/chat/index.post.ts#L392-L427
- https://hackmd.io/@hieuPenguinnn/chat-ollama-knowledge-base-cross-user-idor
- https://www.vulncheck.com/advisories/chatollama-through-commit-96c3ce5-idor-exposes-private-knowledge-bases
- https://hackmd.io/@hieuPenguinnn/chat-ollama-knowledge-base-cross-user-idor