Comfy-Org ComfyUI
ComfyUI: Path traversal in LoadImage via the /prompt API allows arbitrary file existence probing and image exfiltration
ComfyUI is a modular diffusion model GUI, API, and backend with a graph-and-node interface. Prior to 0.28.0, folder_paths.get_annotated_filepath and exists_annotated_filepath join workflow-controlled annotated filenames to a base directory without a containment check, allowing an unauthenticated crafted POST /prompt workflow using LoadImage or sibling nodes to probe arbitrary host paths and exfiltrate image-format files through /view. LoadImage defines a VALIDATE_INPUTS method, which causes the execution engine to skip COMBO (input-directory) validation. Affected nodes include LoadImage, LoadImageMask, LoadImageOutput, LoadAudio, LoadLatent, LoadVideo, and Load3D. This issue is fixed in version 0.28.0.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 0.28.0
Fixed in 0.28.0
Mitigation
Upgrade ComfyUI to 0.28.0 or later.
References
- Vendor advisory github.com/Comfy-Org/ComfyUI/security/advisori…
- Patch github.com/Comfy-Org/ComfyUI/pull/14734
- Release notes github.com/Comfy-Org/ComfyUI/releases/tag/v0.2…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.