# CVE-2024-21576: ComfyUI-Bmad-Nodes is vulnerable to Code Injection.

- Severity: Critical 10.0 (CVSS:4.0, scored by snyk) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.57%, higher than 48% of CVEs (2026-12-01)
- Published: 2024-12-13T11:17:00.945Z
- Modified: 2026-06-17T07:09:44.120Z
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: snyk

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

(As written by CVE List.)

## Affected

- bmad4ever ComfyUI-Bmad-Nodes: before *

## Every score

- snyk: CVSS:4.0 10.0 Critical `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`
- snyk: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`

## References

- <https://github.com/bmad4ever/comfyui_bmad_nodes/blob/392af9490cbadf32a1fe92ff820ebabe88c51ee8/cv_nodes.py#L1814>

## Sources

- CVE List: [CVE-2024-21576](https://www.cve.org/CVERecord?id=CVE-2024-21576), CVE Terms of Use, modified 2024-12-23
- NVD: [CVE-2024-21576](https://nvd.nist.gov/vuln/detail/CVE-2024-21576), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-21576 · Whole record: https://cve.day/CVE-2024-21576.json · Rebuilt by cve.day 2026-11-25T22:58:50.086Z
