highCVSS 7.8NVD status: Awaiting Analysis

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 that fails to properly parse shell syntax.

ComponentOllama
Severityhigh (CVSS 7.8)
CVSS vectorCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Published (NVD)2026-09-29
Affected versionsnot published yet, see the advisory
Fixed insee the vendor advisory
WeaknessCWE-863
CISA KEVnot listed

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.

Does CVE-2026-102697 hit the version you run?Paste your docker-compose.yml, requirements.txt or package.json. The scanner checks your pinned versions against this CVE and every other one we track for Ollama.
Check my stack

What to do

  • NVD lists no fixed version yet: follow the vendor advisory below and keep Ollama off the public internet until a fix ships.
  • Do not expose the component's API or UI to the internet without authentication in front of it.

Sources

Read more

Other Ollama CVEs

All Ollama CVEs