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
A Launcher May Run eval Through /usr/bin/command on Some Hosts #2441
The guard's eval reading (#2080) treats an eval after an external launcher, such as nohup or env, as running nothing, since a launcher cannot run a builtin. Some hosts ship /usr/bin/command as a script that runs builtin command "$@", which Fedora and RHEL's bash package and macOS are reported to do. There nohup command eval '<loop>' would run the loop in a child shell, outside any bound.
Reproduce (constructed)
Not verified on a host that ships the script. On such a host:
nohup commandeval'until false; do sleep 1; done'
The guard allows it, and the loop would run.
Done looks like
First confirm that the host behavior exists. If it does, an eval behind command reads as running after a launcher too, a self-test row pins the shape above, and requirement 7's "cannot run a builtin" sentence names the exception.
Found by a local strict review pass on the #2080 branch. Develop allows the command too, since it reads no eval argument at all.
Declined per #2517, approved by the maintainer, under GOVERNANCE.md "Trust Boundaries and Hardening Effort": The guard backstops an agent's own mistakes, and this is a command shape built to defeat it rather than one an agent session writes, so a miss does not realistically occur. See #2517 for the per-issue reason.
Activity
ptr727 commentedon Oct 8, 2026
Declined per #2517, approved by the maintainer, under GOVERNANCE.md "Trust Boundaries and Hardening Effort": The guard backstops an agent's own mistakes, and this is a command shape built to defeat it rather than one an agent session writes, so a miss does not realistically occur. See #2517 for the per-issue reason.