CVE-2025-12488 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 via the trust_remote_code parameter in text-generation-webui without authentication.

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-12488?

CVE-2025-12488 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 load 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-26680.

Weakness: CWE-807

Which versions are affected by CVE-2025-12488?

How do I fix CVE-2025-12488?

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

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

Sources

Also known as GHSA-rrh4-6qqp-9mpv.

Is CVE-2025-12488 in your software?

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

Check your SBOMs for free