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.
How to fix
- ollama ollama0.31.2 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| ollama ollama | 0.14.0 ≤ v < 0.31.2 | 0.31.2 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.