ComfyUI 0.23.0 Unauthenticated RCE via LoadTrainingDataset Pickle Deserialization
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- No fix listed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-502.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
No fixed version listed by the sources yet.
Timeline
- 2026-10-02 Threatist record created from CVE-2026-68771
- 2026-10-03 Alias added: GHSA-6p72-9j26-4rmx
References
More Comfy-Org vulnerabilities
- TI-2026-62555 ComfyUI before 0.30.0 Path Traversal via dataset save nodes CVSS 4.0HIGH 8.5
- TI-2026-40855 ComfyUI: Path traversal in /experiment/models/preview allows arbitrary image file read CVSS 3.1HIGH 7.5
- TI-2026-40857 ComfyUI: Path traversal in LoadImage via the /prompt API allows arbitrary file existence probing and image exfiltration CVSS 3.1HIGH 7.5
- TI-2026-40856 ComfyUI: Stored XSS via /userdata/{file} due to Missing Content-Type Sanitization CVSS 3.1HIGH 8.2
- TI-2026-40854 ComfyUI: Stored XSS via SVG file upload on the /view endpoint CVSS 3.1HIGH 8.2
Sources
- CVE-2026-68771 · CVE Program
- CVE-2026-68771 · NVD
- FIRST EPSS
- GHSA-6p72-9j26-4rmx · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences