Read the docs
TI-2026-53677 Aliases CVE-2026-76841GHSA-9cx2-fwcj-qq73

Xinference through 2.11.0 Remote Code Execution via Hardcoded trust_remote_code in Model Loaders

Priority MEDIUM 42CWE-94Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
None
Attack complexity
Low
Attack requirements
None
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-94.

Summary

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 trust_remote_code=True as a literal or as an unconditional default: RerankModel._get_tokenizer in xinference/model/rerank/core.py, SentenceTransformerRerankModel.load in xinference/model/rerank/sentence_transformers/core.py, SentenceTransformerEmbeddingModel.load in xinference/model/embedding/sentence_transformers/core.py, FlagEmbeddingModel.load in xinference/model/embedding/flag/core.py, and two sites in xinference/model/llm/transformers/core.py where PytorchModel._sanitize_model_config and PytorchModel._get_components 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 _auto_detect_type and then AutoTokenizer.from_pretrained, which imports and executes Python declared by the model directory's own tokenizer_config.json auto_map, running attacker-supplied code with the privileges of the worker process. Version 2.12.0 gates every site behind allow_trust_remote_code and the XINFERENCE_TRUST_REMOTE_CODE setting, permitting remote code only for bundled built-in models.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.01029 63rd percentileScored 2026-11-07
Fix Fixed inference (xorbitsai): 2.12.0

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
xorbitsaiinferencebefore 2.12.02.12.0Patch availableCNA
  • inference Vendorxorbitsai Affected before 2.12.0 Fixed in 2.12.0 Patch available CNA

Remediation

  • Fix · CNA inference (xorbitsai) Fixed in 2.12.0

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-76841
  2. 2026-10-03 Alias added: GHSA-9cx2-fwcj-qq73

References

  • TI-2026-58780 Xinference 3.3.0 Unauthenticated Arbitrary-Path File Read via /v1/models/llm/auto-register CVSS 4.0HIGH 8.7
  • TI-2026-44100 Xinference: Remote code execution via unsafe `eval()` in Llama3 tool-call parsing CVSS 3.1CRITICAL 10.0
  • TI-2026-73470 Unauthenticated deserialization RCE in Xorbits Xoscar actor pool CVSS 4.0CRITICAL 9.3
  • TI-2026-76179 Path traversal in Xinference lets attackers write and delete JSON files CVSS 4.0HIGH 8.3

Sources