Cyber Resilience

CVE-2024-21574

CriticalRCE

Published: 12 December 2024

Published
12 December 2024
Modified
15 April 2026
KEV Added
Patch
CVSS Score v4 10.0 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
EPSS Score 0.1641 95.0th percentile
Risk Priority 30 60% EPSS · 20% KEV · 20% CVSS

Summary

CVE-2024-21574 is a critical-severity Code Injection (CWE-94) vulnerability. Its CVSS base score is 10.0 (Critical).

Operationally, ranked in the top 5.0% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog.

Deeper analysis

CVE-2024-21574 is a critical remote code execution vulnerability in the ComfyUI-Manager extension for ComfyUI. The flaw arises from missing validation of the pip field in POST requests to the /customnode/install endpoint, which the extension registers on the server. An attacker can supply an arbitrary package name or URL, causing the server to execute an unsanitized pip install command and resulting in arbitrary code execution under the privileges of the ComfyUI process.

The vulnerability can be exploited by any unauthenticated remote attacker who can reach the endpoint. Successful exploitation grants full control over the server, including the ability to install malicious Python packages, execute arbitrary commands, and compromise the underlying system or any models and workflows hosted by ComfyUI.

The referenced commit in the ComfyUI-Manager repository (ffc095a3e5acc1c404773a0510e6d055a6a72b0e) addresses the issue by adding validation for the pip field. The current and peak EPSS scores of 0.1641 indicate sustained but not sharply increasing exploitation interest since disclosure. The affected component is commonly used in AI image-generation pipelines, amplifying the potential impact of successful attacks.

EU & UK References

Vulnerability details

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…

more

a request that triggers a pip install on a user controlled package or URL, resulting in remote code execution (RCE) on the server.

CWE(s)

Related Threats

No named actor attribution yet. ATT&CK technique mapping in progress for this CVE.

Affected Assets

Mitigating Controls

Likely Mitigating Controls AI

Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.

addresses: CWE-94

Makes persistent code injection into loaded programs impossible when the executable image itself resides on hardware-protected read-only media.

addresses: CWE-94

Dynamically generated code can be produced and executed inside the isolated chamber, preventing host compromise from code-injection payloads.

addresses: CWE-94

Validates inputs used in dynamic code generation to block injected directives.

addresses: CWE-94

Directly prevents execution of attacker-supplied code written into data memory regions.

References