CVE-2025-51475 Path traversal in n/a

Medium 5.0 Published Updated

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.

Sources

Also known as GHSA-7h3r-f4vp-3r8f.

Is CVE-2025-51475 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free