CVE-2024-21576CWE-94

ComfyUI-Bmad-Nodes is vulnerable to Code Injection

Critical · published December 13, 2024

CVSS v4.0
10.0
EPSS
1%
Percentile
46.3
In the wild
Unconfirmed
What it is

🚨 A sneaky validation bypass in ComfyUI-Bmad-Nodes allows an attacker to execute arbitrary code just by injecting a crafted string! 🔥 Think of this like a restaurant that serves a delicious dish but forgets to check the ingredients — anyone can slip in something harmful without the chef knowing! If exploited, this vulnerability allows attackers to take control of the server, potentially leading to data breaches, unauthorized access, or complete server compromise. It's a classic case of a recipe gone horribly wrong, where the consequences could be absolutely devastating for your application.

Put simply

Think of this like a restaurant that serves a delicious dish but forgets to check the ingredients — anyone can slip in something harmful without the chef knowing! This code injection vulnerability arises from the use of `eval` in the BuildColorRangeHSVAdvanced, FilterContour, and FindContour nodes, which processes input without proper validation, allowing crafted strings to execute arbitrary code on the server.

What to do

If exploited, this vulnerability allows attackers to take control of the server, potentially leading to data breaches, unauthorized access, or complete server compromise. It's a classic case of a recipe gone horribly wrong, where the consequences could be absolutely devastating for your application. To mitigate this risk, update ComfyUI-Bmad-Nodes to the latest version as soon as possible. Additionally, review your workflows to ensure no untrusted input can be processed. Implement stricter validation checks to block unauthorized code execution. You've got this! Implement these fixes, and you'll be well on your way to securing your application. 🛡️

The record
Technical detail
CVSS v4.0
10.0 · CRITICAL
Vector
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
EPSS
0.00566 · 46.3th percentile
Weakness
CWE-94 · Improper Control of Generation of Code ('Code Injection')
Published
2024-12-13T11:17Z
EPSS history
Timeline
  • 13 DEC 11:17Z
    ComfyUI-Bmad-Nodes is vulnerable to Code Injection
    cvelistv5