CVE-2026-68771: Deserialization of Untrusted Data in Comfy-Org ComfyUI
ComfyUI v0.23.0 contains an unsafe deserialization vulnerability in the LoadTrainingDataset node that allows unauthenticated remote attackers to execute arbitrary Python code by uploading a crafted pickle file and triggering its deserialization. Attackers can upload a malicious shard_*.pkl file via the unauthenticated POST /upload/image endpoint and then queue a workflow graph via POST /prompt referencing the uploaded file, causing torch.load to deserialize the attacker-controlled pickle payload using __reduce__ and execute arbitrary commands as the ComfyUI process user.
AI Analysis
Technical Summary
CVE-2026-68771 describes an unsafe deserialization vulnerability in ComfyUI v0.23.0's LoadTrainingDataset node. Attackers can upload malicious shard_*.pkl files through an unauthenticated POST /upload/image endpoint. Subsequently, by queuing a workflow graph referencing the uploaded file via POST /prompt, the application calls torch.load on the attacker-controlled pickle file. This triggers the __reduce__ method during deserialization, allowing arbitrary Python code execution with the privileges of the ComfyUI process user. The vulnerability requires no authentication and has a CVSS 4.0 score of 9.3, indicating critical severity. No patch or official remediation guidance is currently documented.
Potential Impact
Successful exploitation allows unauthenticated remote attackers to execute arbitrary Python code on the host running ComfyUI, potentially leading to full system compromise under the ComfyUI process user context. This can result in unauthorized control, data manipulation, or further attacks within the environment. The vulnerability is critical due to its remote, unauthenticated nature and high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, restrict access to the POST /upload/image and POST /prompt endpoints to trusted users or networks. Consider disabling or limiting the LoadTrainingDataset node functionality if possible. Monitor for updates from Comfy-Org regarding official patches or mitigations.
CVE-2026-68771: Deserialization of Untrusted Data in Comfy-Org ComfyUI
Description
ComfyUI v0.23.0 contains an unsafe deserialization vulnerability in the LoadTrainingDataset node that allows unauthenticated remote attackers to execute arbitrary Python code by uploading a crafted pickle file and triggering its deserialization. Attackers can upload a malicious shard_*.pkl file via the unauthenticated POST /upload/image endpoint and then queue a workflow graph via POST /prompt referencing the uploaded file, causing torch.load to deserialize the attacker-controlled pickle payload using __reduce__ and execute arbitrary commands as the ComfyUI process user.
CVSS v4.0
Score 9.3critical
Affected software
Comfy-Org
ComfyUI
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-68771 describes an unsafe deserialization vulnerability in ComfyUI v0.23.0's LoadTrainingDataset node. Attackers can upload malicious shard_*.pkl files through an unauthenticated POST /upload/image endpoint. Subsequently, by queuing a workflow graph referencing the uploaded file via POST /prompt, the application calls torch.load on the attacker-controlled pickle file. This triggers the __reduce__ method during deserialization, allowing arbitrary Python code execution with the privileges of the ComfyUI process user. The vulnerability requires no authentication and has a CVSS 4.0 score of 9.3, indicating critical severity. No patch or official remediation guidance is currently documented.
Potential Impact
Successful exploitation allows unauthenticated remote attackers to execute arbitrary Python code on the host running ComfyUI, potentially leading to full system compromise under the ComfyUI process user context. This can result in unauthorized control, data manipulation, or further attacks within the environment. The vulnerability is critical due to its remote, unauthenticated nature and high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, restrict access to the POST /upload/image and POST /prompt endpoints to trusted users or networks. Consider disabling or limiting the LoadTrainingDataset node functionality if possible. Monitor for updates from Comfy-Org regarding official patches or mitigations.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-07-31T16:10:55.448Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6a6d183abf32cb7a34637ebd
Added to database: 07/31/2026, 21:48:42 UTC
Last enriched: 08/16/2026, 13:43:35 UTC
Last updated: 09/14/2026, 13:29:07 UTC
Views: 116
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.