Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-56671— ComfyUI: Path traversal in /experiment/models/preview allows arbitrary image file read

Quick assessment

Affected
Comfy-Org ComfyUI
Exploitation
Public or AI PoC available; prioritize validation
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

ComfyUI 是一个模块化的扩散模型图形用户界面(GUI)、API 和后端,采用图/节点式界面设计。在版本 0.28.0 之前, 中的 函数将一个不受限制的文件名路由捕获结果直接拼接到用户选择的模型目录中,且未进行目录包含性检查(containment check)。这导致未认证的远程攻击者可以通过路径遍历、编码后的路径遍历、绝对路径或无限制的 参数,读取可被图像解码的文件,并枚举主机上的路径信息。 具体来说, (位于 )使用 构建路径,其中 是一个不受限制的路由捕获参数 。攻击者可通过 literal 形式的

CVSS 7.5 · High EPSS 0.97% · P61

Affected Version Matrix 1

VendorProduct Version RangeStatus
Comfy-Org ComfyUI < 0.28.0 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-56671

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
ComfyUI: Path traversal in /experiment/models/preview allows arbitrary image file read
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
对路径名的限制不恰当(路径遍历)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
Comfy-Org ComfyUI < 0.28.0 -

II. Public POCs for CVE-2026-56671

# POC Description Source Link Shenlong Link
AI-Generated POC Premium
Qwen3.6-35B-A3B · 8207 chars
Pro+ exclusive includes:
Vulnerability reproduction recording (real sandbox build + trigger, exclusive)
In-depth vulnerability mechanism
Trigger conditions & impact
Full executable POC code
Exploit chain & mitigation
POC zip download
100+ AI POC generations per month

III. Intelligence Information for CVE-2026-56671

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-56671 (1)

Vendor Advisories for CVE-2026-56671 (1)

Other References for CVE-2026-56671 (1)

Same Patch Batch · Comfy-Org · 2026-07-31 · 5 CVEs total

CVE-2026-68771 9.8 CRITICAL ComfyUI 0.23.0 Unauthenticated RCE via LoadTrainingDataset Pickle Deserialization
CVE-2026-56670 8.2 HIGH ComfyUI: Stored XSS via SVG file upload on the /view endpoint
CVE-2026-56672 8.2 HIGH ComfyUI: Stored XSS via /userdata/{file} due to Missing Content-Type Sanitization
CVE-2026-56673 7.5 HIGH ComfyUI: Path traversal in LoadImage via the /prompt API allows arbitrary file existence p

IV. Related Vulnerabilities

V. Comments for CVE-2026-56671

No comments yet


Leave a comment