You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Landlock: fallback to supported ABI or exit with error #6665
This effectively disables sandboxing for any Linux distribution with a kernel version below 6.12, like Debian 12 or Ubuntu 24.04, which are still supported and widely deployed. In my case, codex is able to freely access the filesystem, only restrained by the current user's permissions. I think this is inherently an insecure design since there was no warning whatsoever which informed me about this.
What steps can reproduce the bug?
Use a kernel below 6.12 and run codex sandbox linux ls .. as a minimal PoC.
Or simply ask codex in a normal session to read a file outside of the current directory, with default security settings.
What is the expected behavior?
If any enabled sandboxing feature is not working, codex should exit with an error after startup. Only if the user passes the argument --yolo or adjusts the sandbox in a way that would make it compatible, should codex run. There should be a --best-effort mode, similar to how landrun allows for it.
I think this is like GHSA-w5fx-fh39-j5rw but only for a subset of Linux users. I didn't submit it as a vulnerability though because someone else published a similar behavior via #5237 A MONTH AGO, but on MacOS:
To my surprise, codex answered the question with information contained outside the working directory
I was also surprised by this after using codex for a while. Thankfully I didn't enable web search because otherwise someone might have done prompt injection and took control of my Linux machine. Why isn't OpenAI prioritising this vulnerability? At least warn the user if the sandboxing is not expected to work.
Activity
github-actions commentedon Nov 14, 2025
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
runner12434 commentedon Nov 14, 2025
Not a duplicate.
I think this is like GHSA-w5fx-fh39-j5rw but only for a subset of Linux users. I didn't submit it as a vulnerability though because someone else published a similar behavior via #5237 A MONTH AGO, but on MacOS:
I was also surprised by this after using codex for a while. Thankfully I didn't enable web search because otherwise someone might have done prompt injection and took control of my Linux machine. Why isn't OpenAI prioritising this vulnerability? At least warn the user if the sandboxing is not expected to work.
docs: translate to Chinese and document isolation boundaries