Skip to content
RCE Advisory Advanced CVE-2026-19593

(Pwn2Own) OpenAI Codex External Control of System or Configuration Setting Remote Code Execution Vulnerability

Configuration files handled by OpenAI Codex were not properly sanitised, so a malicious folder could carry settings that let an attacker run code. The attacker could execute arbitrary code as the current user if the target opened that folder.

Ikotas Labs, Inc. (Satoki Tsuji) Follow

Originally disclosed on Zero Day Initiative

High 7.8 View original

This vulnerability allows remote attackers to execute arbitrary code on affected installations of OpenAI Codex. User interaction is required to exploit this vulnerability in that the target must open a malicious folder.

Ikotas Labs, Inc. (Satoki Tsuji), on the Zero Day Initiative

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely, configuration settings from a folder were applied without validation, allowing values that lead to command execution.

Impact

An attacker could execute arbitrary code in the context of the current user, but only if the target opens a malicious folder.

What the attacker needed

Victim opens a malicious folder

The fix

The vendor issued an update to correct the vulnerability.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

A configuration file is a settings file that a program reads to decide how to behave. Here the program trusted those settings without checking them, so a folder prepared by an attacker could contain settings that make the program run the attacker's commands. The victim has to open that folder for it to work.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More from Zero Day Initiative

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.