Comfy-Org ComfyUI
ComfyUI 0.23.0 Unauthenticated RCE via LoadTrainingDataset Pickle Deserialization
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- <= 0.23.0
Mitigation
The record names no fix. Check the vendor advisory below.
References
- Vendor advisory github.com/Comfy-Org/ComfyUI/pull/14543
- Patch github.com/Comfy-Org/ComfyUI/commit/94ee49b161…
Timeline
Days relative to CVE publicationFirst public PoC 2.9 days after publication; not in CISA KEV. First PoC: 0xdak/CVE-2026-68771_exploit (created 3 Aug 2026, found by us: backfilled).
PoC repositories
Found on GitHub.2 PoCs
PoCs 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| 0xdak/CVE-2026-68771_exploit | 3 Aug 2026 +2.9 d | 1 | PoC |
| Oscar-Collado/comfyui-CVE-2026-68771-PoC | 21 Sep 2026 +51 d | 0 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 2 PoC reposPOST /prompt
- Content-Type
application/json- Ports
- 8188
- Seen in
- 2 repos: 0xdak/CVE-2026-68771_exploit, Oscar-Collado/comfyui-CVE-2026-68771-PoC
- Evidence
- 0xdak/CVE-2026-68771_exploit/exploit.py:69 Oscar-Collado/comfyui-CVE-2026-68771-PoC/README.md:195
POST /upload/image
- Body markers
image=@shard_0000.pkl;type=application/octet-streamtype=outputsubfolder=cve_testinmultipart/form-data- Ports
- 8188
- Seen in
- 2 repos: 0xdak/CVE-2026-68771_exploit, Oscar-Collado/comfyui-CVE-2026-68771-PoC
- Evidence
- 0xdak/CVE-2026-68771_exploit/exploit.py:54 Oscar-Collado/comfyui-CVE-2026-68771-PoC/README.md:177
GET /object_info/LoadTrainingDataset
- Ports
- 8188
- Seen in
- 1 repo: 0xdak/CVE-2026-68771_exploit
- Evidence
- 0xdak/CVE-2026-68771_exploit/README.md:59
GET /system_stats
- Ports
- 8188
- Seen in
- 1 repo: 0xdak/CVE-2026-68771_exploit
- Evidence
- 0xdak/CVE-2026-68771_exploit/README.md:57
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/prompt(?:[?#].*)?$
(?i)^/upload/image(?:[?#].*)?$
(?i)^/object_info/LoadTrainingDataset(?:[?#].*)?$
(?i)^/system_stats(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [8188] (msg:"GG PoC-Monitor CVE-2026-68771 Comfy-Org ComfyUI exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/prompt"; reference:url,poc.griffinguard.io/cve/CVE-2026-68771; classtype:web-application-attack; sid:9179091; rev:1;)
alert http any any -> $HOME_NET [8188] (msg:"GG PoC-Monitor CVE-2026-68771 Comfy-Org ComfyUI exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/upload/image"; http.request_body; content:"image=@shard_0000.pkl|3b|type=application/octet-stream"; http.request_body; content:"type=output"; http.request_body; content:"subfolder=cve_test"; reference:url,poc.griffinguard.io/cve/CVE-2026-68771; classtype:web-application-attack; sid:9794742; rev:1;)
alert http any any -> $HOME_NET [8188] (msg:"GG PoC-Monitor CVE-2026-68771 Comfy-Org ComfyUI exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/object_info/LoadTrainingDataset"; reference:url,poc.griffinguard.io/cve/CVE-2026-68771; classtype:web-application-attack; sid:9392132; rev:1;)
alert http any any -> $HOME_NET [8188] (msg:"GG PoC-Monitor CVE-2026-68771 Comfy-Org ComfyUI exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/system_stats"; reference:url,poc.griffinguard.io/cve/CVE-2026-68771; classtype:web-application-attack; sid:9282642; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: Comfy-Org ComfyUI exploit attempt (CVE-2026-68771)
id: gg-pocmon-cve-2026-68771-9179091
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-68771. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-68771
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/prompt'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.68771
title: Comfy-Org ComfyUI exploit attempt (CVE-2026-68771)
id: gg-pocmon-cve-2026-68771-9794742
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-68771. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-68771
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/upload/image'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.68771
title: Comfy-Org ComfyUI exploit attempt (CVE-2026-68771)
id: gg-pocmon-cve-2026-68771-9392132
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-68771. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-68771
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/object_info/LoadTrainingDataset'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.68771
title: Comfy-Org ComfyUI exploit attempt (CVE-2026-68771)
id: gg-pocmon-cve-2026-68771-9282642
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-68771. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-68771
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/system_stats'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.68771