Skip to content
Heist/ feed
High

Ollama 0.14.0 before 0.31.2 Experimental Agent Bash Approval Bypass via Prefix-Based Authorization

Type: advisorySource: Official CVE List1 source record

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.

Announced Source revision 1
Original source ↗

CVE-2026-102697

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-102697

ollama

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "vendor": "ollama",
    "product": "ollama",
    "versions": [
      {
        "status": "affected",
        "version": "0.14.0",
        "lessThan": "0.31.2",
        "versionType": "semver"
      }
    ],
    "packageURL": "pkg:golang/github.com/ollama/ollama",
    "defaultStatus": "unaffected"
  }
]
Related CVEs
CVE-2026-102697

Source reference: /cveMetadata/cveId

Publisher severity

high

Source reference: /containers/cna/metrics

Event
#3879 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement