CVE-2025-51475: Arbitrary File Overwrite (AFO) in superagi.controllers.resources.upload in TransformerOptimus SuperAGI 0.0.14
CVE-2025-51475 is a medium-severity flaw (CVSS 5.0) affecting superagi. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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().
Why this priority
- Public exploit reference
No fix is published yet: follow the downgrade or mitigation steps.
Risk facts
| CVSS score | 5.0 (Medium) |
| Attack vector | Local |
| Attack complexity | Low |
| Privileges needed | Low |
| User interaction | Required |
| EPSS exploit chance | 0.8% (top 43%) |
| CISA exploited list | No |
| Weakness | CWE-22 |
| Published | 2025-07-22 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2025-51475?
superagi: downgrade or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2025-51475 being exploited?
CVE-2025-51475 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2025-51475 affect?
CVE-2025-51475 affects superagi. Severity is medium (CVSS 5.0). 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 impro
How urgent is CVE-2025-51475?
Priority 37/100. Public exploit reference
Related CVEs
- CVE-2025-51472 MEDIUM 6.5 DOWNGRADE Code Injection in AgentTemplate.eval_agent_config in TransformerOptimus SuperAGI 0.0.14 allows remote attacker
- CVE-2024-9447 MEDIUM 6.5 DOWNGRADE An information disclosure vulnerability exists in the latest version of transformeroptimus/superagi
- CVE-2024-9439 HIGH 8.8 DOWNGRADE SuperAGI is vulnerable to remote code execution in the latest version
- CVE-2024-9437 HIGH 7.5 DOWNGRADE SuperAGI version v0.0.14 is vulnerable to an unauthenticated Denial of Service (DoS) attack
- CVE-2024-9431 HIGH 8.8 DOWNGRADE In version v0.0.14 of transformeroptimus/superagi, there is an improper privilege management vulnerability