CVE-2025-51475 Details
Description
Arbitrary File Overwrite (AFO) in superagi.controllers.resources.upload in TransformerOptimus SuperAGI 0.0.14 allows remote attackers to overwrite arbitrary files via unsanitised filenames submitted to the file upload endpoint, due to improper handling of directory traversal in os.path.join() and lack of path validation in get_root_input_dir().
A vulnerability allowing arbitrary file overwrites has been identified in TransformerOptimus SuperAGI version 0.0.14. This issue arises from inadequate sanitization of user-provided filenames in the file upload functionality. The vulnerability is present in the '/api/resources/add/<agent_id>' endpoint within the 'superagi/controllers/resources.py' file. The problem stems from improper handling of directory traversal sequences, which enables attackers to write files outside the designated directory.
Users can update to the latest version of SuperAGI, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 22, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/TransformerOptimus/SuperAGI | [email protected] | Product |
| https://github.com/TransformerOptimus/SuperAGI/pull/1463 | [email protected] | ExploitIssue Tracking |
| https://www.gecko.security/blog/cve-2025-51475 | [email protected] | ExploitThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| superagi superagi | 0.0.14 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Oct 9, 2025 | Initial Analysis | [email protected] |
| Jul 22, 2025 | New CVE Received | [email protected] |
| Jul 22, 2025 | CVE Modified | CISA-ADP |