CVE-2026-76841

Source
https://cve.org/CVERecord?id=CVE-2026-76841
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-76841.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-76841
Published
2026-08-24T13:11:59.094Z
Modified
2026-08-28T11:30:42.961917281Z
Severity
  • 8.7 (High) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N CVSS Calculator
Summary
Xinference through 2.11.0 Remote Code Execution via Hardcoded trust_remote_code in Model Loaders
Details

Xinference loads models with Hugging Face remote code execution unconditionally enabled, and before version 2.12.0 exposes no setting to disable it. Six loader call sites pass trustremotecode=True as a literal or as an unconditional default: RerankModel.gettokenizer in xinference/model/rerank/core.py, SentenceTransformerRerankModel.load in xinference/model/rerank/sentencetransformers/core.py, SentenceTransformerEmbeddingModel.load in xinference/model/embedding/sentencetransformers/core.py, FlagEmbeddingModel.load in xinference/model/embedding/flag/core.py, and two sites in xinference/model/llm/transformers/core.py where PytorchModel.sanitizemodelconfig and PytorchModel.getcomponents default the value to True. Because a caller with model launch access can register a model whose type is unknown and supply an arbitrary model path, the server reaches autodetecttype and then AutoTokenizer.frompretrained, which imports and executes Python declared by the model directory's own tokenizerconfig.json automap, running attacker-supplied code with the privileges of the worker process. Version 2.12.0 gates every site behind allowtrustremotecode and the XINFERENCETRUSTREMOTE_CODE setting, permitting remote code only for bundled built-in models.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/76xxx/CVE-2026-76841.json",
    "cwe_ids": [
        "CWE-94"
    ],
    "cna_assigner": "VulnCheck"
}
References

Affected packages

Git / github.com/xorbitsai/inference

Affected ranges

Type
GIT
Repo
https://github.com/xorbitsai/inference
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
Show details
{
    "source": [
        "AFFECTED_FIELD",
        "DESCRIPTION"
    ],
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "2.12.0"
        }
    ]
}

Affected versions

v0.*
v0.0.1
v0.0.2
v0.0.3
v0.0.4
v0.0.5
v0.0.6
v0.1.0
v0.1.1
v0.1.2
v0.1.3
v0.10.0
v0.10.1
v0.10.2
v0.10.2.post1
v0.10.3
v0.11.0
v0.11.1
v0.11.2
v0.11.2.post1
v0.11.3
v0.12.0
v0.12.1
v0.12.2
v0.12.2.post1
v0.12.3
v0.13.0
v0.13.1
v0.13.2
v0.13.3
v0.14.0
v0.14.0.post1
v0.14.1
v0.14.1.post1
v0.14.2
v0.14.3
v0.14.4
v0.14.4.post1
v0.15.0
v0.15.1
v0.15.2
v0.15.3
v0.15.4
v0.16.0
v0.16.1
v0.16.2
v0.16.3
v0.2.0
v0.2.1
v0.2.2
v0.2.3
v0.3.0
v0.4.0
v0.4.1
v0.4.2
v0.4.3
v0.4.4
v0.5.0
v0.5.1
v0.5.2
v0.5.3
v0.5.4
v0.5.5
v0.5.6
v0.6.0
v0.6.1
v0.6.2
v0.6.3
v0.6.4
v0.6.5
v0.7.0
v0.7.1
v0.7.2
v0.7.3
v0.7.3.1
v0.7.4
v0.7.4.1
v0.7.5
v0.8.0
v0.8.1
v0.8.2
v0.8.3
v0.8.3.1
v0.8.4
v0.8.5
v0.9.0
v0.9.1
v0.9.2
v0.9.3
v0.9.4
v1.*
v1.0.0
v1.0.1
v1.1.0
v1.1.1
v1.10.0
v1.10.1
v1.11.0
v1.11.0.post1
v1.12.0
v1.13.0
v1.14.0
v1.15.0
v1.16.0
v1.17.0
v1.2.0
v1.2.1
v1.2.2
v1.3.0.post1
v1.3.0.post2
v1.3.1
v1.3.1.post1
v1.4.0
v1.4.1
v1.5.0
v1.5.0.post1
v1.5.1
v1.6.0
v1.6.0.post1
v1.6.1
v1.7.0
v1.7.0.post1
v1.7.1
v1.7.1.post1
v1.8.0
v1.8.1
v1.8.1.rc1
v1.9.0
v1.9.1
v2.*
v2.0.0
v2.1.0
v2.10.0
v2.11.0
v2.2.0
v2.3.0
v2.4.0
v2.5.0
v2.7.0
v2.8.0
v2.9.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-76841.json"