Skip to content
Threat Feed
high advisory

CVE-2026-111702: Insecure Direct Object Reference in ChatOllama

ChatOllama through commit 96c3ce5 contains an insecure direct object reference vulnerability that allows unauthenticated attackers to access private knowledge bases by enumerating sequential ID values.

CVE search metadata

CVE search record: CVE-2026-111702. Severity: high. CVSS: 7.5. KEV: no. Product: ChatOllama (<= 96c3ce5). Brief: CVE-2026-111702: Insecure Direct Object Reference in ChatOllama. Brief link: https://feed.craftedsignal.io/briefs/2026-10-chatollama-idor/

ChatOllama through commit 96c3ce5 is affected by an insecure direct object reference (IDOR) vulnerability, tracked as CVE-2026-111702. This vulnerability allows remote, unauthenticated attackers to bypass authorization controls and access private knowledge bases stored within the application. By providing sequential numerical identifiers to the API, an attacker can enumerate and retrieve sensitive metadata and the content of documents associated with other users' knowledge bases. The vulnerability resides in how the application processes the {id} parameter in GET requests to the knowledgebase endpoint and the knowledgebaseId parameter in POST requests to the chat model interface. Given that these endpoints are typically exposed for API interaction, this flaw poses a significant risk to the confidentiality of organizational data processed by the ChatOllama platform.

Impact

Successful exploitation of this vulnerability leads to unauthorized access and exfiltration of sensitive information stored within ChatOllama knowledge bases. As knowledge bases often contain internal documentation, private datasets, or proprietary information, this exposure can result in significant data breaches, potential compliance violations, and loss of intellectual property. Since the identifiers are sequential, an attacker can systematically scrape the entire knowledge base repository of an instance without requiring specific knowledge of existing IDs.

Recommendation

Update ChatOllama installations to a version beyond commit 96c3ce5 once a security patch is provided by the vendor. In the interim, implement strict network-level access controls for the /api/knowledgebases and /api/models/chat endpoints to restrict traffic to known, trusted internal IP ranges.

Detection

Because this vulnerability relies on sequential ID enumeration, detection teams should monitor web access logs for anomalous spikes in 200 OK responses from the /api/knowledgebases/ endpoint, specifically looking for high counts of distinct requested IDs originating from a single source IP.


Immediate actions

Monitor web access logs for unauthorized access to /api/knowledgebases/

SOC 24h

Mitigations

Implement network-level access control to restrict access to ChatOllama API endpoints

immediate IT Operations

CVE-2026-111702

Detection coverage 1

Detect CVE-2026-111702 Exploitation - Sequential ID Enumeration

high

Detects potential CVE-2026-111702 exploitation by monitoring for excessive requests to the knowledgebase API with sequential numeric identifiers.

sigma tactics: initial_access techniques: T1190 sources: webserver

Detection queries are available on the platform. Get full rules →