CVE-2026-102697
published high CVSS 4.0 · 8.5Ollama 0.14.0 before 0.31.2 Experimental Agent Bash Approval Bypass via Prefix-Based Authorization
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| ollama | — | ollama0.14.0 to < 0.31.2 · Other versions: unaffected | Affected | Not stated | VulnCheck |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.5 / 10
- Severity
- high
- Provider
- VulnCheck · cna
- Vector string
- CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 7.8 | high | VulnCheck · cna | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| ollama | ollama | 0.14.0 to < 0.31.2 (affected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-863 Incorrect Authorization
References
6- 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
- Patch Commit https://github.com/ollama/ollama/commit/a2b3a5e9a3956bc0700a8505580c11faf4da09b5
- ollama v0.31.2 Release Notes https://github.com/ollama/ollama/releases/tag/v0.31.2
- VulnCheck Advisory: Ollama 0.14.0 before 0.31.2 Experimental Agent Bash Approval Bypass via Prefix-Based Authorization https://www.vulncheck.com/advisories/ollama-0.14.0-before-0.31.2-experimental-agent-bash-approval-bypass-via-prefix-based-authorization
Provider assertions
2VulnCheck · cna
Ollama 0.14.0 before 0.31.2 Experimental Agent Bash Approval Bypass via Prefix-Based Authorization
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 39c20ca5bcb70e09168863d5d0c9b6f2a300c97ed4044c574e12b1ba882c96dd
- Ingested
- 30 Sep 2026, 15:18:33 UTC
- Source record
- Official CVE record