Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

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

Quick assessment

Affected
ollama ollama
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Ollama 0.14.0 至 0.31.2 版本(不包含 0.31.2)的实验性代理模式中的 Bash 工具审批机制存在授权不当漏洞,因其未能正确解析 shell 语法。能够通过提示注入影响模型输出的攻击者,可以在已批准的命令末尾追加分号或逻辑运算符等控制操作符,从而执行额外的 shell 命令,绕过会话审批要求。

CVSS 7.8 · High EPSS 0.15% · P3

Affected Version Matrix 1

VendorProduct Version RangeStatus
ollama ollama 0.14.0< 0.31.2 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-102697

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Ollama 0.14.0 before 0.31.2 Experimental Agent Bash Approval Bypass via Prefix-Based Authorization
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
授权机制不正确
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
ollama ollama 0.14.0 ~ 0.31.2 -

II. Public POCs for CVE-2026-102697

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-102697

请登录查看更多情报信息。

Other References for CVE-2026-102697 (2)

IV. Related Vulnerabilities

V. Comments for CVE-2026-102697

No comments yet


Leave a comment