Vulnerability

CVE-2026-102697

highCVSS 4.0 8.5Published 29 Sep 2026

A plain-language summary of this CVE is being written; the description below is the NVD's own text.

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.

Affected products

The NVD has not attached product data to this record yet; the description names what is affected.

Weakness type

References

  • github.com /ollama/ollama
  • github.com /ollama/ollama/blob/v0.31.1/x/agent/approval.go
  • github.com /ollama/ollama/blob/v0.31.1/x/agent/approval.go
  • github.com /ollama/ollama/commit/a2b3a5e9a3956bc0700a8505580c11faf4da0…
  • github.com /ollama/ollama/releases/tag/v0.31.2
  • www.vulncheck.com /advisories/ollama-0.14.0-before-0.31.2-experimental-agent-…

Ingati scans your site every week and tells you when a CVE like this one affects something it found there.

Start scanning