Executive brief
Omnigent is an AI agent orchestration platform that allows users to upload custom agent bundles to be executed on runners. An authenticated user can craft a malicious agent bundle with an unrestricted working directory (cwd) to read, write, and modify files anywhere on the host system—and to exfiltrate runner environment secrets—if the runner is deployed without the OMNIGENT_RUNNER_WORKSPACE environment variable set. This bypasses intended filesystem isolation and gives attackers control equivalent to the runner process itself.
Technical details
The vulnerability is a path traversal (CWE-22) in the agent bundle specification parser and validator. The os_env.cwd field in a bundle's config.yaml is parsed verbatim in omnigent/spec/parser.py:696 without validation, and the validator (_validate_os_env) never enforces boundaries on cwd. When a session-scoped uploaded bundle is realized on a runner that lacks the OMNIGENT_RUNNER_WORKSPACE guard, the attacker-controlled cwd is accepted as the root directory for all file and shell operations (os_env.py:890, resource_registry.py:648–654). An attacker sets cwd to "/" or "/home/victim" and sandbox.type to "none," then uses sys_os_read, sys_os_write, sys_os_edit, and sys_os_shell tools—bounded only by _assert_within_cwd—to traverse the entire host filesystem. This requires authentication and no admin privileges (only _require_user check). Patch 0.3.0 adds validation to reject absolute and traversal-prone cwd values; however, follow-up patches in 0.14.0 addressed additional upload paths for sub-agents and terminals that were not covered by the initial fix.
Affected products
- Omnigent AI omnigent < 0.3.0 (root agent); additional paths in < 0.14.0 (sub-agents and terminals)
Timeline
- 2026-06-29: disclosed: Advisory GHSA-p8rw-8qj3-hf33 published by GitHub; initial reporter
- 2026-06-26: patched: Root-agent fix merged in PR #1417; v0.3.0 released
- 2026: patched: Follow-up patches in v0.14.0 for sub-agent and terminal paths (GHSA-p5x3-3gqh-x44g, GHSA-598r-29w2-g93q)
- 2026-08-21: advisory: CVE-2026-62677 published by NVD
- 2026-09-02: other: Advisory updated with follow-up fix information
References
- https://github.com/omnigent-ai/omnigent/security/advisories/GHSA-p8rw-8qj3-hf33
- https://github.com/omnigent-ai/omnigent/pull/1417
- https://github.com/omnigent-ai/omnigent/commit/7ca0cca3c9a65c04c489edf68f0e080424a26868
- https://github.com/omnigent-ai/omnigent/releases/tag/v0.3.0
- https://api.github.com/repos/omnigent-ai/omnigent/security-advisories/GHSA-p8rw-8qj3-hf33