Gemini CLI PR fixes command-line option injection in grep with explicit -e delimiter
zainnadeem786 · ghdev · 2026-09-28
A PR against Google's Gemini CLI hardens the local grep execution module against Command-Line Option/Argument Injection (CWE-88). Search patterns were previously passed as raw positional arguments to both git grep and system grep, so any token starting with a hyphen (e.g. -v, --max-count) could be misinterpreted as a flag — altering search behavior or crashing the subprocess with fatal errors (a DoS vector from untrusted workspaces). The fix enforces explicit -e delimiters before the pattern for both pipelines and adds unit tests — a textbook defense for securely spawning subprocesses.
More from coding & agent
- Google Research open-sources PaperOrchestra, a multi-agent framework for writing AI papers — google-research · 2026-11-16
- ffmpeg-skill gives coding agents local video editing via 42 FFmpeg tools and MCP — kajisho5 · 2026-11-16
- Agents Now Reply to Slack Messages on Their Own, Resolving a Prod Incident Ghost-to-Ghost — iamrobotbear · 2026-11-16
- Engineer's Interview Prep Method: Use Claude to Find Which Answers Undersell Your AI Work — brandon_galang · 2026-11-16
- DeepSeek open-sources its app frontend "chat-demo", already at 3.9k stars — NielsRogge · 2026-11-16
- lemire: AI's real impact on coding is expanding the engineer's 'cognitive radius', not speed — lemire · 2026-11-16