CVE-2026-92816: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in Comfy-Org ComfyUI
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.
AI Analysis
Technical Summary
ComfyUI before version 0.30.0 fails to properly sanitize the folder_name parameter in dataset save nodes. An attacker can exploit this by loading a crafted workflow that writes attacker-controlled content to arbitrary file system locations outside the designated output directory. This improper limitation of pathname enables path traversal, which can be leveraged to execute arbitrary code through modified startup scripts or package initialization files.
Potential Impact
Successful exploitation allows an attacker with local access and user interaction to write files to arbitrary locations on the file system, potentially leading to arbitrary code execution. This can compromise the integrity and security of the affected system by enabling execution of malicious code during application startup or package initialization.
Mitigation Recommendations
A fix is available in ComfyUI version 0.30.0 and later. Users should upgrade to version 0.30.0 or newer to remediate this vulnerability. Until then, avoid loading untrusted workflows that could exploit this path traversal issue.
CVE-2026-92816: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in Comfy-Org ComfyUI
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.
CVSS v4.0
Score 8.5high
Affected software
Comfy-Org
ComfyUI
pkg:github/comfy-org/ComfyUIRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
ComfyUI before version 0.30.0 fails to properly sanitize the folder_name parameter in dataset save nodes. An attacker can exploit this by loading a crafted workflow that writes attacker-controlled content to arbitrary file system locations outside the designated output directory. This improper limitation of pathname enables path traversal, which can be leveraged to execute arbitrary code through modified startup scripts or package initialization files.
Potential Impact
Successful exploitation allows an attacker with local access and user interaction to write files to arbitrary locations on the file system, potentially leading to arbitrary code execution. This can compromise the integrity and security of the affected system by enabling execution of malicious code during application startup or package initialization.
Mitigation Recommendations
A fix is available in ComfyUI version 0.30.0 and later. Users should upgrade to version 0.30.0 or newer to remediate this vulnerability. Until then, avoid loading untrusted workflows that could exploit this path traversal issue.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-09-16T19:55:03.228Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6aab006555bf5e2cf5231ff4
Added to database: 09/16/2026, 20:47:33 UTC
Last enriched: 09/16/2026, 21:31:57 UTC
Last updated: 09/17/2026, 02:02:50 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.