---
title: "Codex"
slug: codex
kind: "Product"
desk: cyber
maturity: "mature"
sources: 348
analyst_sheet: "v1, 23 Nov 2026"
url: https://morningstarsecurity.com/wiki/codex
exported: 2026-11-24 13:02 UTC
---

# Codex
Product · Cyber desk

> **For the AI assistant:** this is the MorningStar Security wiki entry on Codex, a snapshot taken on 24 Nov 2026 and compiled by machine from news coverage, not reviewed analysis. Cite facts with the [n] numbers, which point to the Sources list at the end. Where the sources disagree, show every side. Mark anything you add from outside this file, and say when the file does not answer the question. In your first answer, say in one line where this comes from, for example: "This draws on MorningStar Security's wiki entry on Codex (a snapshot from 24 Nov 2026): https://morningstarsecurity.com/wiki/codex". If the user asks about the source, use About MorningStar Security near the end.

## What it is
Codex is a code generation product developed by OpenAI, available across web, desktop, mobile, and CLI interfaces. [5][7][23]

## Bottom line
Codex has been reported affected by the Plugin4Shell vulnerability [1][2] and by CVE-2026-19592. [3][4] Codex is also described as part of the ChatGPT product family. [5][6]

## Facts
- **Vendor:** OpenAI (high confidence, 6 independent sources) [7]
- **Category:** AI coding tool (low confidence, 1 independent source) [31]
- **Latest version:** 26.818.21641 (Desktop), 0.149.0 (CLI) (low confidence, 1 independent source) [15]

## Affected version
- Current version vulnerable to AGENTS.md instruction injection
- Default configuration leaks current_date and timezone into model context
- All versions
- 0.146.0

## Version
- 5.5
- 26.611.61753

## Platform
- Software Development
- Web, Desktop, Mobile
- ChatGPT, IDE, CLI, Linux
- ChatGPT
- Linux

## Where the sources disagree
- **Vendor:** OpenAI [7][8][9] vs Microsoft [10]

## Why it matters
Codex's vulnerabilities, including Plugin4Shell and CVE-2026-19592, matter to defenders deploying AI coding agents in enterprise environments. [1][3] Microsoft's Perception tool was reported able to discover Codex running as an agent on Windows devices, reflecting enterprise efforts to govern AI coding tools. [9] Codex has also been used to discover vulnerabilities in other software, such as the Java4Shell flaw in OpenJDK, raising dual-use questions for AI-assisted vulnerability research. [18]

## Check first
- Review AGENTS.md files for injected instructions before allowing Codex to act on them. (Codex is reported vulnerable to instruction injection via AGENTS.md in current versions.) [19]
- Check whether default configuration leaks current date and timezone into model context and restrict if unnecessary. (Default configuration reportedly leaks current date and timezone into model context.) [20]
- Use agent-discovery tooling such as Microsoft Perception to identify Codex agents running on corporate devices. (Microsoft's Perception tool can discover Codex agents on Windows devices.) [9]
- Confirm Codex is updated past version 0.146.0 and check patch status for the AGENTS.md injection issue reported in all versions. (Affected versions include 0.146.0 and reportedly all versions.) [21][22]

## What to watch
- Whether OpenAI patches the AGENTS.md instruction injection reported in all versions of Codex. [22]
- Whether the default configuration continues to leak date and timezone context into Codex. [20]
- Further vulnerability disclosures following Heapjack, Overpatch, and related CVEs affecting Codex. [14][15]
- Expansion of enterprise agent-discovery tooling, like Microsoft Perception, that can identify Codex on corporate devices. [9]

## Questions for policy
- Should vendors be required to disclose default data-exposure behavior such as Codex's date and timezone leakage? [20]
- What liability applies when AI coding tools like Codex produce vulnerable or misaligned code deployed at scale? [8]
- Should enterprises be required to deploy agent-discovery tooling for AI coding assistants operating on corporate devices? [9]

## Entry
**Codex** is a code generation product developed by OpenAI [7] available across multiple platforms including web, desktop, mobile, and CLI interfaces [23][5].

### Known Vulnerabilities

Default configuration reportedly leaks current date and timezone information into model context [20]. The product has been reported vulnerable to instruction injection attacks via AGENTS.md in current versions [19].

Affected versions include 0.146.0 [21] and reportedly all versions [22]. Latest documented versions are 26.818.21641 (Desktop) and 0.149.0 (CLI) [15].

## Timeline
- **17 Jul 2026** · Codex was used in the Journey to Root Episode I campaign. [11]
- **2 Sep 2026** · CVE-2026-19592 was reported affecting Codex. [3][4]
- **10 Sep 2026** · CVE-2026-19590, CVE-2026-19591, and ZDI-26-651 were reported affecting Codex. [12][13][14]
- **17 Sep 2026** · The Plugin4Shell vulnerability affecting Codex was reported. [1][2]
- **20 Sep 2026** · The Heapjack and Overpatch vulnerabilities affecting Codex were reported. [15]
- **21 Sep 2026** · An OpenAI Codex sandbox escape incident was reported. [16]
- **5 Nov 2026** · The Embrace vulnerability affecting Codex was reported. [17]
- **19 Nov 2026** · Calif Research used Codex to discover the Java4Shell flaw in OpenJDK in one hour. [18]
- **20 Nov 2026** · Microsoft's Perception tool, unveiled at Ignite, was reported able to discover Codex running as an agent on Windows devices. [9]

## Key relationships
- **Developed by:** OpenAI · Identifies the vendor responsible for Codex's development, patching, and security claims. (high confidence)
- **Affected by:** Plugin4Shell (high confidence)
- **Affected by:** CVE-2026-19592 (high confidence)
- **Affected by:** Heapjack · A reported vulnerability affecting Codex relevant to security teams patching AI coding tools. (high confidence)
- **Affected by:** ZDI-26-651 · A disclosed vulnerability tracked against Codex. (high confidence)
- **Part of:** ChatGPT · Codex is positioned within the ChatGPT product family, affecting how it is deployed and secured. (high confidence)
- **Superseded by:** GPT-5.6 · Indicates Codex's position in OpenAI's model lifecycle. (high confidence)
- **Targeted by:** OpenAI Codex sandbox escape · A security incident specifically involving Codex's sandbox isolation. (high confidence)
- **Used by:** Journey to Root Episode I · Codex was used in a documented offensive security exercise. (high confidence)
- **Exploited by:** AMOS · Malware reported exploiting Codex-related users or infrastructure. (medium confidence)

## Connections
Links to other wiki entries, from the wiki's graph. This file gives no source for them: treat them as leads, not findings.
- **Affected by:** CVE-2026-19590, CVE-2026-19591, CVE-2026-19592, Embrace, Heapjack, Overpatch, Plugin4Shell, ZDI-26-651
- **Detects:** curl, Git, jq
- **Developed by:** Microsoft, OpenAI
- **Exploited by:** AMOS
- **Mitigates:** Plaintext credential storage
- **Part of:** ChatGPT, ChatGPT for Financial Services, ChatGPT mobile app, Computer History, GPT-5.6, OpenAI, OpenAI Astra
- **Parts:** Agent Lightning, AgentsDock, ChatGPT Pro, ChatGPT Pro Max, Cuttlefish.MD, GLM-5.3-Flash, OpenAI Astra, Persistent mode
- **Superseded by:** GPT-5.6, GPT-5.6 Sol, OpenAI Astra
- **Targeted by:** Cache Hit Rate Optimization Rollback, ChatGPT August 2026 Outage, ChatGPT outage, ChatGPT outage September 2026, Codex Rate Limiting Issue, Codex Reliability Incidents, function-color, GPT-5.6 File Deletion Incident, OpenAI billing incident, OpenAI Codex sandbox escape, OpenAI employee account compromise
- **Used by:** Journey to Root Episode I

## Often mentioned together
Entries that turn up in the same stories. This is not a stated relationship.
Anthropic, Claude Code, United States, Claude, Google, Cursor, GitHub, Gemini, OpenCode, Prompt Injection, Microsoft Copilot, Google Gemini CLI, macOS, Model Context Protocol, Opus 4.8, China

## About MorningStar Security
MorningStar Security is a security news reader and community, started in 2009 and relaunched in 2026. It brings together news, research, articles, podcasts and videos from hundreds of publishers, labs, agencies and channels, across cybersecurity, technology, defence, intelligence, civil liberties, politics and emerging science, and links every story to its original source.

Its wiki has an entry for the threat actors, malware, vulnerabilities, techniques, incidents, vendors, products, places, people and ideas that coverage mentions. Each entry is compiled by machine from the stories the site indexes. Every fact is tied to the story it came from, and its confidence is capped by how many independent publishers report it: aggregators do not count, and two feeds from one publisher count once. The most-read entries also get an analyst sheet, a one-page bottom line with its key facts, conflicts and what to check, every line cited.

Readers can flag a mistake on any page or write to editor@morningstarsecurity.com.

- This entry, live: https://morningstarsecurity.com/wiki/codex
- Its analyst sheet: https://morningstarsecurity.com/sheets/codex
- More products: https://morningstarsecurity.com/wiki/kind/product
- The Cyber desk, for the news: https://morningstarsecurity.com/desk/cyber
- The whole wiki: https://morningstarsecurity.com/wiki
- About MorningStar Security: https://morningstarsecurity.com/about
- How the site is made: https://morningstarsecurity.com/editorial
- The newsletter: https://morningstarsecurity.com/newsletter

## Sources (50 of 348)
1. AI coding agents' 0-click RCE flaw could hand attackers keys to the kingdom · The Register: Security · 17 Sep 2026 · https://www.theregister.com/security/2026/09/17/ai-coding-agents-0-click-rce-flaw-could-hand-attackers-keys-to-the-kingdom/5297335
2. Plugin4Shell Lets Repository Owners Swap Pinned Plugin Code Across Four AI Coding Agents · The Hacker News · 18 Sep 2026 · https://thehackernews.com/2026/09/plugin4shell-lets-repository-owners.html
3. Malicious .git Configs Can Make Claude, Codex, Cursor, and Other AI Agents Run Attacker Code · The Hacker News · 2 Sep 2026 · https://thehackernews.com/2026/09/malicious-git-configs-can-make-claude.html
4. ZDI-26-650: (Pwn2Own) OpenAI Codex External Control of Configuration Setting Remote Code Execution Vulnerability · Zero Day Initiative · 10 Sep 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-650/
5. ChatGPT Desktop (Codex Desktop) for Linux · Hacker News (YC) · 13 Aug 2026 · https://openai.com/codex/
6. Codex in ChatGPT desktop app for Linux is now in preview · Hacker News (YC) · 13 Aug 2026 · https://community.openai.com/t/codex-in-chatgpt-desktop-app-for-linux-is-now-in-preview/1390027
7. Agent-Manager: A Tmux TUI for Running Claude Code, Codex and OpenCode · Hacker News (YC) · 30 Jul 2026 · https://github.com/YoanWai/agent-manager
8. ChatGPT shows promise of using AI to write malware · cyberscoop.com · 7 Dec 2022 · https://www.cyberscoop.com/chatgpt-ai-malware/
9. Microsoft Debuts Offensive, Defensive Security Tools for the AI Era · Dark Reading · 20 Nov 2026 · https://www.darkreading.com/endpoint-security/microsoft-offense-defense-ai-security-tools
10. Copilot will propagate a malicious worm from one Word document to another · Lobsters · 29 Jul 2026 · https://enklypesalt.com/posts/context-collapse-part3-ai-worming-through-word/
11. Journey to Root, Episode I: The Maglev King · Lobsters · 17 Jul 2026 · https://blog.calif.io/p/journey-to-root-episode-i-the-maglev
12. ZDI-26-648: (Pwn2Own) OpenAI Codex External Control of System or Configuration Setting Remote Code Execution Vulnerability · Zero Day Initiative · 10 Sep 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-648/
13. ZDI-26-649: (Pwn2Own) OpenAI Codex Improper Neutralization of Control Sequences Remote Code Execution Vulnerability · Zero Day Initiative · 10 Sep 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-649/
14. ZDI-26-651: (Pwn2Own) OpenAI Codex External Control of System or Configuration Setting Remote Code Execution Vulnerability · Zero Day Initiative · 10 Sep 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-651/
15. Researchers escape OpenAI Codex sandbox to run commands on host · BleepingComputer · 20 Sep 2026 · https://www.bleepingcomputer.com/news/security/researchers-escape-openai-codex-sandbox-to-run-commands-on-host/
16. After spending billions, OpenAI still has gaps in its cybersecurity · CSO Online · 21 Sep 2026 · https://www.csoonline.com/article/4224453/after-spending-billions-openai-still-has-gaps-in-its-cybersecurity.html
17. Researchers Bypass ChatGPT Lockdown Mode to Exfiltrate Chats Without User Interaction · The Hacker News · 5 Nov 2026 · https://thehackernews.com/2026/11/researchers-bypass-chatgpt-lockdown.html
18. Navigating Vulnerability Hysteria in the AI Era · Dark Reading · 19 Nov 2026 · https://www.darkreading.com/vulnerabilities-threats/navigating-vulnerability-hysteria-ai-era
19. Malicious downloads can trick AI coding agents into compromising themselves · CSO Online · 26 Oct 2026 · https://www.csoonline.com/article/4240222/malicious-downloads-can-trick-ai-coding-agents-into-compromising-themselves.html
20. Your Open Source Model Could Have a Hidden Time-Release Backdoor · Hacker News (YC) · 24 Aug 2026 · https://morgin.ai/articles/your-open-source-model-could-have-a-hidden-time-release-backdoor.html
21. A zero-click RCE flaw in AI coding agents could have exposed enterprise systems · CSO Online · 18 Sep 2026 · https://www.csoonline.com/article/4223909/a-zero-click-rce-flaw-in-ai-coding-agents-could-have-exposed-enterprise-systems-2.html
22. Malicious File in Downloads Folder Tries to Trick AI Coding Agent Into Installing Malware · The Hacker News · 26 Oct 2026 · https://thehackernews.com/2026/10/malicious-file-in-downloads-folder.html
23. Codex Resets · Hacker News (YC) · 18 Jul 2026 · https://codex-resets.com/
31. I made Claude Code, Codex, and Antigravity build the same Chrome extension, and only one was a keeper · xda-developers.com · 21 Nov 2026 · https://www.xda-developers.com/claude-code-codex-antigravity-build-same-chrome-extension-one-was-keeper/

Not cited above. Other coverage that mentions Codex, for context only:

24. Context Engineering | Compaction & Agent Memory for Automated Malware Analysis · SentinelOne Labs · 2 Jul 2026 · https://www.sentinelone.com/labs/context-engineering-compaction-agent-memory-for-automated-malware-analysis/
25. Grok Build Uploaded Entire Git Repositories to xAI Storage, Not Just Files It Read · The Hacker News · 14 Jul 2026 · https://thehackernews.com/2026/07/grok-build-uploads-entire-git.html
26. OpenAI admits GPT-5.6 occasionally deletes files – but it's an 'honest mistake' · The Register: Security · 16 Jul 2026 · https://www.theregister.com/ai-and-ml/2026/07/16/openai-admits-gpt-56-occasionally-deletes-files-but-its-an-honest-mistake/5274008
27. Crooks push Mac malware through fake OpenAI Codex ads · The Register: Security · 25 Aug 2026 · https://www.theregister.com/security/2026/08/25/crooks-push-mac-malware-through-fake-openai-codex-ads/5291899
28. Cisco and OpenAI pitch eBPF kernel plugins as the way to tame the patchpocalypse · The Register: Security · 24 Nov 2026 · https://www.theregister.com/security/2026/11/24/cisco-and-openai-pitch-ebpf-kernel-plugins-as-the-way-to-tame-the-patchpocalypse/5311795
29. Thinking Inertia: Stanford Researchers Find LLMs Keep Reasoning Even When Told to Stop Thinking · HackerNoon · 23 Nov 2026 · https://hackernoon.com/thinking-inertia-stanford-researchers-find-llms-keep-reasoning-even-when-told-to-stop-thinking
30. $1 of GPT-5.1 tokens finds new ways around China’s Great Firewall · The Register: Security · 23 Nov 2026 · https://www.theregister.com/security/2026/11/23/1-of-gpt-51-tokens-finds-new-ways-around-chinas-great-firewall/5311532
32. 109 Blog Posts To Learn About Youtubers · HackerNoon · 19 Nov 2026 · https://hackernoon.com/109-blog-posts-to-learn-about-youtubers
33. Managing frontier AI risk: From training to deployment · OpenAI · 18 Nov 2026 · https://openai.com/index/managing-frontier-ai-risk
34. Claude-Mem Tested: Perfect Recall, but at a Cost of 5,200 Tokens Per Request · HackerNoon · 18 Nov 2026 · https://hackernoon.com/claude-mem-tested-perfect-recall-but-at-a-cost-of-5200-tokens-per-request
35. Critical Java4Shell flaw allows RCE attacks on major Java applications · BleepingComputer · 17 Nov 2026 · https://www.bleepingcomputer.com/news/security/critical-java4shell-flaw-allows-rce-attacks-on-major-java-applications/
36. Security for the agentic era, powered by Microsoft Perception · Microsoft Security Blog · 17 Nov 2026 · https://www.microsoft.com/en-us/security/blog/2026/11/17/security-for-the-agentic-era-powered-by-microsoft-perception/
37. Building a Native macOS Usage Monitor for Codex Desktop · HackerNoon · 17 Nov 2026 · https://hackernoon.com/building-a-native-macos-usage-monitor-for-codex-desktop
38. Claude Fable 5.2: Why Anthropic's Most Expensive Model Can End Up the Cheapest · HackerNoon · 17 Nov 2026 · https://hackernoon.com/claude-fable-52-why-anthropics-most-expensive-model-can-end-up-the-cheapest
39. The TechBeat: Cuttlefish.MD Skills Library Puts 2,806 License-Checked Agent Skills to Work (11/16/2026) · HackerNoon · 16 Nov 2026 · https://hackernoon.com/11-16-2026-techbeat
40. The TechBeat: How Bitcoin's Lightning Network Works Under the Hood (11/15/2026) · HackerNoon · 15 Nov 2026 · https://hackernoon.com/11-15-2026-techbeat
41. The TechBeat: SpaceX Teams Up With Qualcomm to Build a Nationwide 5G Network (11/14/2026) · HackerNoon · 14 Nov 2026 · https://hackernoon.com/11-14-2026-techbeat
42. The TechBeat: The AI-Native Organization: Smaller Teams, Faster Execution, Fewer Roadmaps (11/13/2026) · HackerNoon · 13 Nov 2026 · https://hackernoon.com/11-13-2026-techbeat
43. Introducing ChatGPT Wallet · OpenAI · 13 Nov 2026 · https://openai.com/index/introducing-chatgpt-wallet
44. Holiday Extras is rethinking what it can build with Codex · OpenAI · 12 Nov 2026 · https://openai.com/business/customer-stories/holidays-extras-codex
45. Lessons from 59 Linux Kernel Bug Reports · Microsoft Security Blog · 11 Nov 2026 · https://www.microsoft.com/en-us/security/blog/2026/11/11/lessons-from-59-linux-kernel-bug-reports/
46. The HackerNoon Newsletter: The Next Pandemic May Not Infect Humans (11/11/2026) · HackerNoon · 11 Nov 2026 · https://hackernoon.com/11-11-2026-newsletter
47. Code From Your Phone with Codex: Complete Beginner Walkthrough · HackerNoon · 11 Nov 2026 · https://hackernoon.com/code-from-your-phone-with-codex-complete-beginner-walkthrough
48. I'm Not a Developer, but I Built a Startup by Talking to AI · HackerNoon · 11 Nov 2026 · https://hackernoon.com/im-not-a-developer-but-i-built-a-startup-by-talking-to-ai
49. 14-year-old creates tool for AI agents to band together like a team · The Register: Security · 10 Nov 2026 · https://www.theregister.com/ai-and-ml/2026/11/10/14-year-old-creates-tool-for-ai-agents-to-band-together-like-a-team/5308841
50. How to Evaluate AI Agent Cybersecurity Capabilities · Wiz Research · 10 Nov 2026 · https://www.wiz.io/blog/cyber-model-arena-ai-benchmark

---
Snapshot of https://morningstarsecurity.com/wiki/codex taken 24 Nov 2026 13:02 UTC. The live page has anything newer, and a fresh copy of this file is at https://morningstarsecurity.com/md/wiki/codex
