{"id":"CVE-2025-12487","state":"PUBLISHED","title":"oobabooga text-generation-webui trust_remote_code Reliance on Untrusted Inputs Remote Code Execution Vulnerability","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.\n\nThe 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.","publishedAt":"2025-11-06T20:12:07.187Z","updatedAt":"2025-11-06T20:29:38.307Z","severity":{"score":9.8,"label":"Critical","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"zdi"},"assigner":"zdi","products":["oobabooga text-generation-webui"],"affected":[{"vendor":"oobabooga","product":"text-generation-webui","defaultStatus":"unknown","versions":[{"version":"2.5","status":"affected"}]}],"references":["https://www.zerodayinitiative.com/advisories/ZDI-25-982/","https://github.com/oobabooga/text-generation-webui/commit/b5a6904c4ac4049823396090360b6f566f4e4603"],"weaknesses":["CWE-807"],"ingestedAt":"2026-10-29T20:08:31.050Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/12xxx/CVE-2025-12487.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-12487","state":"PUBLISHED","datePublished":"2025-11-06T20:12:07.187Z","dateUpdated":"2025-11-06T20:29:38.307Z","assignerShortName":"zdi","assignerOrgId":"99f1926a-a320-47d8-bbb5-42feb611262e","dateReserved":"2025-10-29T19:49:54.540Z"},"containers":{"cna":{"title":"oobabooga text-generation-webui trust_remote_code Reliance on Untrusted Inputs Remote Code Execution Vulnerability","descriptions":[{"lang":"en","value":"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.\n\nThe 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."}],"affected":[{"vendor":"oobabooga","product":"text-generation-webui","defaultStatus":"unknown","versions":[{"version":"2.5","status":"affected"}]}],"references":[{"url":"https://www.zerodayinitiative.com/advisories/ZDI-25-982/","name":"ZDI-25-982","tags":["x_research-advisory"]},{"url":"https://github.com/oobabooga/text-generation-webui/commit/b5a6904c4ac4049823396090360b6f566f4e4603","name":"vendor-provided URL","tags":["vendor-advisory"]}],"metrics":[{"format":"CVSS","cvssV3_0":{"version":"3.0","vectorString":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":9.8,"baseSeverity":"CRITICAL"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-807","lang":"en","description":"CWE-807: Reliance on Untrusted Inputs in a Security Decision","type":"CWE"}]}],"providerMetadata":{"shortName":"zdi","orgId":"99f1926a-a320-47d8-bbb5-42feb611262e","dateUpdated":"2025-11-06T20:12:07.187Z"},"dateAssigned":"2025-10-29T19:49:54.614Z","datePublic":"2025-10-30T21:03:44.053Z","source":{"lang":"en","value":"Nicholas Zubrisky (@NZubrisky) of Trend Micro Security Research"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-11-06T20:29:33.516674Z","id":"CVE-2025-12487","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-11-06T20:29:38.307Z"}}]}}}