{"id":"CVE-2026-56671","aliases":["CVE-2026-56671"],"related":[],"kind":"vulnerability","state":"published","title":"ComfyUI: Path traversal in /experiment/models/preview allows arbitrary image file read","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"ComfyUI es una GUI modular de modelo de difusión, API y backend con una interfaz de grafo/nodos. Antes de la versión 0.28.0, get_model_preview en app/model_manager.py une una captura de ruta de nombre de archivo sin restricciones a un directorio de modelo seleccionado sin una verificación de contención, permitiendo a un atacante remoto no autenticado usar recorrido, recorrido codificado, rutas absolutas o un path_index ilimitado para leer archivos decodificables como imagen y enumerar rutas de host. get_model_preview (app/model_manager.py) construyó la ruta con os.path.join(folder, filename) donde filename es una captura de ruta {filename:.*} sin restricciones. .. /  literal, %2e%2e%2f codificado en porcentaje y rutas absolutas escaparon del directorio del modelo; path_index también era ilimitado. El archivo objetivo se canaliza a través de Pillow y se recodifica como WEBP, por lo que la divulgación se limita a archivos decodificables como imagen más un oráculo de existencia/enumeración de archivos (y fuga de rutas internas a través de errores de path_index). Este problema está solucionado en la versión 0.28.0.","source":"nvd"}],"published":"2026-07-31T04:21:54.417Z","modified":"2026-10-23T23:10:00.157Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":"< 0.28.0","status":"affected"}],"vendor":"Comfy-Org","product":"ComfyUI","source":"cvelist"}],"references":[{"url":"https://github.com/Comfy-Org/ComfyUI/security/advisories/GHSA-pj59-g5vv-74q4","tags":["x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/Comfy-Org/ComfyUI/pull/14734","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/Comfy-Org/ComfyUI/releases/tag/v0.28.0","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-07-31T23:18:53.402Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-56671","url":"https://www.cve.org/CVERecord?id=CVE-2026-56671","licence":"CVE Terms of Use","modified":"2026-07-31T23:19:15.408Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-56671","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-56671","licence":"Public domain","modified":"2026-10-23T23:10:00.157Z"}],"updatedAt":"2026-11-25T22:59:30.684Z","epss":{"score":0.00661,"percentile":0.52899,"date":"2026-12-01T12:00:22.000Z"}}