@openai/codex is vulnerable to Uncontrolled Search Path Element
64
CVE Score
Medium
Uncontrolled Search Path Element
Codex resolves the bwrap and rg helper executables by searching PATH before the Linux sandbox is constructed, without checking whether the resolved binary is writable by the current user. A workspace or PATH entry containing an attacker-controlled, writable executable with a matching name runs with the caller's full privileges before any sandbox confinement takes effect. This lets code from an untrusted repository or directory execute outside the intended sandbox boundary. The fix resolves these helper executables through a permission-aware lookup that rejects writable or replaceable candidates.
Upgrade the @openai/codex and/or the @openai/codex-sdk library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and you run Codex against a workspace or PATH that can contain an untrusted, writable bwrap or rg executable.
0.0.1 - 0.161.0
Fixed in 0.162.0@openai/codex is vulnerable to Uncontrolled Search Path Element in versions 0.0.1 - 0.161.0.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.