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

Goal: 1000 CNY · Raised: 1336 CNY

100%

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

CVSS 7.5 · High EPSS 0.66% · P48

Affected Version Matrix 1

VendorProductVersion RangeStatus
Comfy-OrgComfyUI< 0.28.0affected
Get alerts for future matching vulnerabilitiesLog 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

VendorProductAffected VersionsCPESubscribe
Comfy-OrgComfyUI < 0.28.0 -

II. Public POCs for CVE-2026-56671

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium
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-687719.8 CRITICALComfyUI 0.23.0 Unauthenticated RCE via LoadTrainingDataset Pickle Deserialization
CVE-2026-566708.2 HIGHComfyUI: Stored XSS via SVG file upload on the /view endpoint
CVE-2026-566728.2 HIGHComfyUI: Stored XSS via /userdata/{file} due to Missing Content-Type Sanitization
CVE-2026-566737.5 HIGHComfyUI: 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