Impact
The get_model_preview function in ComfyUI's app/model_manager.py contains a path traversal flaw that allows an attacker to craft a request to the Model Preview Endpoint and read arbitrary files from the server's filesystem. This vulnerability can be exploited remotely without authentication, potentially exposing sensitive data or configuration files. The weakness is described by CWE-22.
Affected Systems
ComfyUI versions up to and including 0.13.0 are affected.
Risk and Exploitability
The CVSS score of 5.3 indicates moderate severity. An attacker can exploit the flaw remotely by sending a crafted request to the Model Preview Endpoint, leveraging the path traversal to access files outside the intended directory. Although authentication is not required, the exploit is limited to files accessible by the application process. The EPSS score is not available, and the vulnerability is not listed in CISA's KEV catalog.
OpenCVE Enrichment