CVE-2024-21574 Code injection in ComfyUI-Manager

Critical 10.0 Published Updated

Attackers can achieve remote code execution by sending a crafted POST request to the custom node installation endpoint due to missing input validation.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2024-21574?

CVE-2024-21574 is a critical code injection vulnerability in ltdrdata ComfyUI-Manager, published on 12 Dec 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-94

Which versions are affected by CVE-2024-21574?

How do I fix CVE-2024-21574?

No fix has been published for CVE-2024-21574 yet. Limit exposure of the affected software until one is available.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2024-21574 being exploited?

There is no known exploitation of CVE-2024-21574 in the wild and no public exploit code.

Sources

Also known as GHSA-7p9r-9x76-5h9r.

Is CVE-2024-21574 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free