oobabooga text-generation-webui trust_remote_code Reliance on Untrusted Inputs Remote Code Execution Vulnerability
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2025-12487
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 16:48 UTC · Revision 1
Source evidence
oobabooga text-generation-webui trust_remote_code Reliance on Untrusted Inputs Remote Code Execution Vulnerability
core-osv · Original sourcePublished 6 Nov 2025, 20:12 UTC
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.
osv:CVE-2025-12487
Complete source record
{
"id": "b566abe06178dac43696e940169e90173135bce6c91758db41f27e46d1919695",
"url": "https://osv.dev/vulnerability/CVE-2025-12487",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "oobabooga text-generation-webui trust_remote_code Reliance on Untrusted Inputs Remote Code Execution Vulnerability",
"summary": "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.",
"evidence": "osv:CVE-2025-12487",
"products": [],
"severity": "critical",
"structured": {
"id": "CVE-2025-12487",
"aliases": [
"CVE-2025-12487"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/oobabooga/textgen",
"type": "GIT",
"events": [
{
"introduced": "7c883ef2f06b1971e43184d087afe83646fd1b50"
},
{
"fixed": "b5a6904c4ac4049823396090360b6f566f4e4603"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "2.5"
},
{
"last_affected": "2.5"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandaloneSingleVersion"
},
{
"range": [
{
"fixed": "b5a6904c4ac4049823396090360b6f566f4e4603"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"2.5"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-12487.json"
}
}
],
"modified": "2026-10-28T02:30:37.398356236Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/12xxx/CVE-2025-12487.json",
"https://github.com/oobabooga/text-generation-webui/commit/b5a6904c4ac4049823396090360b6f566f4e4603",
"https://nvd.nist.gov/vuln/detail/CVE-2025-12487",
"https://www.zerodayinitiative.com/advisories/ZDI-25-982/"
],
"provider_metadata": {
"cwe_ids": [
"CWE-807"
],
"cna_assigner": "zdi",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/12xxx/CVE-2025-12487.json"
}
},
"related_cves": [
{
"value": "CVE-2025-12487",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 504866,
"published_at": "2025-11-06T20:12:07.187+00:00"
}