CVE-2026-56671 Details
Description
ComfyUI is a modular diffusion model GUI, api and backend with a graph/nodes interface. Prior to 0.28.0, get_model_preview in app/model_manager.py joins an unrestricted filename route capture to a selected model directory without a containment check, allowing an unauthenticated remote attacker to use traversal, encoded traversal, absolute paths, or an unbounded path_index to read image-decodable files and enumerate host paths. get_model_preview (app/model_manager.py) built the path with os.path.join(folder, filename) where filename is an unrestricted {filename:.*} route capture. Literal ../, percent-encoded %2e%2e%2f, and absolute paths all escaped the model directory; path_index was also unbounded. The target file is piped through Pillow and re-encoded as WEBP, so disclosure is limited to image-decodable files plus a file-existence/enumeration oracle (and internal-path leakage via path_index errors). This issue is fixed in version 0.28.0.
A path traversal vulnerability has been identified in ComfyUI versions prior to 0.28.0. The issue arises in the 'get_model_preview' function within 'app/model_manager.py', where user-controlled filenames are joined with model directory paths without proper validation. This flaw enables unauthenticated remote attackers to read image-decodable files from the host filesystem and enumerate paths. The vulnerability exploits unrestricted filename route captures, allowing traversal through literal '../', percent-encoded '../', absolute paths, or unbounded path indices. The exposed files are processed by Pillow and converted to WEBP format, limiting disclosure to image files while also leaking internal path information through 'path_index' errors.
Users can upgrade to ComfyUI version 0.28.0, which addresses the vulnerability by implementing proper path validation to ensure that resolved paths remain within the designated model directory. Additionally, network exposure of the ComfyUI port can be restricted as a temporary measure.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 31, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
Affected Products
No affected product data is available for this CVE.
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 23, 2026 | CVE Translated | [email protected] |
| Aug 1, 2026 | CVE Modified | CISA-ADP |
| Jul 31, 2026 | New CVE Received | [email protected] |