CVE-2025-27771 Uptrain vulnerable to remote code execution via `/add_prompts` endpoint

High 7.4 Published Updated

Authenticated attackers can execute arbitrary code on the host via the /add_prompts endpoint in UpTrain.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2025-27771?

CVE-2025-27771 is a high-severity code injection vulnerability in uptrain-ai uptrain, published on 17 Aug 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

UpTrain is an open-source platform to evaluate and improve generative AI applications. In version 0.7.1 and prior, the `/add_prompts` endpoint is vulnerable to remote code execution via the `checks` and `metadata` parameters. Any user that has access to UpTrain and a valid authentication method may be able to execute arbitrary code in the context of the host running UpTrain, which in most cases will be the docker container as suggested by the documentation. As of time of publication, no known patch is available.

Weakness: CWE-74

Which versions are affected by CVE-2025-27771?

How do I fix CVE-2025-27771?

No fix has been published for CVE-2025-27771 yet. Limit exposure of the affected software until one is available.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2025-27771 being exploited?

There is no known exploitation of CVE-2025-27771 in the wild and no public exploit code.

Sources

Is CVE-2025-27771 in your software?

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

Check your SBOMs for free