LIVE · cybersecurity feed
Live wire
CVE-2026-9055 · WordPress Amelia Plugin Flaw Exploited Before CVE PublicationCVE-2026-46331 · Linux Kernel Flaw Exploited After 71 Days, Not on CISA KEVCVE-2026-84434 · CVE-2026-84434 Exploited Before Publication, No Patch WindowCVE-2017-20284 · CVE-2017-20284 Exploited Same Day as PublicationCVE-2024-4405 · Malicious Extensions Hijack AI Browser Agents via Prompt ForcingCVE-2026-58138 · Critical Pre-Auth RCE in Orkes Conductor Workflow Platform Exploited in the WildCVE-2025-39682 · CISA Flags Three Linux Kernel Vulnerabilities Exploited in the WildBrevo Supply-Chain Attack Infected Over 100,000 WebsitesPublic Exploits Released for Linux Kernel Root Privilege FlawsIn Other News: Ransomware Developer Sentenced, Plugin4Shell AI Attack, Critical SAP Flaw
patch

Researchers escape OpenAI Codex sandbox to run commands on host

Researchers escaped OpenAI's Codex sandbox two ways, one running commands on a developer's machine from its most locked-down mode. OpenAI has patched both. [...]

zeroday.news ·

Photo: European Commission - Photographer: Aurore Martignoni (CC BY 4.0) via Wikimedia Commons

Security researchers have identified two distinct sandbox escape vulnerabilities in OpenAI's Codex, a coding agent available as both a command-line interface (CLI) tool and a desktop application. Both flaws, reported to OpenAI on August 12 and subsequently patched within eight days, could allow untrusted code to execute commands on a developer's machine outside the intended sandbox environment.

The more critical of the two vulnerabilities, dubbed "Heapjack" by researchers at Accomplish AI, affects the Codex Desktop application. This flaw leverages a component named `node_repl`, which is automatically installed and configured in the global `~/.codex/config.toml` file. This configuration is also inherited by Codex CLI users. The `node_repl` component runs a single Node.js process containing two JavaScript execution contexts: one trusted, running OpenAI's code, and one untrusted, executing the agent's code.

The Heapjack attack exploits the fact that both contexts share the same memory heap. The trusted context authenticates itself using a randomly generated token, but this token resides in the shared memory space. An attacker's untrusted code can take a snapshot of the heap using `v8.getHeapSnapshot()` and then identify the token. With the valid token, the untrusted code can then inject its own requests into the communication pipe used by the trusted context to interact with a native, unsandboxed parent process. The parent process, validating the token, then executes the attacker's command. A proof-of-concept demonstrated the ability to launch an application outside Codex's process tree, and researchers noted potential targets like Unix sockets or Docker daemon sockets. This exploit functions even in Codex's strictest "read-only" sandbox mode, where the agent is not supposed to perform any write operations.

The second vulnerability, named "Overpatch," is present in the open-source Codex CLI. In "workspace-write" mode, the agent is designed to restrict write operations to within the project folder. However, the `apply_patch` tool, used by Codex for patching, was found to grant write access to the parent directory of any path specified in a patch. By including a patch that names `/tmp` (thereby granting write access to the root of the disk), an attacker could then use a symlink to append a line to the user's `.zshrc` file in their home directory. The next time the developer opens a terminal, the attacker's command would execute unsandboxed.

Both Heapjack and Overpatch share a common underlying design flaw: the enforcement mechanism for the sandbox was co-located with the code it was meant to restrict. In the case of `apply_patch`, permissions were derived from attacker-controlled input, while `node_repl` stored the trust boundary token in the same memory accessible to untrusted code. This class of vulnerability has been observed in other AI agents, including Cursor, Gemini CLI, and Google's Antigravity, where an agent within its sandbox writes a file that a trusted external tool later executes.

OpenAI has confirmed these issues and released patches. Heapjack was addressed in Codex Desktop build 26.818.21641, and Overpatch was fixed in Codex CLI version 0.149.0. Users are advised to update to these versions or later to mitigate the risks.

patchai
ShareXLinkedInWhatsAppFacebook

More News

view all →
vulnerability

U.S. CISA adds Linux Kernel flaws to its Known Exploited Vulnerabilities catalog

U.S. Cybersecurity and Infrastructure Security Agency (CISA) adds Linux Kernel flaws to its Known Exploited Vulnerabilities catalog. The U.S. Cybersecurity and Infrastructure Security Agency (CISA) added [1, 2] the following vulnerabilities to its Known Exploited Vulnerabilities (KEV) catalog: Below are detailed descriptions of the flaws: At the time of this writing, there are currently no details

malware

Malicious npm packages evade install-script defenses at runtime

An ongoing npm malware campaign involving the 'indexed-btree' package shows how threat actors bypass supply chain defenses by hiding malicious code in a package's normal runtime behavior rather than in installation scripts. [...]

nation-state

AI Hallucinations Nearly Triggered a US-China Military Confrontation

An AI-generated intelligence report falsely identified weapons on a Chinese ship, nearly triggering a US military operation during the Iran war. According to CNN, four sources familiar with the episode say an intelligence report circulated through the military claiming a Chinese vessel in the Middle East was carrying components for a nuclear weapons program. The […]

vulnerability

SECURITY AFFAIRS MALWARE NEWSLETTER ROUND 115

Security Affairs Malware newsletter includes a collection of the best articles and research on malware in the international landscape Malware Newsletter Gray Rabbits and the Tale of a One-Click Backdoor Red Heron exploits Gitea n-day flaw in multinational campaign, exposing new Linux rootkit Malicious Twitch Browser Extension Exposes 30,000 Users’ OAuth Tokens to Russian Bot […]

CVE-2026-9055critical

WordPress Amelia Plugin Flaw Exploited Before CVE Publication

A critical privilege escalation vulnerability in the WordPress Amelia plugin was exploited before its official CVE publication. CISA has not yet added it to its Known Exploited Vulnerabilities catalog.

CVE-2026-46331high

Linux Kernel Flaw Exploited After 71 Days, Not on CISA KEV

A Linux kernel vulnerability, CVE-2026-46331, has been confirmed as exploited, but remains absent from the US federal CISA Known Exploited Vulnerabilities (KEV) catalogue.