Skip to main content
Vulnerability Database/CVE-2026-51904

CVE-2026-51904: SuperAGI Access Control Bypass Vulnerability

CVE-2026-51904 is an access control bypass flaw in SuperAGI up to v0.0.14 that allows authenticated attackers to execute agents from other organizations. This post covers technical details, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-51904 Overview

CVE-2026-51904 is an improper access control vulnerability [CWE-284] in SuperAGI through version 0.0.14. The flaw resides in the agent execution controller at superagi/controllers/agent_execution.py. The create_agent_execution and create_agent_run functions accept a caller-supplied agent_id without verifying that the referenced agent belongs to the authenticated user's organization. A remote authenticated attacker in one tenant can create or start executions for agents owned by another tenant through /agentexecutions/add or /agentexecutions/add_run.

Critical Impact

Cross-tenant agent execution allows authenticated attackers to invoke, hijack, or disrupt agents belonging to other organizations.

Affected Products

  • SuperAGI versions up to and including v0.0.14
  • superagi/controllers/agent_execution.py module
  • Deployments exposing /agentexecutions/add and /agentexecutions/add_run endpoints

Discovery Timeline

  • 2026-10-02 - CVE-2026-51904 published to NVD
  • 2026-10-05 - Last updated in NVD database

Technical Details for CVE-2026-51904

Vulnerability Analysis

SuperAGI is a multi-tenant framework for building and running autonomous AI agents. Each agent is scoped to an organization, and execution endpoints are intended to operate only on agents the caller owns. The agent execution controller breaks that tenant boundary by trusting a request parameter rather than validating ownership server-side.

An authenticated attacker in Organization A can issue a POST request to /agentexecutions/add or /agentexecutions/add_run while supplying an agent_id that belongs to Organization B. The controller creates the execution record and starts the run against the foreign agent. The attacker can enumerate agent_id values and target agents across tenants.

Consequences include unauthorized agent invocation, consumption of the victim organization's API credits and LLM budgets, pollution of execution history, and potential exposure of agent outputs tied to sensitive prompts or tools.

Root Cause

The root cause is a missing authorization check [CWE-284]. The handlers accept agent_id from the request body but never confirm that the agent's organisation_id matches the authenticated user's organization. Authentication alone is treated as sufficient, and no object-level access control is enforced before the execution record is persisted or dispatched.

Attack Vector

Exploitation requires only valid authenticated credentials to any SuperAGI tenant. The attacker crafts a POST request to /agentexecutions/add or /agentexecutions/add_run with an agent_id observed, guessed, or enumerated from another organization. No user interaction is required and the attack is executed over the network against the SuperAGI API.

Technical details and a proof-of-concept are available at the GitHub Gist PoC.

Detect Identity Attacks the Moment Authentication Fails

Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.

Stop Identity Attacks

Detection Methods for CVE-2026-51904

Indicators of Compromise

  • Requests to /agentexecutions/add or /agentexecutions/add_run where the submitted agent_id resolves to a different organisation_id than the authenticated user.
  • Execution records whose associated agent organization does not match the creating user's organization.
  • Unexpected spikes in agent runs or LLM token consumption attributable to accounts from unrelated tenants.

Detection Strategies

  • Instrument the agent execution controller to log user.organisation_id, agent.organisation_id, and agent_id for every create and run call, then alert on mismatches.
  • Review database execution tables for agent_execution rows where the creating user and the agent belong to different organizations.
  • Replay HTTP access logs through a detection rule that flags sequential agent_id enumeration from a single authenticated session.

Monitoring Recommendations

  • Forward SuperAGI application logs and reverse proxy access logs to a centralized SIEM for cross-tenant correlation.
  • Monitor LLM provider billing dashboards for abnormal usage patterns tied to specific SuperAGI tenants.
  • Track authentication events alongside agent execution events to identify low-privilege accounts touching high-value agents.

How to Mitigate CVE-2026-51904

Immediate Actions Required

  • Restrict network access to the SuperAGI API to trusted users while a fix is applied.
  • Audit agent_execution records for cross-organization activity and revoke sessions for any abusing accounts.
  • Rotate API keys and LLM provider credentials shared across tenants if cross-tenant invocation is confirmed.

Patch Information

No vendor advisory or fixed version is referenced in the NVD entry at publication. Operators should track the SuperAGI project for a release beyond v0.0.14 that enforces organization ownership checks in create_agent_execution and create_agent_run. Until then, apply the workarounds below.

Workarounds

  • Patch superagi/controllers/agent_execution.py locally to look up the target Agent and reject requests when agent.organisation_id does not equal the authenticated user's organisation_id.
  • Place /agentexecutions/add and /agentexecutions/add_run behind an API gateway that enforces tenant-to-agent mapping before the request reaches SuperAGI.
  • Limit SuperAGI deployments to single-tenant installations until an upstream fix is available.
bash
# Configuration example: reverse proxy rule to require org-scoped agent IDs
# (pseudo-config for an NGINX + Lua or API gateway policy)
location ~ ^/agentexecutions/(add|add_run)$ {
    access_by_lua_block {
        local user_org = ngx.ctx.auth.organisation_id
        local agent_id = ngx.ctx.body.agent_id
        if not require("authz").agent_belongs_to_org(agent_id, user_org) then
            ngx.exit(403)
        end
    }
    proxy_pass http://superagi_upstream;
}

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.