[ CVE-2026-102697 · Published 29 Sep 2026 ]
Vulnerability in ollama
CVSS 7.8
EPSS <1%1 agency advisoryNo fix listed yet
[ Description ]Official 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.
[ Fixes ]Fixes and patches
No fix or interim patch is linked from our sources yet. Check the vendor references below and limit exposure of affected systems until a fix is available.
[ Advisories ]Government CERT advisories
-
BSI CERT-BundWID-SEC-2026-3634
Ollama: Vulnerability allows code execution Translated from German
[ References ]References
- github.com/ollama/ollama
- github.com/ollama/ollama/blob/v0.31.1/x/agent/approval.go
- github.com/ollama/ollama/blob/v0.31.1/x/agent/approval.go
- github.com/ollama/ollama/commit/a2b3a5e9a3956bc0700a8505580c11faf4da09b5
- github.com/ollama/ollama/releases/tag/v0.31.2
- www.vulncheck.com/advisories/ollama-0.14.0-before-0.31.2-experimental-agent-bash-approv…