<?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>Winml-Cli (&lt; 0.4.0) - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/products/winml-cli--0.4.0/</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>Tue, 08 Sep 2026 21:49:54 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/products/winml-cli--0.4.0/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 via CORS Misconfiguration in winml-cli</title><link>https://feed.craftedsignal.io/briefs/2026-09-winml-rce/</link><pubDate>Tue, 08 Sep 2026 21:49:54 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-09-winml-rce/</guid><description>An unauthenticated RCE vulnerability in winml-cli (CVE-2026-84452) allows remote attackers to execute arbitrary code via a malicious website sending cross-origin requests to the local API server.</description><content:encoded><![CDATA[<p>The 'winml-cli' project contains a critical security vulnerability (CVE-2026-84452) in its 'serve/cli_api.py' component that facilitates Remote Code Execution (RCE). The tool launches a local HTTP API server that binds to 127.0.0.1 by default; however, it incorrectly configures Cross-Origin Resource Sharing (CORS) by setting 'allow_origins' to a wildcard ('*'). This configuration allows any website visited by the user to send requests to the local winml-cli instance, effectively bypassing the intended localhost-only network boundary.</p>
<p>Furthermore, the API exposes 'build' and 'config' commands that accept the '--trust-remote-code' parameter. By injecting this parameter through a crafted cross-origin request, an attacker can force the application to load a malicious model repository. The underlying 'transformers' library then imports Python code from the repository, leading to immediate code execution under the context of the user running the CLI server. This vulnerability affects versions of 'winml-cli' prior to 0.4.0.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>The victim starts the winml-cli HTTP API server locally using 'python -m uvicorn winml.modelkit.serve.cli_api:app'.</li>
<li>An attacker hosts a malicious model repository containing a 'configuration_pwn.py' file with embedded Python code.</li>
<li>The victim is lured to an attacker-controlled website that contains malicious JavaScript.</li>
<li>The JavaScript sends a cross-origin POST request to 'http://127.0.0.1:8000/v1/cli/build' due to the overly permissive CORS wildcard.</li>
<li>The request includes JSON data setting 'trust_remote_code' to 'true' and pointing the 'model' argument to the attacker-controlled model repository.</li>
<li>The 'winml-cli' server processes the request and executes 'AutoConfig.from_pretrained' with the 'trust_remote_code=True' flag.</li>
<li>The 'transformers' library imports the malicious module from the remote repository, triggering the embedded arbitrary code execution.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation results in full Remote Code Execution (RCE) on the victim's machine under the privileges of the user running the winml-cli process. This can lead to local data exfiltration, installation of persistent backdoors, or lateral movement within the user's environment. This vulnerability primarily impacts developers and data scientists using winml-cli in local development workflows.</p>
<h2 id="recommendation">Recommendation</h2>
<ol>
<li>Upgrade 'winml-cli' to version 0.4.0 or later immediately to resolve the CORS misconfiguration and the unsafe handling of 'trust_remote_code'.</li>
<li>Implement local firewall rules to restrict traffic to the port used by the winml-cli API (default 8000) to explicitly trusted processes if feasible.</li>
<li>Avoid running the winml-cli server while browsing untrusted websites.</li>
<li>Deploy network-level protections to alert on unexpected POST requests to 'http://127.0.0.1:8000' originating from web browser processes.</li>
</ol>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>remote-code-execution</category><category>web-application</category><category>cors</category></item></channel></rss>