Incident report
ComfyUI LoadTrainingDataset Node Unauthenticated Pickle Deserialization RCE
CVE-2026-68771 (CVSS 9.3, published July 31, 2026) affected ComfyUI versions `<= 0.23.0` within its `LoadTrainingDataset` workflow node. An unauthenticated attacker reaching an exposed instance or sharing a workflow referencing crafted `.pkl` dataset shard files triggered unsafe Python pickle deserialization on the server, yielding immediate remote code execution. Because ComfyUI instances commonly run on high-end GPUs with unrestricted host permissions, RCE enabled rapid GPU cryptojacking and credential theft. Maintainers patched dataset shard loading to reject arbitrary pickle execution.
Incident record
- Reported
- Severity
- Critical
- Vector
- Supply Chain
- Affected system type
- Modular Node-Based Diffusion & AI Workflow Runtimes
- Reference
CVE-2026-68771- Reference URI
https://nvd.nist.gov/vuln/detail/CVE-2026-68771
Defensive lesson
Ban pickle-based dataset shard formats in interactive workflow engines and isolate GPU execution nodes inside unprivileged containers.
Referenced techniques
- Supply Chain Compromise: Data Repository AML.T0010.002
- User Execution: Unsafe AI Artifacts AML.T0011.000
- Command and Scripting Interpreter AML.T0050
- Publish Poisoned AI Artifacts: Datasets AML.T0115.000