Context-Inappropriate Capability
Medium
- Confidence
- 92% confidence
- Finding
- This code builds shell commands and executes them with `exec`, which introduces command-injection risk because both `model` and `text` influence the command string. Although the target is a local Ollama service, a crafted value containing shell metacharacters or malformed quoting could cause arbitrary command execution under the agent's privileges, which is far more dangerous than normal embedding functionality requires.
