PoC Monitor
← All CVEs
CVE-2026-68771published 31 Jul 2026 21:16 UTCData: JSON · API

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.

First public PoC 2.9 daysafter publication · 3 Aug 2026
Public PoCs22 on GitHub
CVSS9.8critical · scored by CNA · CWE-502
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

Comfy-Org ComfyUI
  • <= 0.23.0

Mitigation

The record names no fix. Check the vendor advisory below.

References

Timeline

Days relative to CVE publication
-2t=0+2+4+6+8CVE published31 Jul 2026 · t = 0First public PoC3 Aug 2026 · t+2.9d

First 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
RepositoryCreatedStarsAssessment
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 repos

POST /upload/image

Body markers
image=@shard_0000.pkl;type=application/octet-stream type=output subfolder=cve_test in multipart/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.

POST /prompt
(?i)^/prompt(?:[?#].*)?$
POST /upload/image
(?i)^/upload/image(?:[?#].*)?$
GET /object_info/LoadTrainingDataset
(?i)^/object_info/LoadTrainingDataset(?:[?#].*)?$
GET /system_stats
(?i)^/system_stats(?:[?#].*)?$

Suricata

Template generated from PoC characteristics. Review before deploying.

POST /prompt
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;)
POST /upload/image
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;)
GET /object_info/LoadTrainingDataset
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;)
GET /system_stats
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.

POST /prompt
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
POST /upload/image
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
GET /object_info/LoadTrainingDataset
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
GET /system_stats
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