oobabooga text-generation-webui trust_remote_code Reliance on Untrusted Inputs Remote Code Execution Vulnerability
The join 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 attacker could use this to run arbitrary code as the service account.
Originally disclosed on Zero Day Initiative
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.
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 join endpoint passed the client-supplied trust_remote_code value straight into model loading 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 join endpoint; no authentication needed
The fix
The vendor issued an update that corrects 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 software loads AI models, and some models come with their own code that runs when the model is loaded. The program let anyone tell it to trust and run that code without checking who was asking or what would be loaded. So a stranger on the network could get their own code running 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.