CVE-2026-68771: Deserialization of Untrusted Data in Comfy-Org ComfyUI
ComfyUI version 0.23.0 contains a critical deserialization vulnerability in the LoadTrainingDataset node. This flaw allows unauthenticated remote attackers to execute arbitrary Python code by uploading a crafted pickle file via the unauthenticated POST /upload/image endpoint. When the uploaded file is referenced in a workflow graph queued via POST /prompt, the application deserializes the malicious pickle payload using torch.load, leading to code execution as the ComfyUI process user.
AI Analysis
Technical Summary
CVE-2026-68771 is a critical remote code execution vulnerability in ComfyUI v0.23.0 caused by unsafe deserialization of untrusted data. Attackers can upload a malicious shard_*.pkl file without authentication through the /upload/image endpoint. Subsequently, by referencing this file in a workflow graph submitted to the /prompt endpoint, the application uses torch.load to deserialize the attacker-controlled pickle payload. This deserialization leverages the __reduce__ method to execute arbitrary Python code with the privileges of the ComfyUI process user. The vulnerability arises from the LoadTrainingDataset node's unsafe handling of pickle files. No official patch or remediation guidance has been provided yet.
Potential Impact
Successful exploitation allows unauthenticated remote attackers to execute arbitrary Python code on the ComfyUI server with the privileges of the ComfyUI process user. This can lead to full system compromise, data theft, or further attacks within the environment. The vulnerability has a CVSS 4.0 score of 9.3 (critical), reflecting its high impact and ease of exploitation without authentication.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, restrict access to the ComfyUI service to trusted users only and consider disabling or restricting the /upload/image and /prompt endpoints to prevent unauthenticated uploads and workflow queuing. Monitor for unusual activity related to these endpoints and avoid processing untrusted pickle files.
CVE-2026-68771: Deserialization of Untrusted Data in Comfy-Org ComfyUI
Description
ComfyUI version 0.23.0 contains a critical deserialization vulnerability in the LoadTrainingDataset node. This flaw allows unauthenticated remote attackers to execute arbitrary Python code by uploading a crafted pickle file via the unauthenticated POST /upload/image endpoint. When the uploaded file is referenced in a workflow graph queued via POST /prompt, the application deserializes the malicious pickle payload using torch.load, leading to code execution as the ComfyUI process user.
CVSS v4.0
Score 9.3critical
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-68771 is a critical remote code execution vulnerability in ComfyUI v0.23.0 caused by unsafe deserialization of untrusted data. Attackers can upload a malicious shard_*.pkl file without authentication through the /upload/image endpoint. Subsequently, by referencing this file in a workflow graph submitted to the /prompt endpoint, the application uses torch.load to deserialize the attacker-controlled pickle payload. This deserialization leverages the __reduce__ method to execute arbitrary Python code with the privileges of the ComfyUI process user. The vulnerability arises from the LoadTrainingDataset node's unsafe handling of pickle files. No official patch or remediation guidance has been provided yet.
Potential Impact
Successful exploitation allows unauthenticated remote attackers to execute arbitrary Python code on the ComfyUI server with the privileges of the ComfyUI process user. This can lead to full system compromise, data theft, or further attacks within the environment. The vulnerability has a CVSS 4.0 score of 9.3 (critical), reflecting its high impact and ease of exploitation without authentication.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, restrict access to the ComfyUI service to trusted users only and consider disabling or restricting the /upload/image and /prompt endpoints to prevent unauthenticated uploads and workflow queuing. Monitor for unusual activity related to these endpoints and avoid processing untrusted pickle files.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-07-31T16:10:55.448Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a6d183abf32cb7a34637ebd
Added to database: 07/31/2026, 21:48:42 UTC
Last enriched: 07/31/2026, 22:02:53 UTC
Last updated: 07/31/2026, 22:31:29 UTC
Views: 20
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.