{"id":"CVE-2026-62677","summary":"Omnigent: Unvalidated os_env.cwd in agent bundle yields arbitrary host filesystem access on runners without OMNIGENT_RUNNER_WORKSPACE","details":"Omnigent is an open-source AI agent framework and meta-harness for orchestrating coding agents. Prior to 0.3.0, an authenticated user can upload a session-scoped agent bundle with an absolute or traversal-containing os_env.cwd value because omnigent/spec/parser.py stores the value verbatim and omnigent/spec/validator.py does not constrain it. On a runner where OMNIGENT_RUNNER_WORKSPACE is unset, omnigent/runner/resource_registry.py preserves the attacker-controlled path and omnigent/inner/os_env.py uses the resolved path as the environment root and copytree source. The _assert_within_cwd check then treats that attacker-selected root as trusted, allowing sys_os_read, write, edit, and shell tools to access runner files and environment secrets outside the intended workspace. This issue is fixed in version 0.3.0.","aliases":["GHSA-p8rw-8qj3-hf33","PYSEC-2026-3875"],"modified":"2026-09-20T11:30:45.028001632Z","published":"2026-08-21T17:44:37.312Z","database_specific":{"cwe_ids":["CWE-22"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/62xxx/CVE-2026-62677.json","cna_assigner":"GitHub_M"},"references":[{"type":"WEB","url":"https://github.com/omnigent-ai/omnigent/releases/tag/v0.3.0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/62xxx/CVE-2026-62677.json"},{"type":"ADVISORY","url":"https://github.com/omnigent-ai/omnigent/security/advisories/GHSA-p8rw-8qj3-hf33"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-62677"},{"type":"FIX","url":"https://github.com/omnigent-ai/omnigent/commit/7ca0cca3c9a65c04c489edf68f0e080424a26868"},{"type":"FIX","url":"https://github.com/omnigent-ai/omnigent/pull/1417"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/omnigent-ai/omnigent","events":[{"introduced":"0"},{"fixed":"7ca0cca3c9a65c04c489edf68f0e080424a26868"},{"fixed":"4edb4d95b95fd2748f3f119628936d75511918e9"}],"database_specific":{"source":["AFFECTED_FIELD","REFERENCES"],"extracted_events":[{"introduced":"0"},{"fixed":"0.3.0"}]}}],"versions":["v0.3.0rc1","v0.1.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-62677.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}