9.3critical
ComfyUI 0.23.0 Unauthenticated RCE via LoadTrainingDataset Pickle Deserialization
- Severity
- 9.3critical CVSS:4.0 by VulnCheck
- Exploit likelihood
- 0.92% (higher than 61% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulnCheck
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Comfy-Org ComfyUI | up to 0.23.0 | CVE List |
All scores
| VulnCheck | 9.3critical CVSS:4.0 | 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 |
| VulnCheck | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.
What each source says
CVE List
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.
NVD (es)
ComfyUI v0.23.0 contiene una vulnerabilidad de deserialización insegura en el nodo LoadTrainingDataset que permite a atacantes remotos no autenticados ejecutar código Python arbitrario al subir un archivo pickle manipulado y activar su deserialización. Los atacantes pueden subir un archivo shard_*.pkl malicioso a través del endpoint POST /upload/image no autenticado y luego poner en cola un grafo de flujo de trabajo a través de POST /prompt haciendo referencia al archivo subido, haciendo que torch.load deserialice la carga útil pickle controlada por el atacante usando __reduce__ y ejecute comandos arbitrarios como el usuario del proceso de ComfyUI.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-68771 changed 2026-11-08 | CVE Terms of Use |
| NVD | CVE-2026-68771 changed 2026-10-23 | Public domain |