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
Affects ollamaSource GCVE Database
Not known to be exploited · CVSS 7.8 High : upgrade to 0.31.2 soon.
Data as of 11 Nov 2026, 23:24 UTC
- EPSS
- 0.1% chance of exploitation in 30 days – higher than 3% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 0.31.2
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 29 Sep 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: evidence found.
Public exploit code: GitHub proofs of concept
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), GitHub proofs of concept, the Metasploit, Exploit-DB and nuclei-templates index as of 13 Nov 2026.
What to do
Upgrade ollama/ollama to 0.31.2.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
GitHubollama/ollamapkg:github/ollama/ollamaOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A fix is available in Ollama version 0.31.2 and later. Users should upgrade to version 0.31.2 or newer to remediate this vulnerability. No other mitigation guidance is provided.
Description
Ollama versions from 0.14.0 up to but not including 0.31.2 have an incorrect authorization vulnerability in the experimental agent mode Bash tool approval mechanism. This flaw allows attackers who can influence model output via prompt injection to append shell control operators to approved commands, enabling execution of additional shell commands without session approval. The vulnerability has a high severity with a CVSS score of 7.8.
References
- nvd.nist.gov/vuln/detail/CVE-2026-102697 (opens in a new tab)
- github.com/ollama/ollama/commit/a2b3a5e9a3956bc0700a8505580c11faf4da09b5 (opens in a new tab)
- github.com/ollama/ollama (opens in a new tab)
- github.com/ollama/ollama/blob/v0.31.1/x/agent/approval.go (opens in a new tab)
- github.com/ollama/ollama/blob/v0.31.1/x/agent/approval.go (opens in a new tab)
- github.com/ollama/ollama/releases/tag/v0.31.2 (opens in a new tab)
- vulncheck.com/advisories/ollama-0.14.0-before-0.31.2-experimental-agent-bash-approval-bypass-via-prefix-based-authorization (opens in a new tab)