CVE-2026-62675
JSON

8.8high

Omnigent: Uploaded Agent Bundle Allows Authenticated Runner RCE via Python Callable Tools

Severity
8.8high CVSS:3.1 by GitHub_M
Exploit likelihood
0.45% (higher than 40% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-756x-9hf6-q4h4PYSEC-2026-3872

Description

Omnigent is an open-source AI agent framework and meta-harness for orchestrating coding agents. Prior to 0.3.0, multipart POST /v1/sessions accepts an authenticated user's agent bundle and omnigent/server/bundles.py validate_agent_bundle does not reject a tools..callable dotted Python path. omnigent/runner/tool_dispatch.py _resolve_spec_callable imports the specified module and _execute_spec_callable_tool invokes the resolved function, allowing a bundle to select subprocess.check_output and execute a local command with the runner process permissions. This can expose runner files, environment variables, credentials, workspace data, internal services, and availability without administrator access. 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_M8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
GitHub8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
PyPA Advisory Database8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-94

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.

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, multipart POST /v1/sessions accepts an authenticated user's agent bundle and omnigent/server/bundles.py validate_agent_bundle does not reject a tools..callable dotted Python path. omnigent/runner/tool_dispatch.py _resolve_spec_callable imports the specified module and _execute_spec_callable_tool invokes the resolved function, allowing a bundle to select subprocess.check_output and execute a local command with the runner process permissions. This can expose runner files, environment variables, credentials, workspace data, internal services, and availability without administrator access. This issue is fixed in version 0.3.0.

GitHub Advisory Database
Summary

An authenticated user can upload a crafted agent bundle that defines a server-side Python callable tool. The server validates the uploaded bundle, but it does not block dangerous callable: paths in untrusted user-provided agent configs.

When the tool is invoked, the runner imports and executes that Python callable. A crafted bundle can point the tool at subprocess.check_output, which lets the attacker run a local command on the runner machine.

This is serious because hosted Omnigent deployments can have multiple users and shared or managed runner hosts. A normal logged-in user should not be able to make the runner execute arbitrary local commands.

Details

The uploaded bundle path is reachable through session creation. Omnigent supports custom agent bundles through multipart POST /v1/sessions; the Web UI uses this same endpoint for custom agents:

Create custom agent builds and uploads a bundle
createBundledSession posts the bundle to /v1/sessions

A crafted bundle can also be submitted directly through the API/CLI when creating a session from agent YAML. The PoC below uses this direct bundle shape so the vulnerable trust boundary is easy to reproduce.

On the server, uploaded bundles are validated here: validate_agent_bundle

The validator already treats uploaded bundles as untrusted in some ways. For example, it disables server-side environment expansion and can enforce a policy-handler allowlist:

spec = load(
    bundle_bytes,
    dest=Path(tmpdir) / "agent",
    expand_env=False,
    enforce_handler_allowlist=enforce_handler_allowlist,
)

However, the same validation does not reject tools.<name>.callable entries in an uploaded agent bundle. Python callable tools are an intended trusted/operator feature, but the upload path accepts them from tenant-provided bundles too.

The docs describe server-side Python callable tools here: Python function tool docs
Later, the runner resolves and executes those callables: _resolve_spec_callable imports the dotted path

mod = importlib.import_module(module_name)
fn = getattr(mod, attr_name, None)

_execute_spec_callable_tool calls the resolved function

result = await asyncio.to_thread(resolved, **args)

The high-level tool dispatcher falls back to this callable execution path: execute_tool callable fallback

output = await _execute_spec_callable_tool(tool_name, args, agent_spec=agent_spec)

The problem is the trust boundary. Python callables are a trusted local developer feature, but uploaded agent bundles can be user-controlled in a hosted/multi-user server. The upload validator blocks some trusted-only policy behavior, but it does not block trusted-only tool callables.

Suggested fix: when validating HTTP-uploaded bundles on a shared/multi-user server, reject server-side Python callable tools unless they are explicitly allowlisted by the operator. A conservative fix would reject callable: tool paths for tenant-uploaded bundles, while keeping trusted local/operator-authored configs working.

Impact

This is authenticated RCE against the Omnigent runner environment. A normal authenticated user who can upload or create a custom agent bundle can declare a server-side Python callable and have the runner import and execute it.

Because the callable runs inside the runner process, the attacker-controlled code runs with the runner's permissions. In a hosted or multi-user deployment, this can expose runner-accessible files, environment variables, credentials, workspace data, internal services reachable from the runner, and runner availability.

This is high impact because it crosses the boundary from "upload an agent config" to "execute local code on shared runner infrastructure" without requiring admin/operator access.

NVD (es)

Omnigent es un framework de agente de IA de código abierto y un meta-arnés para orquestar agentes de codificación. Antes de la versión 0.3.0, POST multipart /v1/sessions acepta un paquete de agente de un usuario autenticado y omnigent/servidor/bundles.py validate_agent_bundle no rechaza una ruta Python punteada tools..callable. omnigent/runner/tool_dispatch.py _resolve_spec_callable importa el módulo especificado y _execute_spec_callable_tool invoca la función resuelta, permitiendo que un paquete seleccione subprocess.check_output y ejecute un comando local con los permisos del proceso del ejecutor. Esto puede exponer archivos del ejecutor, variables de entorno, credenciales, datos del espacio de trabajo, servicios internos y disponibilidad sin acceso de administrador. Este problema está solucionado en la versión 0.3.0.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-62675 changed 2026-08-21CVE Terms of Use
GitHub Advisory DatabaseGHSA-756x-9hf6-q4h4 changed 2026-09-10CC-BY-4.0
NVDCVE-2026-62675 changed 2026-10-14Public domain
PyPA Advisory DatabasePYSEC-2026-3872 changed 2026-09-10CC-BY-4.0