{
  "id": "CVE-2026-68771",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-68771",
  "published_at": "2026-07-31T21:16:09.97Z",
  "title": "ComfyUI 0.23.0 Unauthenticated RCE via LoadTrainingDataset Pickle Deserialization",
  "vendor": "Comfy-Org",
  "product": "ComfyUI",
  "cvss": {
    "score": 9.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": {
    "created_at": "2026-08-03T18:22:07Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": 2.9,
    "repo": "0xdak/CVE-2026-68771_exploit",
    "source": "github"
  },
  "poc_repo_count": 2,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-502",
  "cvss_by_source": {
    "cna": 9.8
  },
  "repos": [
    {
      "repo": "0xdak/CVE-2026-68771_exploit",
      "url": "https://github.com/0xdak/CVE-2026-68771_exploit",
      "created_at": "2026-08-03T18:22:07Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2019-12-10T17:07:10Z"
    },
    {
      "repo": "Oscar-Collado/comfyui-CVE-2026-68771-PoC",
      "url": "https://github.com/Oscar-Collado/comfyui-CVE-2026-68771-PoC",
      "created_at": "2026-09-21T08:17:05Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2021-03-05T12:06:06Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "Comfy-Org",
        "product": "ComfyUI",
        "ranges": [
          "\u003c= 0.23.0"
        ],
        "fixed_in": null
      }
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/Comfy-Org/ComfyUI/pull/14543"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/Comfy-Org/ComfyUI/commit/94ee49b1612824366a8631ea069b2a1fa5c73720"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [
    {
      "method": "POST",
      "path_template": "/prompt",
      "content_type": "application/json",
      "ports": [
        8188
      ],
      "protocol": "http",
      "repos": [
        "0xdak/CVE-2026-68771_exploit",
        "Oscar-Collado/comfyui-CVE-2026-68771-PoC"
      ],
      "repo_count": 2,
      "confidence": 0.7,
      "evidence": [
        "0xdak/CVE-2026-68771_exploit/exploit.py:69",
        "Oscar-Collado/comfyui-CVE-2026-68771-PoC/README.md:195"
      ]
    },
    {
      "method": "POST",
      "path_template": "/upload/image",
      "body_markers": [
        "image=@shard_0000.pkl;type=application/octet-stream",
        "type=output",
        "subfolder=cve_test"
      ],
      "content_type": "multipart/form-data",
      "ports": [
        8188
      ],
      "protocol": "http",
      "repos": [
        "0xdak/CVE-2026-68771_exploit",
        "Oscar-Collado/comfyui-CVE-2026-68771-PoC"
      ],
      "repo_count": 2,
      "confidence": 0.7,
      "evidence": [
        "0xdak/CVE-2026-68771_exploit/exploit.py:54",
        "Oscar-Collado/comfyui-CVE-2026-68771-PoC/README.md:177"
      ]
    },
    {
      "method": "GET",
      "path_template": "/object_info/LoadTrainingDataset",
      "ports": [
        8188
      ],
      "protocol": "http",
      "repos": [
        "0xdak/CVE-2026-68771_exploit"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "0xdak/CVE-2026-68771_exploit/README.md:59"
      ]
    },
    {
      "method": "GET",
      "path_template": "/system_stats",
      "ports": [
        8188
      ],
      "protocol": "http",
      "repos": [
        "0xdak/CVE-2026-68771_exploit"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "0xdak/CVE-2026-68771_exploit/README.md:57"
      ]
    }
  ],
  "rules": []
}
