THREATOPS
THREAT OPS › Threat News › [GHSA] GHSA-456v-xq2p-r4cj (high) — code-ollama: `grep_search` Command Injection via Unescaped `$()` Shell Substitution (CWE-78)

[GHSA] GHSA-456v-xq2p-r4cj (high) — code-ollama: `grep_search` Command Injection via Unescaped `$()` Shell Substitution (CWE-78)

highgithub_advisoriesPublished 2026-09-28

GHSA-456v-xq2p-r4cj Severity: high CVE: None

code-ollama: `grep_search` Command Injection via Unescaped `$()` Shell Substitution (CWE-78)

## `grep_search` Command Injection via Unescaped `$()` Shell Substitution (CWE-78)

### Summary

The `grep_search` tool in `code-ollama` constructs a shell command string by interpolating attacker-controlled `pattern` and `path` arguments, then executes it via

Indicators of compromise

Original source: https://github.com/advisories/GHSA-456v-xq2p-r4cj