CVE-2025-51475 Path traversal in n/a
Remote attackers can overwrite arbitrary files in SuperAGI via unsanitized filenames in the upload endpoint due to improper path validation.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2025-51475?
CVE-2025-51475 is a medium-severity path traversal vulnerability in n/a, published on 22 Jul 2025. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official 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().
Weakness: CWE-22
Which versions are affected by CVE-2025-51475?
It affects 1 product.
Products include Superagi Superagi.
How do I fix CVE-2025-51475?
No fix has been published for CVE-2025-51475 yet. Limit exposure of the affected software until one is available.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2025-51475 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-51475 exists.
Other vulnerabilities in n/a
- CVE-2024-12048 IDOR Vulnerability in transformeroptimus/superagi
- CVE-2024-9415 Path Traversal in transformeroptimus/superagi
- CVE-2024-9439 Remote Code Execution in transformeroptimus/superagi
- CVE-2024-10267 Information Disclosure in transformeroptimus/superagi
- CVE-2024-9437 Unauthenticated Denial of Service in transformeroptimus/superagi
Sources
Also known as GHSA-7h3r-f4vp-3r8f.