Live Exposure Defense: From CVE to Confirmed Exposure in 12 Hours – See more

New CVE Detected

CVE-2026-68771 – Unauthenticated RCE via Pickle Deserialization – ComfyUI ≤ v0.23.0

Be the first to know when new zero-days emerge:

Summary

CVE-2026-68771 is a critical unauthenticated remote code execution (RCE) vulnerability affecting ComfyUI v0.23.0 and all earlier versions, stemming from unsafe pickle deserialization in the LoadTrainingDataset built-in node (CWE-502). With a CVSS 4.0 score of 9.3 (CRITICAL) and no authentication, user interaction, or special conditions required, any attacker with network access to an exposed ComfyUI instance can achieve full arbitrary code execution on the host server.

Technical details

  • Root cause: The LoadTrainingDataset node in comfy_extras/nodes_dataset.py calls torch.load() without the weights_only=True safety flag. On affected PyTorch versions where weights_only defaults to False, this permits unrestricted pickle deserialization of attacker-controlled .pkl files, allowing arbitrary Python objects — including malicious __reduce__ payloads — to be instantiated during loading.
  • Attack vector: Fully network-accessible, requiring zero authentication across both steps of the exploit chain.
  • Trigger conditions: Two sequential unauthenticated HTTP requests to the ComfyUI API are sufficient: (1) upload a crafted shard_*.pkl file via POST /upload/image (no authentication required), then (2) queue a workflow graph via POST /prompt that references the uploaded file, causing torch.load() to deserialize the malicious pickle payload.
  • Impact: Arbitrary Python code executes as the ComfyUI process user, enabling full host compromise — including credential theft, exfiltration of AI model weights and workflows, cryptominer installation, and lateral movement within the hosting environment.

Affected software

  • ComfyUI — all versions from 0 through v0.23.0 (inclusive)

Severity

CVSS v3.1 base score: 9.8 (CRITICAL)
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Mitigation and recommended actions

  • Immediate — patch: Upgrade ComfyUI to the latest available release. The fix was delivered in pull request #14543 ("harden: load training-dataset shards with weights_only=True", merged June 18, 2026, commit 94ee49b), which restricts torch.load() deserialization in comfy_extras/nodes_dataset.py to safe tensor-compatible data only.
  • If immediate patching is not feasible: Enforce network-layer access controls to ensure that the /upload/image and /prompt HTTP endpoints are not reachable from untrusted networks. Place ComfyUI behind a reverse proxy with authentication enforcement. ComfyUI should never be directly exposed to the public internet without authentication controls, as both exploit endpoints are unauthenticated by default.

IONIX Status

The IONIX research team is tracking ongoing exploitation attempts and recommends immediate patching. Potentially affected assets are outlined in this post.

References

Are you exposed?

Get a free report of your organization’s exposure to this CVE and threat

How IONIX’s External Exposure Management Platform Detects and Validates
Zero-Days to Shrink MTTR

1

Map your entire attack surface (continously)

IONIX uses multi-factor discovery methods, including DNS analysis, certificate mapping, metadata inspection, and more, to automatically map every internet-facing asset across your environment. This includes cloud instances, third-party platforms, shadow IT, and even forgotten infrastructure that traditional tools miss.

2

Monitor for new CVEs

Dozens of threat intel feeds using agentic technology are continuously analyzed to detect the appearance of proof-of-concept code, exploit kits, and indicators of active targeting. IONIX goes further by applying AI to proactively evaluate whether emerging vulnerabilities are likely to be exploited, even before PoCs go public.

3

Identify Potential External Exposures

Not all CVEs matter. IONIX filters vulnerabilities by asking attacker-centric questions: Can it be reached from the internet? Does it require authentication? Is it being exploited in the wild? This dramatically reduces noise and focuses teams on threats that can actually be weaponized.

4

Create Safe, Scalable Exploit Validations

IONIX transforms real-world PoCs into safe, non-intrusive test payloads that can be run in production environments without disruption. These simulations are precisely targeted to the systems that are vulnerable, ensuring rapid validation without unnecessary load.

5

Execute Exploit Validations

By combining context about software stack, versioning, exposure status, and reachability, IONIX ensures that only the right payloads are executed against the right assets, maximizing efficiency and minimizing risk.

6

Drive Fast and Actionable Remediation

Results are routed through integrations with ticketing, SOAR, and SIEM tools. Issues are written in plain language, bundled into remediation clusters, and prioritized based on asset criticality, exploitability, and blast radius. This shortens mean time to remediation (MTTR) and empowers teams to act with confidence.

Are you exposed?

Get a free report of your organization’s exposure to this CVE and threat

Subscribe to Threat Center RSS

Copy/paste the link below into your preferred RSS reader or follow these instructions to subscribe to Slack alerts.

Get Real-Time CVE Alerts to Your Email

Be the first to know when new zero-days emerge