Skip to content
CVE-2025-53944: AutoGPT Authorization Bypass in Graph Execution External API

CVE-2025-53944: AutoGPT Authorization Bypass in Graph Execution External API

Grayscale portrait of a young man looking left, wearing a striped lanyard, with an olive green dot pattern background.Artemiy Malyshau· Co-founder & CTO2 min read

Key takeaways

  • There is an authorization bypass vulnerability in the external API that allows authenticated users to access execution results from other users’ graph executions.
  • Source: User-controlled graph_exec_id parameter in URL path /graphs/{graph_id}/executions/{graph_exec_id}/results
  • Cross-tenant data access in multi-tenant SaaS environment

Description#

There is an authorization bypass vulnerability in the external API that allows authenticated users to access execution results from other users’ graph executions. The vulnerability exists in the get_graph_execution_results endpoint, which validates that the requesting user can access the specified graph but fails to validate ownership of the execution ID parameter.

The endpoint performs proper authorization for the graph_id parameter by calling get_graph() with the authenticated user’s ID, ensuring the user owns or has access to the graph. However, it then directly queries execution data using the user-supplied graph_exec_id without validating that this execution belongs to the authorized graph or the requesting user. Notably, the internal API endpoint /graphs/{graph_id}/executions/{graph_exec_id} implements the correct authorization pattern, performing both execution ownership validation and graph relationship verification.

This IDOR vulnerability allows attackers to access sensitive execution data including input parameters (potentially containing API keys and credentials), output results, and proprietary workflow logic from any user’s graph executions, provided they can discover the target execution UUID.

Source - Sink Analysis#

Source: User-controlled graph_exec_id parameter in URL path /graphs/{graph_id}/executions/{graph_exec_id}/results

Call Chain:

  1. get_graph_execution_results() function in autogpt_platform/backend/backend/server/external/routes/v1.py:115 processes external API request
  2. graph_db.get_graph(graph_id, user_id=api_key.user_id) validates user access to graph_id (authorization passes for attacker’s graph)
  3. execution_db.get_node_executions(graph_exec_id) called with user-controlled execution ID at line 123
  4. Database query in get_node_executions() at autogpt_platform/backend/backend/data/execution.py:728 with where clause {“agentGraphExecutionId”: graph_exec_id} - no user validation
  5. NodeExecutionResult.from_db(execution) constructs result objects containing victim’s execution data
  6. Sink: Response construction returns unauthorized execution data including victim’s input parameters, output results, and workflow details in GraphExecutionResult structure

Proof of Concept#

Prerequisites:

  • Valid API key with READ_GRAPH permission
  • Access to at least one graph (own graph or public graph)
  • Discovery of victim’s execution UUID (through logs, error messages, etc.)

Attack steps:

  1. Obtain valid API key: curl -X POST /api/api-keys -d ’{“name”:“test”,“permissions”:[“READ_GRAPH”]}’
  2. Discover victim execution ID through side channels or enumeration
  3. Execute attack:
<code class="hljs language-bash">curl -X GET \
  <span class="hljs-string">"https://platform.autogpt.co/api/graphs/ATTACKER_GRAPH_ID/executions/VICTIM_EXECUTION_UUID/results"</span> \
  -H <span class="hljs-string">"X-API-Key: ATTACKER_API_KEY"</span>
</code>

Result: Server validates access to ATTACKER_GRAPH_ID (succeeds) but returns execution data from VICTIM_EXECUTION_UUID containing sensitive input/output data, API keys, and proprietary workflow information.

Impact#

  • Cross-tenant data access in multi-tenant SaaS environment
  • Exposure of API keys and credentials stored in execution inputs
Grayscale portrait of a young man looking left, wearing a striped lanyard, with an olive green dot pattern background.

Artemiy Malyshau

Co-founder & CTO

Artemiy served in an elite unit of the Austrian Cyber Forces, defending national infrastructure He was then the first employee at a government-backed cybersecurity research group, where he led security projects for Interpol and national governments. At Gecko he builds the platform trusted to sit inside Fortune 500 codebases, and holds it to the standard those governments taught him.

Frequently asked questions

Related content

The latest news, technologies, and resources from our team.

Subscribe to the Gecko Security newsletter

Occasional updates, new content, and insights. No spam; unsubscribe anytime.

We use your email only to send you our newsletter. See our privacy policy for how we handle your data. You can unsubscribe at any time.