Originalbeschreibung
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.
Betroffene Software
- Ollama ≥ 0.14.0 < 0.31.2 Behoben in: 0.31.2 Repository- oder Paket-Übereinstimmung
Details
- Veröffentlicht
- 2026-09-30
- Zuletzt geändert
- 2026-09-30
- CVSS-Vektor
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- CWE
- CWE-863
Referenzen
- cve.org/CVE-2026-102697
- nvd.nist.gov/vuln/detail/CVE-2026-102697
- github.com/ollama/ollama/commit/a2b3a5e9a3956bc0700a8505580c11faf4da09b5
- github.com/ollama/ollama/releases/tag/v0.31.2
- github.com/ollama/ollama/blob/v0.31.1/x/agent/approval.go#L204-L206
- github.com/ollama/ollama/blob/v0.31.1/x/agent/approval.go#L389
- github.com/ollama/ollama
- www.vulncheck.com/advisories/ollama-0.14.0-before-0.31.2-experimental-agent-bash-approval-...
Verfolgen Sie diese Versionen auf Ihren eigenen Servern
InfraGuard erfasst die installierten Softwareversionen auf jedem Server und markiert diejenigen mit bekannten Schwachstellen. Self-Hosted – nichts verlässt Ihr Netzwerk.
Dieses Produkt verwendet Daten der NVD-API, ist jedoch nicht von der NVD empfohlen oder zertifiziert. CVE® ist eine eingetragene Marke von The MITRE Corporation; CVE-Datensätze werden gemäß den Nutzungsbedingungen des CVE Program verwendet.