ZeroHour

CVE-2026-92816

mass

Arbitrary File Write via Path Traversal in ComfyUI Dataset Save Nodes

CVSS 4.0
8.5 high
EPSS
Published
()
Modified
AI analysis

ComfyUI before 0.30.0 fails to sanitize the folder_name parameter in its dataset save nodes, allowing path traversal (CWE-22) so that files can be written to arbitrary locations outside the intended output directory. An attacker triggers the flaw by crafting a malicious workflow that the victim loads, which requires user interaction but no privileges. By writing attacker-controlled content to sensitive locations, the attacker can achieve code execution through modified startup files or package initializers. Anyone running an affected ComfyUI version who loads workflows from untrusted sources is at risk, which is significant given ComfyUI's large community of shared workflows. No public proof-of-concept is known, the issue is not in CISA KEV, and exploitation has not been observed in the wild.

What to do: Upgrade ComfyUI to 0.30.0 or later. Treat workflow files from untrusted or community sources as untrusted input, and audit systems for unexpected files written outside the output directory as well as tampered startup scripts or package __init__ files. Where immediate patching is not possible, avoid loading third-party workflows on affected versions.

Affected
Comfy-Org ComfyUIbefore 0.30.0
Estimated exposure
mass≈ millions of cumulative installs (one of the most widely used open-source generative-AI interfaces), with only a few thousand instances internet-exposed — ComfyUI is among the most popular node-based generative-AI interfaces (tens of thousands of GitHub stars and millions of cumulative downloads across desktop/portable distributions), while public internet scans typically show only low…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

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.

Weakness
CWE-22
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

In the news

No ingested article mentions this CVE yet.