NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · Other MCP servers and tools

CVE-2026-62674: Omnigent: Shared Agent Bundle Overwrite Leads to Authenticated Runner RCE

criticalCVSS 3.1 9.0GHSA-jrrm-9hc7-2v3h

Omnigent lets an authenticated user overwrite a shared or template agent through `PUT /sessions/{session_id}/agent`. Adding a `stdio` MCP server to the bundle makes later runner sessions launch an attacker-chosen command. The result is remote code execution on runner hosts. Versions below 0.3.0 are affected. Fixed in 0.3.0.

Published Sep 2, 2026 · Analysis Nov 1, 2026

What an attacker can do

The route accepts a full agent bundle and checks only that the caller has LEVEL_EDIT on their own session. It does not check whether the bound agent is a shared or template agent, which has agent.session_id is None. The API already marks these agents as not MCP-editable, and the direct MCP edit route in session_mcp_servers.py rejects them with "Built-in agents are read-only through this endpoint." The bundle upload path lacks that guard, so agent_store.update(agent.id, new_loc) rewrites the shared agent itself, not only the attacker's session.

The attacker adds a stdio MCP server to the bundle. In tools/mcp.py, stdio servers start the configured command as a subprocess of the runner. Any later session that uses the poisoned shared agent runs the attacker's command with the runner's permissions.

The attacker needs only a normal login with edit rights on one of their own sessions. From the runner they can read files and credentials, change workspace data, reach internal services, or open a remote shell if outbound traffic is allowed. Other users' sessions trigger the payload, which is why the score is 9.0 with changed scope.

Who is affected

Omnigent (pip package omnigent) below 0.3.0, in any deployment where several users share template agents, such as a company-hosted server. Check the installed version:

pip show omnigent

Also review your shared agents' MCP server lists for stdio entries you did not add.

omnigent

Ecosystem
PyPI
Affected
< 0.3.0
Fixed in
0.3.0
Check
pip show omnigent

How to fix it

Upgrade to Omnigent 0.3.0.

pip install --upgrade omnigent==0.3.0

The fix (pull request 1418) adds the same agent.session_id is None guard to PUT /sessions/{session_id}/agent, run before the bundle is read, validated or stored. A shared agent now gets an OmnigentError with INVALID_INPUT, returned as HTTP 400. After upgrading, re-check every shared or template agent for tampered bundles, since the patch does not undo a past overwrite.

How to tell if you were hit

Inspect each shared or template agent's bundle and MCP configuration for stdio servers with unexpected commands or arguments. Review server logs for PUT /sessions/{session_id}/agent calls whose session is bound to a shared agent. On runner hosts, look for child processes of the runner that you did not configure, outbound connections from the runner, and changes to files it can reach. Beam records agent shell commands and MCP tool calls, so where an AI agent runs on these hosts, its rules can flag unexpected processes launched from an MCP server.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

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.

Credited to xttraa.

Questions

Does CVE-2026-62674 need admin rights?

No. A normal authenticated user with edit access to their own session can send the request. The PR rates user interaction as required because a later session must start with the poisoned agent.

Why does a stdio MCP server give code execution?

Stdio MCP servers are launched by the runner as local subprocesses with the command in the bundle. The attacker chooses that command and it runs with the runner's permissions.

Does upgrading to 0.3.0 clean a poisoned agent?

No. The guard blocks new overwrites only. Review shared and template agents for MCP servers you did not add.

Is it exploited in the wild?

No source says so, and the entry is not in CISA's KEV catalog.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More Other MCP servers and tools vulnerabilities

All Other MCP servers and tools entries