Auth bypass in Ollama
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. 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 class: Broken Access Control
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
EPSS exploit prediction
No EPSS score from FIRST.org yet. New CVEs usually get one within a few days; no score means no signal yet, not low risk. How EPSS works.
Affected products
Weakness classification (CWE)
References
- github.com/ollama/ollama/commit/a2b3a5e9a3956bc0700a8505580c11faf4da09b5 (patch)
- github.com/ollama/ollama/releases/tag/v0.31.2 (release-notes)
- github.com/ollama/ollama/blob/v0.31.1/x/agent/approval.go (technical-description)
- github.com/ollama/ollama/blob/v0.31.1/x/agent/approval.go (technical-description)
- github.com/ollama/ollama (product)
- www.vulncheck.com/advisories/ollama-0.14.0-before-0.31.2-experimental-agent-bas… (third-party-advisory)
Frequently asked questions
- What is CVE-2026-102697?
- CVE-2026-102697 is a high-severity vulnerability in Ollama, classified under Incorrect Authorization. CVSS score: 7.8/10. Published 2026-09-29.
- How severe is CVE-2026-102697?
- High severity. CVSS v3 base score is 7.8 out of 10.