CVE-2026-92816

ComfyUI before 0.30.0 Path Traversal via dataset save nodes

Published Sep 16, 2026 CVSS 4.0 · 8.5 High EPSS < 1% KEV · Not listed
Description
ComfyUI before 0.30.0 fails to sanitize folder_name input in dataset save nodes, allowing attackers to write files to arbitrary paths outside the output directory. Attackers can load a crafted workflow that writes attacker-controlled content to arbitrary locations, enabling code execution through modified startup files or package initializers.

Analysis

AI-generated

Technical impact

ComfyUI versions prior to 0.30.0 fail to sanitize the folder_name parameter used in dataset save nodes, allowing an attacker to supply a crafted workflow that writes arbitrary files outside the intended output directory. The ability to write to system files can be leveraged to modify startup scripts or package initializers, thereby enabling the execution of attacker-controlled code.

Affected Systems

The affected product is Comfy-Org's ComfyUI, all releases before 0.30.0. No specific patch versions are listed, but versions earlier than 0.30.0 are known to be vulnerable.

Risk and Exploitability

The CVSS score of 8.5 indicates a high severity vulnerability, while the EPSS score of less than 1% suggests a low expected exploitation rate. The vulnerability is not listed in the CISA KEV catalog. Based on the description, it is inferred that the attacker must deliver a crafted workflow to a user running ComfyUI, which may require local access or the UI to be exposed over a network. Successful exploitation would enable the attacker to create or overwrite files on the host, potentially leading to remote code execution if system files or startup scripts are modified.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to ComfyUI version 0.30.0 or later, which includes input sanitization.
  • Restrict the file write permissions for the account running ComfyUI to prevent arbitrary file creation in protected directories.
  • Implement validation checks on the folder_name input to reject paths containing traversal sequences or disallowed characters.

Generated by OpenCVE AI on September 18, 2026 at 05:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description ComfyUI before 0.30.0 fails to sanitize folder_name input in dataset save nodes, allowing attackers to write files to arbitrary paths outside the output directory. Attackers can load a crafted workflow that writes attacker-controlled content to arbitrary locations, enabling code execution through modified startup files or package initializers.
Title ComfyUI before 0.30.0 Path Traversal via dataset save nodes
First Time appeared Comfy
Comfy comfyui
Weaknesses CWE-22
CPEs cpe:2.3:a:comfy:comfyui:*:*:*:*:*:*:*:*
Vendors & Products Comfy
Comfy comfyui
References
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.5, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Sep 21, 2026, 3:52 PM
Reserved
Sep 16, 2026, 7:55 PM
Status
Deferred
Published
Sep 16, 2026, 9:17 PM
Modified
Sep 22, 2026, 8:53 PM