# CVE-2025-27771: UpTrain remote code execution in /add_prompts endpoint

Source: https://junglewise.ai/threats/cve-2025-27771-uptrain-remote-code-execution-in-add-prompts-endpoint  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-08-17. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

CVE-2025-27771 · Severity: info · CVSS 9.1 · Published 2026-08-17

UpTrain is an open-source platform for evaluating and improving generative AI applications. The `/add_prompts` endpoint uses unsafe code evaluation on user-supplied parameters, allowing authenticated users to execute arbitrary code on the host system. An attacker with valid authentication can gain control of the UpTrain container or host, potentially compromising the entire application and any data it processes.

Technologies: [UpTrain](https://junglewise.ai/threats/technologies/uptrain). Vendors: [UpTrain](https://junglewise.ai/threats/vendors/uptrain).

## Quick answers

**Is CVE-2025-27771 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2025-27771 being exploited in the wild.

**How severe is CVE-2025-27771?** Informational severity, with a CVSS score of 9.1, published 17 August 2026.

**Which products and versions are affected?** UpTrain 0.7.1 and prior.

**Is there a fix for CVE-2025-27771?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**How is CVE-2025-27771 attacked?** It is attacked over the network, in a web application.

**Am I affected by CVE-2025-27771?** Check whether you run UpTrain at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

The vulnerability is a code injection flaw in the `/add_prompts` endpoint (GHSL-2024-200 / CVE-2025-27771). The endpoint accepts `checks` and `metadata` form parameters and passes them directly to Python's `eval()` function without validation or sanitization, allowing arbitrary Python code execution. The attack requires network access to the UpTrain API and a valid authentication method (API key or similar). An authenticated attacker can inject malicious Python code through these parameters to execute arbitrary commands in the context of the UpTrain process. As of publication, no patch is available; the project appears to be unmaintained as of March 2025.

## Affected products

- UpTrain UpTrain 0.7.1 and prior

## Timeline

- 2024-09-05: disclosed: Issue opened in repo
- 2026-08-08: advisory: GHSL security advisory published
- 2026-08-17: advisory: NVD entry published

## References

- [https://github.com/uptrain-ai/uptrain/blob/a31cc14eddcb6c0b0b12cbed15f086d98c441c6f/uptrain/dashboard/backend/app.py](https://github.com/uptrain-ai/uptrain/blob/a31cc14eddcb6c0b0b12cbed15f086d98c441c6f/uptrain/dashboard/backend/app.py)

## Related threats

- [UpTrain remote code execution in /new_run endpoint](https://junglewise.ai/threats/cve-2025-27772-uptrain-remote-code-execution-in-new-run-endpoint)
- [UpTrain remote code execution in /create_project endpoint](https://junglewise.ai/threats/cve-2025-27770-uptrain-remote-code-execution-in-create-project-endpoint)
