CVE-2024-21576 Code injection in ComfyUI-Bmad-Nodes

Critical 10.0 Published Updated

Attackers can execute arbitrary code on the server by injecting crafted strings into specific ComfyUI custom nodes via workflow generation.

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-21576?

CVE-2024-21576 is a critical code injection vulnerability in bmad4ever ComfyUI-Bmad-Nodes, published on 13 Dec 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

ComfyUI-Bmad-Nodes is vulnerable to Code Injection. The issue stems from a validation bypass in the BuildColorRangeHSVAdvanced, FilterContour and FindContour custom nodes. In the entrypoint function to each node, there’s a call to eval which can be triggered by generating a workflow that injects a crafted string into the node. This can result in executing arbitrary code on the server.

Weakness: CWE-94

Which versions are affected by CVE-2024-21576?

How do I fix CVE-2024-21576?

No fix has been published for CVE-2024-21576 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-21576 being exploited?

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

Sources

Also known as GHSA-pmp6-xcw2-wmp6.

Is CVE-2024-21576 in your software?

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

Check your SBOMs for free