Skip to main content

ComfyUI Segment Anything EUVDEUVD-2026-98277

| CVE-2026-108962 MEDIUM
Code Injection (CWE-94)
2026-10-13 VulDB GHSA-3v23-c7fx-q62r
5.3
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft malicious GroundingDINO config file
  2. Delivery
    Deliver via shared workflow or model pack
  3. Exploit
    Victim loads config in node
  4. Execution
    SLConfig._file2dict evaluates embedded code
  5. Impact
    Arbitrary 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).

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

comfyui_segment_anything ab6395596399d5048639cdab7e44ec9fae857a93

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

Vendor (VulDB) PRIMARY 5.3 MEDIUM
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
vuln.today AI 7.8 HIGH

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.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulDB).

CVSS VectorVendor: VulDB

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

EPSS Score
0.4%
Top 68% exploitable
Prevalence
Low
niche ComfyUI custom node, AI-art hobbyist/self-hosted footprint only
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.4%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

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.

CVE-2026-92816 HIGH POC
8.5 Sep 16

Arbitrary file write via path traversal in ComfyUI before 0.30.0 lets an attacker place attacker-controlled content anyw

CVE-2024-12882 HIGH POC
7.5 Mar 20

comfyanonymous/comfyui version v0.2.4 suffers from a non-blind Server-Side Request Forgery (SSRF) vulnerability. Rated h

CVE-2024-10099 MEDIUM POC
6.1 Oct 17

A stored cross-site scripting (XSS) vulnerability exists in comfyanonymous/comfyui version 0.2.2 and possibly earlier. R

CVE-2026-68771 CRITICAL
9.3 Jul 31

Remote code execution in ComfyUI v0.23.0 (and all prior 0.x releases) lets unauthenticated attackers run arbitrary Pytho

CVE-2026-56672 HIGH
8.2 Jul 31

Stored cross-site scripting in ComfyUI (Comfy-Org) before 0.28.0 lets an attacker upload HTML or SVG to the per-user use

CVE-2026-56670 HIGH
8.2 Jul 31

Stored cross-site scripting in ComfyUI before 0.28.0 lets an attacker upload a malicious SVG that the /view endpoint ser

CVE-2026-56671 HIGH
7.5 Jul 31

Unauthenticated information disclosure in ComfyUI (comfy-org/comfyui) before 0.28.0 lets remote attackers read arbitrary

CVE-2026-56673 HIGH
7.5 Jul 31

Path traversal arbitrary file read in ComfyUI (comfy-org) before 0.28.0 lets remote unauthenticated attackers probe arbi

CVE-2026-6591 LOW POC
2.1 Apr 20

Path traversal in ComfyUI up to version 0.13.0 allows authenticated remote attackers to read arbitrary files on the serv

CVE-2026-6590 LOW POC
2.1 Apr 20

Path traversal in ComfyUI up to version 0.13.0 allows authenticated remote attackers to read arbitrary files via manipul

CVE-2026-6589 LOW POC
2.1 Apr 20

Cross-site request forgery (CSRF) in ComfyUI up to version 0.13.0 allows unauthenticated remote attackers to modify appl

CVE-2026-6593 LOW POC
2.0 Apr 20

Cross-site scripting (XSS) in ComfyUI up to version 0.13.0 allows authenticated remote attackers to inject malicious scr

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy