Horizon Alert
Summary of the vulnerability and why it matters
A vulnerability in OpenAI Codex Desktop could allow an attacker to run unauthorized programs with a user's privileges by tricking them into opening a specially crafted workspace. This could lead to unauthorized access, modification, or deletion of files and credentials. The risk is associated with opening malicious repositories, not through typical network-based attacks.
- User opens a malicious repository.
- Allows arbitrary code execution on user's machine.
- Confirm if this impacts your organization.
Attack Path
How an attacker could exploit the issue
An attacker could create a malicious Git repository with a specially crafted `.git/config` file. When a user opens a workspace containing this repository in OpenAI Codex Desktop, the application will process the Git configuration, leading to the execution of an attacker-controlled program with the user's privileges. This bypasses security prompts, allowing the attacker to manipulate files and access user credentials.
- Requires user to open a prepared repository.
- Vulnerable Git configuration triggers program execution.
- Risk of unauthorized file access and credential theft.
Live Threat
Current exploitation, exposure, and threat context
When a user opens a workspace with a specially crafted Git configuration, OpenAI Codex Desktop for Windows and macOS could execute attacker-controlled programs with the user's privileges. This occurs because the `attr.tree` setting and configured filters can bypass security prompts.
- User credentials and files on the local system.
- Opening a malicious Git repository.
- Unauthorized access and data manipulation.
Operational Fix
Recommended remediation, mitigation, and detection steps
This vulnerability in OpenAI Codex Desktop requires local user interaction to exploit, making it most relevant to individuals and teams managing developer workstations. The primary concern is the execution of arbitrary code with user privileges when opening a specially crafted Git repository. Therefore, the initial focus should be on identifying affected developer machines, assessing the risk based on user activity and the presence of such repositories, and then coordinating with development teams and potentially vendor management for remediation.
- Developer workstation owners should investigate.
- Verify Git configuration on workstations.
- Plan for code execution risk reduction.