Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious GroundingDINO config file
-
DeliveryDeliver via shared workflow or model pack
-
ExploitVictim loads config in node
-
ExecutionSLConfig._file2dict evaluates embedded code
-
ImpactArbitrary code execution on host
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the victim to load an attacker-controlled GroundingDINO model/config file that is processed by SLConfig._file2dict, which evaluates the config file's contents as Python code - so the concrete prerequisite is getting a crafted config into the model-loading path (e.g., via a shared workflow, downloaded model bundle, or supplied config argument). Limiting factors: exploitation depends on user interaction (the victim must initiate loading of the malicious config, UI:P), there is no network service listening for unauthenticated attackers despite PR:N, and impact is confined to the environment running the comfyui_segment_anything node rather than any remote scope change. |
| Impact | This is a code-injection flaw (CWE-94) in the SLConfig._file2dict routine of storyicon's comfyui_segment_anything custom node, a pattern inherited from GroundingDINO/mmcv-style config loaders that evaluate config-file contents as Python. The only severity signal present is a single-source VulDB CVSS 4.0 base score of 5.3 (medium); there is no EPSS score, no CISA KEV listing, and no indication of public exploit code in the provided data, so by the precision rules this is 'no public exploit identified at time of analysis.' The supplied vector (AV:N/AC:L/PR:N/UI:P/VC:L/VI:L/VA:L) is internally tense: it marks the flaw unauthenticated and network-reachable yet rates impact as only Low/Low/Low, which understates a code-injection primitive that normally yields full arbitrary code execution on the host running ComfyUI - the impact metrics and the CWE conflict, and I weight the CWE more heavily. Critically, exploitation is gated by user interaction (UI:P) because a victim must load an attacker-crafted model/config file, which makes this a targeted, social-engineering-dependent issue rather than a mass-exploitable remote RCE. Net: real but conditional priority - treat as a supply-chain/untrusted-config risk for the small population running this node, not a drop-everything internet-facing emergency. Key gaps: no affected/fixed version (rolling release), no vendor response, and single-source reporting - verify independently before acting on the CVSS numbers. |
| Exploit ScenarioDerived | An attacker distributes a malicious GroundingDINO configuration file (e.g., bundled with a shared ComfyUI workflow, model pack, or 'community node config'), and a victim loads it through the segment-anything node. When SLConfig._file2dict parses the config, embedded Python is evaluated and the attacker's code runs in the victim's ComfyUI process. No public exploit was identified in the provided data, but the pattern is trivially weaponizable and exploitation hinges on the victim choosing to load the crafted config (UI:P). |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 13, 2026
Code injection in storyicon's comfyui_segment_anything custom node allows arbitrary Python code to run inside the victim's ComfyUI environment when a crafted GroundingDINO configuration is loaded through the SLConfig._file2dict routine in local_groundingdino/util/slconfig.py. Because the loader evaluates config-file contents as Python, an attacker who can place or share a malicious config (for example bundled with a shared workflow or downloaded model set) can execute code with the privileges of the ComfyUI process; the independent assessment rates this AV:L/UI:R with high confidentiality, integrity and availability impact confined to the host running the node. No public exploit was identified at time of analysis, and no vendor-released patch is available - the project was notified through GitHub issue #114 but has not responded.
RemediationAI
No vendor-released patch identified at time of analysis: the maintainer was informed via GitHub issue #114 (https://github.com/storyicon/comfyui_segment_anything/issues/114) but has not responded, and the rolling-release model means there is no fixed version to cite; monitor the repository at https://github.com/storyicon/comfyui_segment_anything/ and the VulDB advisory https://vuldb.com/vuln/416781 for an update, and apply the upstream fix once a patch or commit lands. Until then, use compensating controls aimed at the config-loading path: only load GroundingDINO models and configs from trusted, self-controlled sources (avoid community-shared workflows and model bundles with embedded config files), inspect any local_groundingdino config for executable Python statements such as imports, eval, exec or os/subprocess calls before loading it, and keep the ComfyUI models/config directories writable only by a trusted account, with a trade-off of reduced convenience when importing third-party packs. Because exploitation grants code execution as the ComfyUI user, run the node inside a container or VM with least privilege, no access to host credentials or cloud tokens, and constrained network egress; the side effect is that some model downloads and remote API-based nodes may stop working. Restricting who may supply model files into the loading path is the most effective near-term mitigation, but it does not remove the underlying code-injection sink, so isolation must be maintained until a patch is available.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The affected code lives in SLConfig._file2dict, part of a GroundingDINO/mmcv-style configuration loader that reads Python-syntax config files and evaluates their contents rather than parsing them as inert data. This is the root cause class described by CWE-94 (Improper Control of Generation of Code / Code Injection): untrusted input reaches an eval/exec-style sink, so a config file can carry arbitrary Python statements that run at load time. The CPE cpe:2.3:a:storyicon:comfyui_segment_anything:*:*:*:*:*:*:*:* indicates that all shipped revisions are potentially affected, with no version boundary because the project follows rolling releases. The underlying technology chain is ComfyUI (the node/graph execution front end) plus GroundingDINO model loading via the segment-anything integration; the vulnerable component is specifically the config parsing step for GroundingDINO model loading, which is reachable whenever a model bundle or config argument is supplied. The CVSS:4.0 base vector shows AV:N/PR:N with UI:P, while the independent assessment recasts it as CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H, i.e. the practical prerequisite is user interaction - the victim must initiate loading of the malicious config - and impact is scoped to the environment running the node rather than a network-exposed service.
Know when Comfyui gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
Code injection via an attacker-supplied config file yields full code execution (C/I/A:H), but requires the victim to load that file, so AV:L and UI:R rather than a network-service vector.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
DescriptionCVE.org
A vulnerability has been found in storyicon comfyui_segment_anything up to ab6395596399d5048639cdab7e44ec9fae857a93. Affected by this issue is the function SLConfig._file2dict of the file local_groundingdino/util/slconfig.py of the component GroundingDINO Model Loading. Such manipulation of the argument config leads to code injection. It is possible to launch the attack remotely. This product takes the approach of rolling releases to provide continious delivery. Therefore, version details for affected and updated releases are not available. The project was informed of the problem early through an issue report but has not responded yet.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Arbitrary file write via path traversal in ComfyUI before 0.30.0 lets an attacker place attacker-controlled content anyw
comfyanonymous/comfyui version v0.2.4 suffers from a non-blind Server-Side Request Forgery (SSRF) vulnerability. Rated h
A stored cross-site scripting (XSS) vulnerability exists in comfyanonymous/comfyui version 0.2.2 and possibly earlier. R
Remote code execution in ComfyUI v0.23.0 (and all prior 0.x releases) lets unauthenticated attackers run arbitrary Pytho
Stored cross-site scripting in ComfyUI (Comfy-Org) before 0.28.0 lets an attacker upload HTML or SVG to the per-user use
Stored cross-site scripting in ComfyUI before 0.28.0 lets an attacker upload a malicious SVG that the /view endpoint ser
Unauthenticated information disclosure in ComfyUI (comfy-org/comfyui) before 0.28.0 lets remote attackers read arbitrary
Path traversal arbitrary file read in ComfyUI (comfy-org) before 0.28.0 lets remote unauthenticated attackers probe arbi
Path traversal in ComfyUI up to version 0.13.0 allows authenticated remote attackers to read arbitrary files on the serv
Path traversal in ComfyUI up to version 0.13.0 allows authenticated remote attackers to read arbitrary files via manipul
Cross-site request forgery (CSRF) in ComfyUI up to version 0.13.0 allows unauthenticated remote attackers to modify appl
Cross-site scripting (XSS) in ComfyUI up to version 0.13.0 allows authenticated remote attackers to inject malicious scr
EUVD-2026-98277
GHSA-3v23-c7fx-q62r
NVD
CVE.org
EPSS
VulDB
Exploit-DB