CVE Catalog

CVE-2026-102697

HighCVSS 7.8
Published: Updated: Translated: NVD NIST

Summary

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.

Risk Assessment

An attacker can exploit this vulnerability to execute unauthorized commands on the server, potentially leading to system compromise, data theft, or other damage.

Recommendation

Upgrade Ollama to version 0.31.2 or later. Also restrict access to agent mode and apply additional command validation mechanisms.

Other vulnerabilities in Ollama

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS