---
id: CVE-2026-68771
title: >-
  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 deserial…
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 deserial…
severity: critical
cvss: 9.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-502
published: '2026-07-31'
updated: '2026-09-09'
sourceUpdated: '2026-09-09T20:35:08.537'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-68771'
references:
  - url: 'https://github.com/Comfy-Org/ComfyUI'
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/Comfy-Org/ComfyUI/commit/94ee49b1612824366a8631ea069b2a1fa5c73720
    label: disclosure@vulncheck.com
  - url: 'https://github.com/Comfy-Org/ComfyUI/pull/14543'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/comfyui-unauthenticated-rce-via-loadtrainingdataset-pickle-deserialization
    label: disclosure@vulncheck.com
tags:
  - nvd
  - exploit-available
epss: 0.00781
epssPercentile: 0.54486
exploits:
  github: 2
  githubRepos:
    - 'https://github.com/0xdak/CVE-2026-68771_exploit'
    - 'https://github.com/Oscar-Collado/comfyui-CVE-2026-68771-PoC'
  checkedAt: '2026-09-24T07:53:13.348Z'
exploitAvailable: true
ingestedAt: '2026-09-09T21:22:45.520Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
