{"id":"CVE-2026-56671","published":"2026-07-31T04:21:54Z","modified":"2026-07-31T23:19:15Z","title":"ComfyUI: Path traversal in /experiment/models/preview allows arbitrary image file read","vendor":"Comfy-Org","product":"ComfyUI","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00971,"percentile":0.60591,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/Comfy-Org/ComfyUI/security/advisories/GHSA-pj59-g5vv-74q4","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/Comfy-Org/ComfyUI/pull/14734","tags":["x_refsource_MISC"]},{"url":"https://github.com/Comfy-Org/ComfyUI/releases/tag/v0.28.0","tags":["x_refsource_MISC"]}],"priority":{"score":17.4,"factors":[{"name":"EPSS percentile","points":12.12},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"comfy-org","affectedVersions":[{"vendor":"Comfy-Org","product":"ComfyUI","versions":["< 0.28.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-07-31T23:18:53.402759Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-51401","exploited":false,"provenance":"source"}}