CVE-2026-102697

published 29 Sep 2026 · updated 29 Sep 2026

Ollama 0.14.0 before 0.31.2 Experimental Agent Bash Approval Bypass via Prefix-Based Authorization

7.8HighCVSS 7.8EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 0.31.2.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Ollama>=0.14.0 <0.31.20.31.2

Exploit evidence

1 public sources

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-102697 severity on Zeptric[![CVE-2026-102697](https://zeptric.io/badge/cve/CVE-2026-102697.svg)](https://zeptric.io/cve/CVE-2026-102697)