BotBeat
...
← Back

> ▌

OpenAIOpenAI
RESEARCHOpenAI2026-07-20

Sandbox Escape Vulnerabilities Discovered Across Cursor, OpenAI Codex, Google Gemini CLI, and Antigravity

Key Takeaways

  • ▸Sandbox escape vulnerabilities identified in Cursor, OpenAI Codex, Google Gemini CLI, and Antigravity through a consistent pattern of prompt injection leading to file execution outside the sandbox
  • ▸Core vulnerability class exploits gap between sandboxed agents and trusted external tools (Git hooks, Python extensions, Docker daemons, VS Code tasks) that read and execute files agents can write
  • ▸Patches released by major vendors (Cursor 3.0.0, OpenAI Codex 0.95.0); most vulnerabilities tracked with CVEs or pending assignment
Source:
Hacker Newshttps://www.bleepingcomputer.com/news/security/cursor-codex-gemini-cli-antigravity-hit-by-sandbox-escapes/↗

Summary

Security researchers at Pillar Security discovered seven sandbox escape vulnerabilities across four major AI coding agents, collectively termed the "Week of Sandbox Escapes." The vulnerabilities were identified in Cursor, OpenAI's Codex CLI, Google's Gemini CLI, and Antigravity, revealing a fundamental architectural flaw: while the agents themselves operate within sandboxes, external tools running on the developer's machine outside the sandbox read and execute files the agent is allowed to write, creating escape vectors through prompt injection.

The research team—Eilon Cohen, Dan Lisichkin, and Ariel Fogel—identified four failure modes: denylist sandboxes that cannot keep pace with the operating system, workspace configs that function as executable code, overly permissive "safe" command allowlists that trust command names rather than their arguments, and privileged local daemons outside the sandbox entirely. Examples include Cursor's .claude hook config enabling unsandboxed command execution (CVE-2026-48124, patched in v3.0.0), Codex CLI's Git command allowlist vulnerability (patched in v0.95.0), and a Docker socket issue affecting all three major tools.

Most vendors have released patches and security researchers are working with them on CVE assignments. Google acknowledged two Antigravity findings but downgraded their severity, citing exploitation complexity. The broader concern highlighted by this research is that traditional sandbox approaches—which focus on restricting what agents can do inside—are insufficient when trusted external tools outside the sandbox blindly act on agent-written files.

  • Research reveals need for security model shift from simple file/command denylist sandboxes to monitoring what trusted tools actually execute based on untrusted agent-generated data

Editorial Opinion

This research exposes a fundamental architectural flaw in how current AI coding sandboxes operate—they focus on restricting agent actions while trusting external tools that process files the agent is allowed to write. Pillar Security's findings demonstrate that sandbox compliance means nothing if the files produced escape and are executed by trusted tools outside the sandbox perimeter. This critical insight reframes the sandbox debate: the real question isn't whether agents have restricted file system access, but rather whether the broader toolchain treats agent-written files as potentially untrusted data. Until coding assistant vendors address this architectural gap, sandboxes remain theater.

AI AgentsCybersecurityRegulation & PolicyAI Safety & Alignment

More from OpenAI

OpenAIOpenAI
RESEARCH

OpenAI's Codex Helps Verify Potential Counterexample to 60-Year-Old Jacobian Conjecture

2026-07-21
OpenAIOpenAI
INDUSTRY REPORT

OpenAI's Ad Revenue Projections Face 90% Shortfall, Threatening Company's Financial Model

2026-07-20
OpenAIOpenAI
INDUSTRY REPORT

Over 30% of Recent arXiv Submissions Detected as AI-Written, Study Finds

2026-07-20

Comments

Suggested

xAIxAI
OPEN SOURCE

Grok Build Is Open Source, but xAI Won't Take Your Patches

2026-07-21
Moonshot AI (Kimi)Moonshot AI (Kimi)
PRODUCT LAUNCH

Moonshot's Kimi Launch Divides Trump Administration Over AI Market Protection

2026-07-21
AnthropicAnthropic
RESEARCH

ANSI Escape Injection Flaw Discovered in MCP Servers: New Attack Vector Hides Instructions From Humans While AI Reads Them

2026-07-21
← Back to news
© 2026 BotBeat
AboutPrivacy PolicyTerms of ServiceContact Us