HighVulnerability
CVE-2026-76841: Xinference model loading executes remote code from Hugging Face directories
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2026-76841
- Published
- Record updated
- 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.
Related items
- MediumCVE-2026-124588: huggingface finetrainers code injection via Library argumentSimilar attack · NVD/CVE Database
- MediumTaiwan-Based Hacker Used BOSSAI AI Agents to Steal Taipei Emergency Dispatch RecordsSimilar attack · The Hacker News
- HighCVE-2026-97677: IBM Langflow OSS arbitrary file write and read by authenticated flow authorsSimilar attack · NVD/CVE Database
- MediumRecent AI agent experiments reveal a risky future of machine 'teamwork' inside corporationsSimilar attack · CNBC Technology
- MediumClaude Code's “Don't Ask Again” File Exposes Passwords and Keys in 1,122 Public Copies on GitHubSimilar attack · The Hacker News