TransformerOptimus SuperAGI Path Traversal Vulnerability in Multipart Upload Handler

Vulnerability

A path traversal vulnerability has been identified in TransformerOptimus SuperAGI versions through 0.0.14. The issue resides in the 'Upload' function of the 'superagi/controllers/resources.py' file, within the Multipart Upload Handler component. The vulnerability allows remote attackers to manipulate the 'name' argument, leading to arbitrary file writes on the server's filesystem. In the default development environment, this endpoint does not require authentication, further exacerbating the risk.

Impact

Exploitation of this vulnerability allows for arbitrary file writes, with the potential to overwrite critical system files, application code, or configuration files. Such actions could lead to a complete system compromise or a denial-of-service condition. Notably, overwriting executable files or Python libraries could facilitate remote code execution on the backend server.

Reproduction

To reproduce this vulnerability, upload a file through the '/resources/add/{agent_id}' endpoint using a path traversal payload in the 'file.filename' attribute. The 'name' field must contain a legitimate file extension to bypass the application's extension check. Once the file is uploaded, verify that the payload has successfully traversed the directory structure and written to the desired location, such as the '/tmp' directory.

Added: Apr 20, 2026, 8:24 AM
Updated: Apr 20, 2026, 8:24 AM

Vulnerability Rating

Custom Algorithm
spread
0.8
impact
0.6
exploitability
9.5
remediation
0.0
relevance
6.2
threat
6.4
urgency
2.9
incentive
8.3

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.