Summary
Omnigent: Unvalidated osenv.cwd in agent bundle yields arbitrary host filesystem access on runners without OMNIGENTRUNNER_WORKSPACE
An authenticated, non-admin user can obtain arbitrary host-filesystem read/write (and host environment-secret disclosure) on an Omnigent runner by uploading an agent bundle whose os_env.cwd points outside any intended workspace (e.g. / or /home/<victim>). The cwd field is taken verbatim from the bundle with no validation, normalization, or boundary check anywhere in the spec pipeline.
This is a different sink from GHSA-jrrm-9hc7-2v3h (CWE-94, shared-agent bundle overwrite -> stdio MCP RCE). It shares the bundle-upload vector but is reached through the user's own session-scoped agent and is not addressed by that advisory's proposed shared-agent guard.
Preconditions
- Runner realizes a session-scoped uploaded bundle without
OMNIGENT_RUNNER_WORKSPACEset. When that env var is set (CLI- and host-launched sessions set it), the speccwdis overridden and the attack is neutralized, so this is deployment-gated, not universal. - Attacker is any authenticated user (no admin scope;
_require_useronly checks identity). No shared-agent overwrite needed.
Details (verified against code)
- Parse, no validation.
omnigent/spec/parser.py:696storescwd=str(cwd_raw)verbatim. Absolute paths (/,/etc),../.., etc. are all accepted. Thesandbox.typeis likewise author-chosen and"none"is legal. - Validate, cwd unconstrained.
omnigent/spec/validator.py_validate_os_envchecks only fork/scratch/egress combinations; it never referencescwd(the sole mention, line ~526, is a comment). No boundary is applied to the cwd itself. The boundary inserver/schemas.pyvalidates a caller-supplied workspace against the spec cwd (treating the author cwd as trusted) and only for host-launched sessions, it does not bound the cwd. - Sink.
omnigent/inner/os_env.py:890setscwd = Path(spec.cwd or os.getcwd()).resolve(strict=False)as the environment root;os_env.py:934doesshutil.copytree(src=cwd, ...)whenfork=true. All agent file/shell tools are bounded by_assert_within_cwd(os_env.py:1040), which checksresolved.relative_to(cwd), but since cwd is attacker-controlled,cwd=/makes the entire host filesystem in-bounds for read and write;fork=truewithcwd=/home/victimcopies that tree into the agent-readable workspace. - Decisive gate.
omnigent/runner/resource_registry.py:648-654:cwd = default_cwdonly whenself._runner_workspace is not None or spec_os_env.cwd in (None, ".", "./"); otherwisecwd = spec_os_env.cwd(the attacker's absolute path). SoOMNIGENT_RUNNER_WORKSPACEis the only thing standing between the spec and the host FS, and it is an operational control, not an in-code guard. A code comment attool_dispatch.py:~4207claims cwd "is treated as a boundary at session-create time," which is not true on this path.
Attack path
- Authenticated user sends
POST /v1/sessions(multipart) with an agent bundle whoseconfig.yamlcontains:os_env: cwd: "/" # or /home/<victim>, with fork: true for one-shot exfil sandbox: { type: none } - On a runner without
OMNIGENT_RUNNER_WORKSPACE, the agent'ssys_os_read/write/edit/shelltools now operate over the whole host filesystem, and (sandbox inactive) inherit the runner's full environment, exposing host secrets via e.g.sys_os_shell("env").
Related
GHSA-jrrm-9hc7-2v3h (same bundle-upload vector, different sink; that fix does not cover this).
Impact
Arbitrary host-filesystem read/write and runner-environment secret disclosure, available to any authenticated user on an affected deployment. High severity (deployment-conditional).
Input manipulates file paths to reach files outside the intended directory, such as configuration or credential files. Typical impact: unauthorized file read or write outside the intended directory.
CVE-2026-62677 has a CVSS score of 8.8 (High). The vector is network-reachable, low privileges required, and no user interaction. A CVSS score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether this affects your application depends on whether the vulnerable code is present and reachable in your environment. A fixed version is available (0.3.0); upgrading removes the vulnerable code path.
Affected versions
Security releases
Kodem intelligence
Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.
Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter. Kodem's runtime-powered SCA identifies whether this CVE is reachable in your applications.
Already deployed Kodem?
See it in your environmentNew to Kodem? Get a demo →Remediation advice
Add a control on the cwd field itself in omnigent/spec/_validate_os_env (and/or at parse): reject absolute paths and .. traversal, and require cwd to resolve within the runner workspace / an allow-listed root. Do not rely on OMNIGENT_RUNNER_WORKSPACE being set as the sole defense. Consider also disallowing bundle-author sandbox.type: none for server-realized (non-CLI) sessions.
Frequently Asked Questions
- What is CVE-2026-62677? CVE-2026-62677 is a high-severity path traversal vulnerability in omnigent (pip), affecting versions < 0.3.0. It is fixed in 0.3.0. Input manipulates file paths to reach files outside the intended directory, such as configuration or credential files.
- How severe is CVE-2026-62677? CVE-2026-62677 has a CVSS score of 8.8 (High). This score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether it represents real risk in your environment depends on whether the vulnerable code is present and reachable.
- Which versions of omnigent are affected by CVE-2026-62677? omnigent (pip) versions < 0.3.0 is affected.
- Is there a fix for CVE-2026-62677? Yes. CVE-2026-62677 is fixed in 0.3.0. Upgrade to this version or later.
- Is CVE-2026-62677 exploitable, and should I be worried? Whether CVE-2026-62677 is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo
- What actually determines whether CVE-2026-62677 is exploitable, and how bad it is? Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.
- How do I fix CVE-2026-62677? Upgrade
omnigentto 0.3.0 or later.