CVE-2026-102697
Ollama versions 0.14.0 before 0.31.2 contain an incorrect authorization vulnerability in the…
- Risk score
- 58/100
- CVSS
- 7.8 v3.1
- Exploit chance (30 days)
- 0.1%
- Published
- 29 Sep 2026
Open in the live forecast Today's forecast
What to know
- What it is
- 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 opera…
- Affected
- See advisory
- Fix
- Upgrade the product to 0.31.2 or later.
- Exploitation
- No known exploitation
Why it is Yellow
- CVSS 7.8 high
- On your watchlist: ollama
References
- https://github.com/ollama/ollama
- https://github.com/ollama/ollama/blob/v0.31.1/x/agent/approval.go#L204-L206
- https://github.com/ollama/ollama/blob/v0.31.1/x/agent/approval.go#L389
- https://github.com/ollama/ollama/commit/a2b3a5e9a3956bc0700a8505580c11faf4da09b5
- https://github.com/ollama/ollama/releases/tag/v0.31.2
- https://www.vulncheck.com/advisories/ollama-0.14.0-before-0.31.2-experimental-agent-bash-approval-bypass-via-prefix-based-authorization
Original 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.
Last activity 29 Sep 2026. Patch Forecast updates every hour.