Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-68771: Deserialization of Untrusted Data in Comfy-Org ComfyUI

0
Critical
VulnerabilityCVE-2026-68771cvecve-2026-68771
Published: 07/31/2026 (07/31/2026, 21:16:09 UTC)
Source: CVE Database V5
Vendor/Project: Comfy-Org
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/31/2026, 22:02:53 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses