CVE-2026-68771
ComfyUI 0.23.0 Unauthenticated RCE via LoadTrainingDataset Pickle Deserialization
CVSS Score
9.8
EPSS Score
0.0%
EPSS Percentile
0th
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.
| CWE | CWE-502 |
| Vendor | comfy-org |
| Product | comfyui |
| Published | Jul 31, 2026 |
Stay Ahead of the Next One
Get instant alerts for comfy-org comfyui
Be the first to know when new critical vulnerabilities affecting comfy-org comfyui are published โ delivered to Slack, Telegram or Discord.
Get Free Alerts โ
Free ยท No credit card ยท 60 sec setup
CVSS v3 Breakdown
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
Affected Versions
Comfy-Org / ComfyUI
0 โค 0.23.0
References
github.com: https://github.com/Comfy-Org/ComfyUI/pull/14543 github.com: https://github.com/Comfy-Org/ComfyUI github.com: https://github.com/Comfy-Org/ComfyUI/commit/94ee49b1612824366a8631ea069b2a1fa5c73720 vulncheck.com: https://www.vulncheck.com/advisories/comfyui-unauthenticated-rce-via-loadtrainingdataset-pickle-deserialization
Credits
๐ Bofei Chen