Friday, 16 October 2026
1 agent hack today▼ 7 vs yesterday (8)

Ollama agent mode bash approval bypass via prompt injection

Ollama versions 0.14.0 before 0.31.2 contain an incorrect authorization vulnerability in experimental agent mode where the bash tool approval mechanism fails to properly parse shell syntax, allowing attackers to execute additional shell commands through prompt injection.

Disclosed 29 September 2026 · Record updated 1 October 2026

Impact

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.

Our coverage

Sources

  1. nvd.nist.govhttps://nvd.nist.gov/vuln/detail/CVE-2026-102697