Skip to content
MediumNewsLLM-specific

Google Patches Antigravity IDE Flaw Enabling Prompt Injection Code Execution

Published
Record updated
View JSON

Summary

Cybersecurity researchers at Pillar Security found a flaw in Google's agentic IDE Antigravity that allows code execution. The find_by_name file-search tool passes its Pattern parameter directly to fd without strict validation, so injecting the -X (exec-batch) flag, such as the value -Xsh, makes fd run matched files as shell scripts, bypassing Strict Mode. An attacker can stage a malicious file and trigger it, or reach the same result through indirect prompt injection from an untrusted file.

Mitigation

Fixed by Google; the flaw was reported on January 7, 2026 and addressed as of February 28.