Skip to content
RCE Advisory Intermediate CVE-2025-12488

oobabooga text-generation-webui trust_remote_code Reliance on Untrusted Inputs Remote Code Execution Vulnerability

The load endpoint of text-generation-webui accepted a user-supplied trust_remote_code argument without proper validation and used it when loading a model. An unauthenticated remote attacker could use this to run arbitrary code as the service account.

Nicholas Zubrisky Follow

Originally disclosed on Zero Day Initiative

Critical 9.8 View original

This vulnerability allows remote attackers to execute arbitrary code on affected installations of oobabooga text-generation-webui. Authentication is not required to exploit this vulnerability.

Nicholas Zubrisky (@NZubrisky) of Trend Micro Security Research, on the Zero Day Initiative

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

Likely the load endpoint passed the client-supplied trust_remote_code value straight into the model-loading routine without validating it, so untrusted model code was executed.

Impact

An unauthenticated attacker could execute arbitrary code in the context of the service account.

What the attacker needed

Network access to the load endpoint; no authentication needed

The fix

The vendor issued an update to correct the vulnerability.

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.

This tool loads AI models, and some models come with their own code that the tool will run. The tool let anyone tell it to trust and run that code without checking the request properly. So a stranger on the network could make the server run their own code, not just the model.

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 Nicholas Zubrisky

View all

7 more disclosed reports, best first.

More from Zero Day Initiative

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.