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)
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
- http://127.0.0.1:11434url
- http://{FAKE_SERVER_HOST}:{FAKE_SERVER_PORT}url
Original source: https://github.com/advisories/GHSA-456v-xq2p-r4cj