codex - 💡(How to fix) Fix New CLI bwrap sandbox fails before shell: RTM_NEWADDR loopback Operation not permitted [2 comments, 3 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#19235Fetched 2026-04-24 05:58:17
View on GitHub
Comments
2
Participants
3
Timeline
7
Reactions
1
Timeline (top)
labeled ×3commented ×2cross-referenced ×1unlabeled ×1
RAW_BUFFERClick to expand / collapse

What version of Codex CLI is running?

0.124

What subscription do you have?

Pro 5x

Which model were you using?

All

What platform is your computer?

Linux

What terminal emulator and version are you using (if applicable)?

None

What issue are you seeing?

Every exec command fails before bash starts:

bwrap: loopback: Failed RTM_NEWADDR: Operation not permitted

Expected: Local commands should run, or sandbox should be disabled when full permissions are granted.

Regression: Reverting to Codex CLI 0.123 fixes it.

What steps can reproduce the bug?

Any attempt to access internal computer files.

What is the expected behavior?

Access

Additional information

Important. Regressing to 0.123 fixes the issue but doesn't allow the use of GPT 5.5

extent analysis

TL;DR

Reverting to Codex CLI version 0.123 may resolve the issue, but it comes with the limitation of not being able to use GPT 5.5.

Guidance

  • The error message bwrap: loopback: Failed RTM_NEWADDR: Operation not permitted suggests a permissions issue, potentially related to the sandboxing feature in Codex CLI.
  • The fact that reverting to version 0.123 fixes the issue implies that the problem might be specific to version 0.124.
  • To mitigate the issue, you could try running the Codex CLI with full permissions or disabling the sandbox feature if possible.
  • Consider weighing the trade-offs between using the latest features (like GPT 5.5) and the stability of an older version (0.123).

Notes

The issue seems to be version-specific, and there might be a conflict between the new features introduced in version 0.124 and the existing permissions or sandboxing setup.

Recommendation

Apply workaround: Revert to Codex CLI version 0.123 if accessing internal computer files is a priority, and the limitations of not using GPT 5.5 are acceptable.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix New CLI bwrap sandbox fails before shell: RTM_NEWADDR loopback Operation not permitted [2 comments, 3 participants]