# CVE-2025-51475: Arbitrary File Overwrite (AFO) in superagi.controllers.resources.upload in TransformerOptimus SuperAGI 0.0.14 allows remote attackers to ov…

- Severity: Medium 5.0 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.82%, higher than 58% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2025-07-22T00:00:00.000Z
- Modified: 2026-06-17T09:35:37.280Z
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: mitre

## 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().

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- superagi superagi: 0.0.14

## References

- <https://github.com/TransformerOptimus/SuperAGI/pull/1463> (exploit, issue-tracking)
- <https://www.gecko.security/blog/cve-2025-51475> (exploit, third-party-advisory)
- <https://github.com/TransformerOptimus/SuperAGI> (product)

## Sources

- CVE List: [CVE-2025-51475](https://www.cve.org/CVERecord?id=CVE-2025-51475), CVE Terms of Use, modified 2025-07-22
- NVD: [CVE-2025-51475](https://nvd.nist.gov/vuln/detail/CVE-2025-51475), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-51475 · Whole record: https://cve.day/CVE-2025-51475.json · Rebuilt by cve.day 2026-11-25T22:59:01.581Z
