LIVE · cybersecurity feed
Live wire
Is AI Making Us Worse at Cybersecurity?CVE-2026-114713 · Attackers Exploit UnrealIRCd Flaw That Enables Server-Level Command InjectionCVE-2024-10441 · Synology BeeStation OS Vulnerability Linked To Ransomware CampaignsCVE-2020-1337 · Microsoft Windows TOCTOU Race Condition CVE-2020-1337 Linked to RansomwareCVE-2024-58406 · Huatian Dynamic OA8000 Path Traversal Flaw Exploited Upon DisclosureCVE-2026-124218 · Addonsorg Drag and Drop File Upload for Elementor Forms Flaw Exploited Upon DisclosureCVE-2026-114713 · UnrealIRCd Improper Neutralization Flaw Exploited Upon DisclosureCVE-2026-114713 · U.S. CISA adds Check Point and UnrealIRCd flaws to its Known Exploited Vulnerabilities catalogFBI flash alert says Artex tool automating cyberattacks at ‘machine speed’CVE-2026-84869 · SCKit abuses ScreenConnect to deploy remote access and target technician sessions
patch

Researchers escape OpenAI Codex sandbox to run commands on host

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.

ZeroDay News ·

Source: BleepingComputer

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 →
breach

Stolen Fireworks AI Key Led to Cursor Data Breach and Trojanized Claude Code Extension

The compromise of the official Claude Code extension hosted on the Cursor marketplace has been traced back to the theft of an access key originating from a security incident at Fireworks AI. According to a recent update from Cursor, an unauthorized actor obtained an access key that had been issued to Fireworks AI. This key, which was exposed following a breach at the third-party provider,…

breach

Week in review: Secret stealer hits GitHub repos, Claude Code turned into remote-controlled implant

A widespread credential-harvesting campaign has compromised tens of thousands of GitHub repositories since November 10, 2026. Security researchers identified the operation, dubbed wfx-loot, which relies on stolen GitHub credentials to inject malicious payloads into existing repositories. In at least 1,800 confirmed instances, the injected code successfully executed, exfiltrating GitHub Actions…

breach

Cursor confirms security breach led to malicious Claude Code extension

The AI-powered code editor Cursor has confirmed a significant security breach that resulted in the distribution of malicious software through its marketplace. The incident, which occurred on October 29, involved the compromise of credentials belonging to the AI infrastructure provider Fireworks AI. These credentials allowed unauthorized actors to access internal Cursor systems, leading to the…

security

Upcoming Speaking Engagements

Security researcher Bruce Schneier has announced his upcoming public speaking schedule for the latter half of November 2026. The updates, published on November 14, 2026, outline two specific engagements taking place in the province of Ontario, Canada.

security

US disrupts North Korean campaign behind $400 million crypto theft

The United States government has successfully disrupted a sophisticated, 18-month-long social engineering campaign identified as FaceStealer, which authorities link to a North Korean threat actor responsible for the theft of over $400 million in cryptocurrency. The operation, which federal investigators and private cybersecurity researchers attribute to the group known as BlueNoroff, utilized…

aicritical

Is AI Making Us Worse at Cybersecurity?

The integration of artificial intelligence into cybersecurity operations has sparked a debate regarding whether the technology is inadvertently degrading the core competencies of security professionals. While AI is widely acknowledged for its ability to accelerate data processing and increase operational efficiency, concerns are mounting that an overreliance on these tools may be eroding the…