p PatchFirst

PatchFirst · Latest vulnerabilities

code-ollama vulnerabilities

Vulnerabilities published for code-ollama in the last 30 days: 0. Listed in the KEV catalogue: 0.

Filter vulnerabilities
Clear filters

Vulnerability: 1

  1. GHSA-456v-xq2p-r4cj

    High · CVSS 7.8Fix available

    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 `child_process.exec()`. The sanitization only escapes backslashes and double-quote characters, leaving `$()` command substitution and backtick expansion fully intact. A malicious or compromised Ollama server can therefore inject and execute arbitrary OS commands with the privileges of the local user running `code-ollama`. Because `grep_search` is classified as a read-only tool, it auto-

    • Update to 0.36.1
    Published Updated

Check your server

Check your installed stack and versions against the current vulnerability feeds.

Check your server →