← Back to search

CVE-2026-102697

7.8 HIGHpublic exploit available

Published 2026-09-29 · Updated 2026-09-29

AI risk analysis

Summary
The flaw allows attackers to execute additional shell commands by exploiting prompt injection in the experimental agent mode Bash tool approval mechanism, bypassing session approval requirements.
Exploitability
Exploitation is moderately hard as it requires attackers to influence model output through prompt injection, but once achieved, it can lead to full command execution.
Blast radius
If exploited, this vulnerability could result in unauthorized command execution, potentially leading to complete system compromise.
Detection
No reliable host or network indicator is derivable from the published description.
Prioritized remediation
Upgrade to Ollama version 0.31.2 or later.
rceauth-bypassbashshellcommand-execution

Analysis generated locally by qwen2.5:7b-instruct (no data left the box). AI-assisted — verify against primary sources before acting.

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

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Weaknesses

CWE-863

Public exploit & PoC references

References

Data: NVD (public domain). Analysis: local $0 model. Defensive use only.