top of page
perceptive_background_267k.jpg

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 unre…

Published:

30 July 2026 at 22:00:00

Alert date:

31 July 2026 at 07:02:41

Source:

nvd.nist.gov

Click to open the original link from this advisory

Web Technologies, Emerging Technologies

CVE-2026-56671 is a path traversal vulnerability in ComfyUI versions prior to 0.28.0 affecting the get_model_preview function in app/model_manager.py. The vulnerability allows unauthenticated remote attackers to read image-decodable files outside the intended model directory by supplying unsanitized filenames including literal ../, percent-encoded traversal sequences, or absolute paths via an unrestricted route capture. The path was constructed using os.path.join(folder, filename) without any containment check, and the path_index parameter was also unbounded, enabling host path enumeration via error messages. Disclosed files are limited to those decodable by Pillow (re-encoded as WEBP), but the bug also serves as a file-existence oracle and leaks internal path information. The issue has been patched in ComfyUI version 0.28.0. Users are strongly advised to upgrade immediately to mitigate unauthorized file disclosure risks.

Technical details

Mitigation steps:

Affected products:

ComfyUI

Related links:

Related CVE's:

Related threat actors:

IOC's:

This article was created with the assistance of AI technology by Perceptive.

© 2025 by Perceptive Security. All rights reserved.

email: info@perceptivesecurity.com

Disclaimer: Deze website toont informatie afkomstig van externe bronnen. Perceptive aanvaardt geen verantwoordelijkheid voor de inhoud, juistheid of volledigheid van deze informatie.

bottom of page