Deserialization in Comfy-Org Comfyui

CVE-2026-68771

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.

Vulnerability class: Insecure Deserialization

EPSS: 0.008 (53.9th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.

Affected products

Weakness classification (CWE)

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2026-68771?
CVE-2026-68771 is a critical-severity vulnerability in Comfy-Org Comfyui, classified under Deserialization of Untrusted Data. CVSS score: 9.8/10. Published 2026-07-31.
How severe is CVE-2026-68771?
Critical severity. CVSS v3 base score is 9.8 out of 10.
Is CVE-2026-68771 known to be exploited?
1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.