9.0critical
Omnigent: Shared Agent Bundle Overwrite Leads to Authenticated Runner RCE
- Severity
- 9.0critical CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.34% (higher than 29% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-jrrm-9hc7-2v3hPYSEC-2026-3874
Description
Omnigent is an open-source AI agent framework and meta-harness for orchestrating coding agents. Prior to 0.3.0, PUT /sessions/{session_id}/agent checks LEVEL_EDIT permission for a session but does not reject a bound shared or template agent whose agent.session_id is None. An authenticated user with edit access to a session can replace that shared agent bundle through omnigent/server/routes/sessions.py, add a stdio MCP server, and cause later sessions that use the shared agent to launch an attacker-controlled command through omnigent/tools/mcp.py. The command executes with the Omnigent runner process permissions and can expose files, credentials, workspace data, internal services, and runner availability. This issue is fixed in version 0.3.0.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| omnigent-ai omnigent | < 0.3.0 | CVE List |
| omnigent (PyPI) | before 0.3.0 | GitHub Advisory Database, PyPA Advisory Database |
All scores
| GitHub_M | 9.0critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H |
| GitHub | 9.0critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H |
| PyPA Advisory Database | 9.0critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, 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, PUT /sessions/{session_id}/agent checks LEVEL_EDIT permission for a session but does not reject a bound shared or template agent whose agent.session_id is None. An authenticated user with edit access to a session can replace that shared agent bundle through omnigent/server/routes/sessions.py, add a stdio MCP server, and cause later sessions that use the shared agent to launch an attacker-controlled command through omnigent/tools/mcp.py. The command executes with the Omnigent runner process permissions and can expose files, credentials, workspace data, internal services, and runner availability. This issue is fixed in version 0.3.0.
GitHub Advisory Database
Summary
An authenticated user with edit access to their own session can overwrite a shared/template agent by uploading a full agent bundle through PUT /sessions/{session_id}/agent.
Shared/template agents are shown as not MCP-editable, but this upload path still accepts a replacement bundle. By adding a stdio MCP server to the shared agent, the attacker can cause future runner sessions using that shared agent to start an attacker-controlled command.
Details
The vulnerable endpoint is the full agent bundle upload route: PUT /sessions/{session_id}/agent
This route checks whether the caller can edit the session: LEVEL_EDIT session permission check
But it does not check whether the bound agent is a shared/template agent.
Shared/template agents have:
agent.session_id is None
The API already exposes that these agents are not meant to be MCP-editable: mcp_servers_editable is false for shared/template agents
The direct MCP edit endpoint correctly blocks shared/template agents: session_mcp_servers.py shared-agent guard
if agent.session_id is None:
raise OmnigentError("Built-in agents are read-only through this endpoint.")
The full bundle upload endpoint is missing that same guard. It stores the uploaded bundle and updates the agent row: agent_store.update(agent.id, new_loc)
For shared/template agents, this changes the shared agent itself, not only the attacker's session.
This becomes command execution because stdio MCP servers start the configured command as a runner subprocess: tools/mcp.py stdio subprocess launch
Suggested fix: add the same agent.session_id is None guard to PUT /sessions/{session_id}/agent.
Impact
This is authenticated RCE against Omnigent runner hosts. A normal authenticated user with edit access to their own session can poison a shared/template agent bundle, even though that agent is shown as not MCP-editable. The poisoned bundle can then be used by future sessions created from the same shared agent.
Because stdio MCP servers run as local subprocesses, the attacker-controlled command executes with the permissions of the Omnigent runner process. In a shared or company-hosted deployment, this can let an attacker read runner-accessible files and credentials, modify workspace data, disrupt runner availability, pivot to internal services reachable from the runner, or establish an interactive remote shell if outbound networking is allowed.
This is high impact because it turns normal shared-agent session access into command execution on runner infrastructure used by other sessions.
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 0.3.0, PUT /sessions/{session_id}/agent verifica el permiso LEVEL_EDIT para una sesión pero no rechaza un agente compartido o de plantilla vinculado cuyo agent.session_id es None. Un usuario autenticado con acceso de edición a una sesión puede reemplazar ese paquete de agente compartido a través de omnigent/server/routes/sessions.py, añadir un servidor MCP stdio, y hacer que sesiones posteriores que utilicen el agente compartido lancen un comando controlado por el atacante a través de omnigent/tools/mcp.py. El comando se ejecuta con los permisos del proceso del ejecutor de Omnigent y puede exponer archivos, credenciales, datos del espacio de trabajo, servicios internos y la disponibilidad del ejecutor. Este problema está solucionado en la versión 0.3.0.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-62674 changed 2026-08-25 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-jrrm-9hc7-2v3h changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2026-62674 changed 2026-10-14 | Public domain |
| PyPA Advisory Database | PYSEC-2026-3874 changed 2026-09-10 | CC-BY-4.0 |