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
Published · last modified .
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.
EPSS exploit prediction
EPSS: 0.011 (66.8th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 67th percentile — 66.8% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.011 · newest: 0.011 · change: 0.000
Affected products
- Comfy-Org Comfyui — versions 0
Weakness classification (CWE)
Public proof-of-concept exploits
References
- github.com/Comfy-Org/ComfyUI/pull/14543 (vendor-advisory)
- github.com/Comfy-Org/ComfyUI (product)
- github.com/Comfy-Org/ComfyUI/commit/94ee49b1612824366a8631ea069b2a1fa5c73720 (patch)
- www.vulncheck.com/advisories/comfyui-unauthenticated-rce-via-loadtrainingdatase… (third-party-advisory)
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?
- 2 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.