CVE-2026-102697

High

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.

SeverityHigh
CVSS7.8
Exploit probability—
ProductOllama
PublishedSep 29, 2026
First seenSep 29, 2026

How to fix

Affected products

ProductAffected versionsFixed in
ollama ollama0.14.0 ≤ v < 0.31.20.31.2

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2026-102697 · Ollama · Dark Radar