CVE-2024-21574: The issue stems from a missing validation of the pip field in a POST request sent to the /customnode/install endpoint used to install custom nodes...

10.0 CVSS

Description

The issue stems from a missing validation of the pip field in a POST request sent to the /customnode/install endpoint used to install custom nodes which is added to the server by the extension. This allows an attacker to craft a request that triggers a pip install on a user controlled package or URL, resulting in remote code execution (RCE) on the server.

Classification

CVE ID: CVE-2024-21574

CVSS Base Severity: CRITICAL

CVSS Base Score: 10.0

Affected Products

Vendor: ltdrdata

Product: ComfyUI-Manager

Exploit Prediction Scoring System (EPSS)

EPSS Score: 0.04% (probability of being exploited)

EPSS Percentile: 11.48% (scored less or equal to compared to others)

EPSS Date: 2025-02-04 (when was this score calculated)

References

https://github.com/ltdrdata/ComfyUI-Manager/commit/ffc095a3e5acc1c404773a0510e6d055a6a72b0e
https://github.com/ltdrdata/ComfyUI-Manager/blob/ffc095a3e5acc1c404773a0510e6d055a6a72b0e/glob/manager_server.py#L798

Timeline