CVE-2026-102697
7.8 HIGHpublic exploit availablePublished 2026-09-29 · Updated 2026-09-29
AI analysis for this CVE has not been generated yet. Raw NVD data is shown below.
NVD 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.
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weaknesses
CWE-863
Public exploit & PoC 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
All 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
Source data: NVD (nvd.nist.gov), public domain. Exploit-DB.ai adds local AI analysis for defensive use only.
Related CVEs
- UNSCOREDCVE-2026-100371PoC
- UNSCOREDCVE-2026-100392PoC
- MEDIUMCVE-2026-100529PoC
- HIGHCVE-2026-100530PoC
- HIGHCVE-2026-100535PoC
- MEDIUMCVE-2026-100538PoC
- LOWCVE-2026-100539PoC
- MEDIUMCVE-2026-100540PoC
Related by shared AI tags and CWE weakness class. Browse the full archive.