ComfyUI v0.23.0 contains an unsafe deserialization vulnerability in the LoadTrainingDataset node. Unauthenticated remote attackers can upload a crafted pickle file via the unauthenticated POST /upload/image endpoint and reference it in a workflow graph via POST /prompt, causing torch.load to deserialize the attacker-controlled pickle payload and execute arbitrary Python code.
An unauthenticated attacker over the network can execute arbitrary Python code and operating system commands as the ComfyUI process user by uploading a malicious pickle file and triggering its deserialization through workflow execution.
There is no evidence that a public proof-of-concept exists. There is no evidence of proof of exploitation at the moment.
Yes, a patch is available (see GitHub Advisory GHSA-6p72-9j26-4rmx)
Update ComfyUI to a patched version that addresses the unsafe deserialization vulnerability in the LoadTrainingDataset node. Additionally, implement network-level access controls to restrict the POST /upload/image and POST /prompt endpoints to authorized users only. Consider disabling the LoadTrainingDataset node if it is not required for your deployment.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Feedly found the first article mentioning CVE-2026-68771 . See article
NVD published the first details for CVE-2026-68771
A CVSS base score of 9.8 has been assigned.
GitHub Advisories released a security advisory .
A critical vulnerability with a CVSS score of 9.3 exists in ComfyUI v0.23.0, allowing unauthenticated remote attackers to execute arbitrary Python code by uploading a malicious pickle file through specific endpoints. Currently, there is no evidence of exploitation in the wild or public proof-of-concept exploits. A patch is available, and it is recommended to implement network-level access controls and consider disabling the affected functionality if not needed. See article
CVE-2026-68771 - Exploits & Severity - Feedly
Unauthenticated RCE in ComfyUI v0.23.0 LoadTrainingDataset (CVE-2026-68771) | Mallory
CVE on X: "CVE-2026-68771 ComfyUI v0.23.0 contains an unsafe deserialization ...
CVE-2026-68771 — ComfyUI 0.23.0 Unauthenticated RCE via LoadTrainingDataset Pickle Deserialization
CVE-2026-68771 - Exploits & Severity - Feedly
Collect, analyze, and vulnerability reports faster using AI
The full story
This article is one source in a clustered incident — the cluster page carries the summary, timeline and every other outlet covering it.
