Skip to content
RCE Advisory Intermediate CVE-2025-27771CVE-2025-27772

GHSL-2024-200_GHSL-2024-201: Zero click RCE in Uptrain - CVE-2025-27771, CVE-2025-27772

The Uptrain dashboard's /add_prompts and /new_run endpoints pass user-supplied checks and metadata parameters to Python's eval, allowing arbitrary code execution. Combined with missing authentication and an open CORS policy, an attacker can achieve zero-click remote code execution by directing a user to a crafted website.

Kwstubbs Follow

Originally disclosed on GitHub Security Lab

The Uptrain dashboard lacks significant authentication, has an open CORS policy, and is vulnerable to a remote code execution vulnerability. Combining these primitives, an attacker can get zero click remote code execution in the context of the Uptrain host by directing an Uptrain user to a specially crafted website.

Kwstubbs, on GitHub Security Lab

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

The application calls Python's eval on user-controlled checks and metadata parameters without sanitisation.

Impact

An attacker could execute arbitrary code on the Uptrain host, typically the Docker container, with zero clicks from a victim.

What the attacker needed

Victim visits a crafted website; Uptrain dashboard reachable

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

The dashboard takes input from users and runs it as Python code instead of treating it as data. Because the dashboard also lets other websites talk to it and does not properly check who is asking, a malicious site can make a logged-in user's browser send code that runs on the server.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More by Kwstubbs

View all

43 more disclosed reports, best first.

More from GitHub Security Lab

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.