Skip to content

A Launcher May Run eval Through /usr/bin/command on Some Hosts #2441

Closed as not planned

Description

@ptr727

Problem

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 command eval '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.

Activity

  1. added
    bug
    agents
    on Oct 6, 2026
  2. ptr727 commented on Oct 8, 2026

    @ptr727
    OwnerAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agentsbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions