<?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/"><channel><title>ComfyUI (0.23.0) - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/products/comfyui-0.23.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>Fri, 31 Jul 2026 23:46:59 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/products/comfyui-0.23.0/feed.xml" rel="self" type="application/rss+xml"/><item><title>Unauthenticated Remote Code Execution in ComfyUI via Unsafe Deserialization</title><link>https://feed.craftedsignal.io/briefs/2026-07-comfyui-deserialization/</link><pubDate>Fri, 31 Jul 2026 23:46:59 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-07-comfyui-deserialization/</guid><description>ComfyUI version 0.23.0 is vulnerable to unauthenticated remote code execution via unsafe deserialization of malicious pickle files.</description><content:encoded><![CDATA[<p>ComfyUI version 0.23.0 contains a critical vulnerability (CVE-2026-68771) within the LoadTrainingDataset node, stemming from the unsafe deserialization of pickle files. This flaw allows an unauthenticated remote attacker to execute arbitrary Python code on the host system. The attack vector involves uploading a crafted, malicious pickle file (typically named in the shard_*.pkl format) via the application's file upload interface. Once the file is hosted, the attacker triggers its deserialization by queuing a workflow graph that references the malicious file. Because the application utilizes the torch.load function to process these files, an attacker can leverage the pickle protocol's <strong>reduce</strong> method to execute arbitrary system commands under the security context of the ComfyUI process. This vulnerability poses a significant risk to any publicly accessible ComfyUI instance, as it requires no prior authentication to achieve full system compromise.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>Attacker identifies a publicly accessible ComfyUI instance running version 0.23.0.</li>
<li>Attacker crafts a malicious Python pickle file containing a <strong>reduce</strong> method designed to execute arbitrary OS commands.</li>
<li>Attacker sends an unauthenticated HTTP POST request to the /upload/image endpoint to store the malicious pickle file on the server.</li>
<li>Attacker constructs a JSON workflow graph referencing the path of the newly uploaded malicious file.</li>
<li>Attacker sends an unauthenticated HTTP POST request to the /prompt endpoint to submit the workflow graph for processing.</li>
<li>The LoadTrainingDataset node within the ComfyUI backend processes the workflow and calls torch.load on the malicious file.</li>
<li>The pickle deserialization occurs, triggering the execution of the attacker's payload.</li>
<li>The attacker achieves remote code execution, enabling further activity such as data exfiltration or persistence.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation results in full remote code execution on the underlying server. This enables attackers to steal sensitive data, gain persistent access to the host, or leverage the compromised system to perform further attacks on the internal network. Given the typical deployment of ComfyUI in AI and research environments, this may lead to the exposure of proprietary model data or credentials.</p>
<h2 id="recommendation">Recommendation</h2>
<ol>
<li>Immediately update ComfyUI to a patched version that sanitizes or restricts the loading of untrusted pickle files.</li>
<li>If an immediate update is not possible, restrict network access to the ComfyUI web interface, ensuring it is not accessible from the public internet.</li>
<li>Implement network-level blocking for unauthorized POST requests directed at the /upload/image and /prompt endpoints.</li>
<li>Monitor web server logs for suspicious POST requests to /upload/image followed by calls to /prompt containing references to .pkl files.</li>
<li>Deploy the Sigma rules provided in this brief to detect the exploitation of CVE-2026-68771.</li>
</ol>
]]></content:encoded><category domain="severity">critical</category><category domain="type">advisory</category><category>remote-code-execution</category><category>deserialization</category><category>cve-2026-68771</category></item></channel></rss>