# CVE-2026-102697: Ollama 0.14.0 before 0.31.2 Experimental Agent Bash Approval Bypass via Prefix-Based Authorization

- Severity: High 8.5 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2026-09-29T16:46:08.734Z
- Modified: 2026-09-29T21:32:59.833Z
- Weaknesses: CWE-863
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- ollama ollama: from 0.14.0 before 0.31.2

## Every score

- VulnCheck: CVSS:4.0 8.5 High `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/ollama/ollama/commit/a2b3a5e9a3956bc0700a8505580c11faf4da09b5> (patch)
- <https://github.com/ollama/ollama/releases/tag/v0.31.2> (release-notes)
- <https://github.com/ollama/ollama/blob/v0.31.1/x/agent/approval.go#L204-L206> (technical-description)
- <https://github.com/ollama/ollama/blob/v0.31.1/x/agent/approval.go#L389> (technical-description)
- <https://github.com/ollama/ollama> (product)
- <https://www.vulncheck.com/advisories/ollama-0.14.0-before-0.31.2-experimental-agent-bash-approval-bypass-via-prefix-based-authorization> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-102697](https://www.cve.org/CVERecord?id=CVE-2026-102697), CVE Terms of Use, modified 2026-09-29
- NVD: [CVE-2026-102697](https://nvd.nist.gov/vuln/detail/CVE-2026-102697), Public domain, modified 2026-09-29

---

Page: https://cve.day/CVE-2026-102697 · Whole record: https://cve.day/CVE-2026-102697.json · Rebuilt by cve.day 2026-11-25T22:59:41.496Z
