Omnigent Guardrail policy bypass: shell-command parser fails open in policies/builtins/_shell.py
CVE-2026-62676 · GHSA-7mqg-cx4g-x2rf · published 2026-09-02
- Severity
- High
- CVSS score
- 7.1
- Chance of exploitation (EPSS)
- 0.29%
- Fixed in
- 0.3.0
- Exploitation No known exploitation
- Automatable No
- Technical impact Partial
- CISA SSVC
A misaligned or prompt-injected agent that is meant to be confined can: git push to an attacker-controlled repo (code / secret exfiltration), push to a protected branch, escape its workspace via git worktree add / git -C .
Upgrade omnigent to 0.3.0 or later.
Make the gated surface fail closed: 1. An unrecognized gated command must DENY, not return None → ALLOW. Abstain on a security gate should resolve to deny, not allow. 2. Canonicalize known wrappers (timeout / nice / setsid / stdbuf / env) down to their inner command before evaluation. 3. Recurse into sh -c / bash -c payloads and command substitutions, and split on shell control operators (;, &, &&, ||, |) before judging each segment.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| omnigent | PyPI | < 0.3.0 | 0.3.0 |
- CriticalLiteLLM has SQL Injection in Proxy API key verificationlitellmExploited
- Criticaln8n Vulnerable to Remote Code Execution via Expression Injectionn8nExploited
- HighLiteLLM has a sandbox escape in custom-code guardraillitellmExploited
- HighLangflow affected by Remote Code Execution via validate_code() exec()langflowExploited
- Criticalgit_add runs submodule filter commands when gitlink mode is not 160000mcp-server-git
- Criticalmcp-server-git: unexpandable sparse index lets submodule filter drivers runmcp-server-git
- CriticalOmnigent: Shared Agent Bundle Overwrite Leads to Authenticated Runner RCEomnigent
- HighOmnigent: Uploaded Agent Bundle Allows Authenticated Runner RCE via Python Callable Toolsomnigent
- HighOmnigent: Unvalidated os_env.cwd in agent bundle yields arbitrary host filesystem access on runners without OMNIGENT_RUNNER_WORKSPACEomnigent
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.