MobbleOpen in Mobble ⇢
Technology · Cybersecurity · published 2026-09-20 · via BleepingComputer

Codex sandbox bypass lets attackers execute code on developer machines

Image via BleepingComputer
Image via BleepingComputer

Security researchers discovered two vulnerabilities in OpenAI's Codex coding agent that allow escaping its sandbox, with one flaw enabling remote code execution on a developer's machine without any approval prompt. The more severe issue, dubbed Heapjack, exploits a shared memory heap between trusted and untrusted JavaScript contexts to steal a validation token and issue commands to an unsandboxed parent process. OpenAI patched both flaws within eight days of the August 12 report.

Expanded Detail

Heapjack exploits node_repl's shared memory heap, where untrusted code can snapshot memory, extract a UUID validation token, and send commands to an unsandboxed parent process—all in read-only mode. Overpatch abuses apply_patch's permission logic: naming '/tmp' in a patch grants root-level write access, letting a symlinked .zshrc modification execute on next terminal launch. OpenAI patched both within eight days of the August 12 report.

Context

This could affect developers who open unfamiliar repositories in Codex, potentially granting remote attackers unsandboxed command execution on their machines. The read-only mode bypass is particularly concerning since it defeats the strictest security setting. While OpenAI responded quickly, the underlying pattern—enforcement living inside the thing being enforced—may persist in other AI coding tools, suggesting broader industry implications for sandbox design.

Expanded detail and Context are AI-generated analysis; the linked article remains the authoritative source.
Read the full article at BleepingComputer →
Related stories
Cisco fixes actively exploited email gateway flaw allowing root access · Cybersecurity
White-hat team exploits OpenAI's SSO and forum flaw to reach internal code · Cybersecurity
Critical Check Point bug grants unauthenticated root access to management servers · Cybersecurity
CISA flags actively exploited ScreenConnect bug, orders federal fixes · Cybersecurity
This summary is Al-enhanced to contain extended analysis and broader social context. The original is {NAME); the linked article is the authoritative source. Original headline: “Researchers escape OpenAI Codex sandbox to run commands on host.” Browse more stories.