<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:webfeeds="http://webfeeds.org/rss/1.0"><channel><title>Xinference - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/vendors/xinference/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata. Fed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Mon, 24 Aug 2026 16:02:13 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/vendors/xinference/feed.xml" rel="self" type="application/rss+xml"/><image><url>https://feed.craftedsignal.io/favicon-32x32.png</url><title>CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/</link><width>32</width><height>32</height></image><webfeeds:icon>https://feed.craftedsignal.io/favicon.svg</webfeeds:icon><item><title>Remote Code Execution in Xinference via Unsafe Model Loading</title><link>https://feed.craftedsignal.io/briefs/2026-08-xinference-rce/</link><pubDate>Mon, 24 Aug 2026 16:02:13 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-08-xinference-rce/</guid><description>Xinference versions prior to 2.12.0 are vulnerable to remote code execution because they unconditionally enable 'trust_remote_code=True' when loading models, allowing attackers to execute arbitrary Python code via crafted model configurations.</description><content:encoded><![CDATA[<p>Xinference versions prior to 2.12.0 contain a critical remote code execution (RCE) vulnerability (CVE-2026-76841) rooted in the insecure implementation of Hugging Face Transformers model loading. The application contains six distinct loader call sites that pass 'trust_remote_code=True' to the underlying Transformers library, either as a hardcoded literal or a default configuration.</p>
<p>This implementation allows an attacker with model launch access to register a custom model type and supply a malicious model path. During the model loading sequence, the server invokes 'AutoTokenizer.from_pretrained'. If an attacker provides a 'tokenizer_config.json' file containing an 'auto_map' entry, the server will automatically import and execute arbitrary Python code defined within the model directory. This code executes with the full privileges of the Xinference worker process. Version 2.12.0 mitigates this issue by introducing the 'XINFERENCE_TRUST_REMOTE_CODE' setting and requiring explicit enablement to permit remote code execution for non-bundled models.</p>
<h2 id="impact">Impact</h2>
<p>An attacker exploiting this vulnerability achieves remote code execution in the context of the worker process. This can lead to full compromise of the hosting server, sensitive data exfiltration, or lateral movement within the environment. This vulnerability affects any deployment of Xinference prior to version 2.12.0 that allows untrusted users to launch or register new model paths.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Immediately upgrade all instances of Xinference to version 2.12.0 or later to ensure the 'trust_remote_code' functionality is gated by configuration.</li>
<li>Audit current model registration logs for the registration of arbitrary model paths or custom model types by unauthorized users.</li>
<li>Restrict model registration and launch capabilities to trusted administrators or authenticated service identities within the infrastructure.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>remote-code-execution</category><category>vulnerability</category><category>ai-security</category></item></channel></rss>