TransformerOptimus SuperAGI
cpe:2.3:a:superagi:superagi:*:*:*:*:*:*:*
- 0.0.14
A code injection vulnerability allowing remote code execution has been identified in Transformer Optimus SuperAGI version 0.0.14. The issue arises in the `AgentTemplate.eval_agent_config` method, where user-controlled input is passed directly to Python's `eval()` function without any validation. This vulnerability can be exploited by manipulating agent template configurations, such as the goal, constraints, or instruction fields, which are then evaluated during template loading or updates.
Exploitation of this vulnerability allows for arbitrary Python code execution, leading to complete system compromise.
To reproduce this vulnerability, create a malicious agent template JSON that includes arbitrary Python code in the 'goal' configuration. Host this JSON at a marketplace endpoint trusted by the target SuperAGI instance. When the template is cloned, the malicious code will be executed. Alternatively, update an existing template with the malicious payload using the template update API, which will also trigger the execution of the injected code.
Users can update to SuperAGI version 0.0.15, where this vulnerability has been fixed.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.