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

Critical 9.8 Published Updated

Remote attackers can execute arbitrary code by exploiting unvalidated trust_remote_code parameters in the model loading endpoint.

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

What is CVE-2025-12487?

CVE-2025-12487 is a critical code injection vulnerability in oobabooga text-generation-webui, published on 6 Nov 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

oobabooga text-generation-webui trust_remote_code Reliance on Untrusted Inputs Remote Code Execution Vulnerability. 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 specific flaw exists within the handling of the trust_remote_code parameter provided to the join endpoint. The issue results from the lack of proper validation of a user-supplied argument before using it to load a model. An attacker can leverage this vulnerability to execute code in the context of the service account. Was ZDI-CAN-26681.

Weakness: CWE-807

Which versions are affected by CVE-2025-12487?

How do I fix CVE-2025-12487?

No fix has been published for CVE-2025-12487 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-12487 being exploited?

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

Sources

Also known as GHSA-qx32-gmjh-j7x6.

Is CVE-2025-12487 in your software?

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

Check your SBOMs for free