Skip to content
HighVulnerability

CVE-2026-76841: Xinference model loading executes remote code from Hugging Face directories

Identifier
CVE-2026-76841
Published
Record updated
View JSON
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
1.0%

Summary

Xinference loads Hugging Face models with trust_remote_code unconditionally enabled, and versions before 2.12.0 provide no setting to disable it. A caller with model launch access can register a model with an arbitrary path, causing AutoTokenizer.from_pretrained to import and execute Python declared in the model's tokenizer_config.json auto_map, with the privileges of the worker process.

Mitigation

Fixed in 2.12.0, which gates every site behind allow_trust_remote_code and the XINFERENCE_TRUST_REMOTE_CODE setting, permitting remote code only for bundled built-in models.