CVE-2025-6107 comfyanonymous comfyui utils.py set_attr dynamically-determined object attributes
Remote attackers can exploit dynamic attribute setting in ComfyUI to potentially execute arbitrary code, requiring high complexity and permissions.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2025-6107?
CVE-2025-6107 is a low-severity code injection vulnerability in comfyanonymous comfyui, published on 16 Jun 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
A vulnerability was found in comfyanonymous comfyui 0.3.40. It has been classified as problematic. Affected is the function set_attr of the file /comfy/utils.py. The manipulation leads to dynamically-determined object attributes. It is possible to launch the attack remotely. The complexity of an attack is rather high. The exploitability is told to be difficult. The exploit has been disclosed to the public and may be used. The vendor was contacted early about this disclosure but did not respond in any way.
Which versions are affected by CVE-2025-6107?
How do I fix CVE-2025-6107?
No fix has been published for CVE-2025-6107 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-2025-6107 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-6107 exists.
Sources
Also known as GHSA-cq2m-wxm4-pqr4.