Auth bypass in Ollama
CVE-2026-102697
Ollama versions 0.14.0 before 0.31.2 contain an incorrect authorization vulnerability in the experimental agent mode Bash tool approval mechanism that fails to properly parse shell syntax. Attackers who can influence model output through prompt injection can execute additional shell commands by appending control operators like semicolons or logical operators to approved commands, bypassing the session approval requirement.
Vulnerability class: Broken Access Control
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.001, 3.9th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
Weakness classification (CWE)
Public exploits and proof-of-concept code
1 public repository with exploit or proof-of-concept code for this CVE:
- akinerkisa/blindllama-cve-2026-102697 (last pushed 2026-10-18): BlindLlama: CVE-2026-102697 Reproduction
References
- Patch Commit (patch)
- ollama v0.31.2 Release Notes (release-notes)
- github.com/ollama/ollama/blob/v0.31.1/x/agent/approval.go (technical-description)
- github.com/ollama/ollama/blob/v0.31.1/x/agent/approval.go (technical-description)
- github.com/ollama/ollama (product)
- VulnCheck Advisory: Ollama 0.14.0 before 0.31.2 Experimental Agent Bash Approval Bypass via Prefix-Based Authorization (third-party-advisory)
This CVE has public exploit evidence. See the latest CVEs with public exploits.