CVE
GHSA-m3m2-42jg-grrv
The built-in GitHub and working-directory policies classify an agent's shell commands before allowing them, but the parsing is incomplete. split_command_segments splits the command string on chaining operators with a regular expression that ignores quoting, grouping, command substitution, heredocs and comments, and the _classify_git functions read the first token after git as the subcommand, so global options such as -C, -c or --git-dir hide a push or fetch, and --work-tree=<dir> is not treated as a directory change. An attacker who influences the input of an agent with shell access can craft a command that the policy treats as harmless, so it runs outside the configured repository, branch or working-directory limits.
Package Versions Affected
Package Version
patch Availability
No items found.
Automatically patch vulnerabilities without upgrading
Fix Without Upgrading
Detect compatible fix
Apply safe remediation
Fix with a single pull request
CVSS Version
Severity
Base Score
CVSS Version
Score Vector

C
H
U
-

C
H
U
-

C
H
U
9.1
-
3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Related Resources
No items found.
References
https://github.com/omnigent-ai/omnigent/security/advisories/GHSA-m3m2-42jg-grrv, https://github.com/omnigent-ai/omnigent/pull/9844, https://github.com/omnigent-ai/omnigent/commit/d2e077a1e3d502748ec0d792dfdede7319ccb968