Friday, 16 October 2026
1 agent hack today▼ 7 vs yesterday (8)

code-ollama grep_search Command Injection via Shell Substitution

The grep_search tool in code-ollama fails to properly escape shell metacharacters in user-supplied input, allowing an attacker-controlled Ollama server to inject and execute arbitrary OS commands. Because grep_search is classified as read-only, it executes without user approval.

Disclosed 28 September 2026 · Record updated 1 October 2026

Impact

Arbitrary OS command execution with privileges of the local user running code-ollama, triggered by malicious or compromised Ollama server without user interaction.

Our coverage

Sources

  1. github.comhttps://github.com/advisories/GHSA-456v-xq2p-r4cj