High severity7.8NVD Advisory· Published Sep 29, 2026· Updated Sep 29, 2026
CVE-2026-102697
CVE-2026-102697
Description
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
1Patches
Vulnerability mechanics
References
5- github.com/ollama/ollama/blob/v0.31.1/x/agent/approval.gonvd
- github.com/ollama/ollama/blob/v0.31.1/x/agent/approval.gonvd
- github.com/ollama/ollama/commit/a2b3a5e9a3956bc0700a8505580c11faf4da09b5nvd
- github.com/ollama/ollama/releases/tag/v0.31.2nvd
- www.vulncheck.com/advisories/ollama-0.14.0-before-0.31.2-experimental-agent-bash-approval-bypass-via-prefix-based-authorizationnvd
News mentions
0No linked articles in our index yet.