Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconObtain valid ComfyUI credentials or compromise existing user account
-
DeliveryAuthenticate to ComfyUI instance
-
ExploitAccess LoadImage Node interface
-
InstallInject path traversal sequence in Name parameter
-
C2Send crafted request to folder_paths.get_annotated_filepath
-
ExecuteFunction resolves path outside intended directory
-
ImpactAttacker reads arbitrary file contents
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The vulnerability requires authenticated access to a ComfyUI instance (PR:L). The attacker must have valid credentials or compromise a legitimate user account to interact with the LoadImage Node via the API or web interface. The LoadImage Node must be available and functional in the deployment. No special configuration is required - the vulnerability is present in default ComfyUI installations up to version 0.13.0. The attack is limited to confidentiality of files accessible to the ComfyUI process user; data exfiltration relies on successful path traversal and the ability to read file contents, not modify or delete them. Systems with properly configured filesystem permissions that restrict the ComfyUI process to a minimal set of directories may mitigate the practical impact, though the underlying vulnerability remains. |
| Impact | The CVSS score of 4.3 reflects a low-to-moderate risk profile with a network attack vector, low complexity, and low privileges required (PR:L), limiting scope to the confidentiality of files. However, CVSS does not capture the full risk context: the publicly available exploit code (POC=YES) significantly increases real-world exploitation likelihood. The EPSS metric is not provided, preventing probabilistic exploitation assessment. The 'E:P' notation in the vector (Exploit: Proof-of-Concept) and 'RL:X' (Release Level: Unavailable) suggest the vendor has not released a patch. The requirement for authenticated access (PR:L) substantially limits attack surface compared to unauthenticated vulnerabilities, as attackers must first gain valid credentials or compromise a legitimate user. The confidentiality-only impact (C:L/I:N/A:N) means data exfiltration is possible but system integrity and availability remain protected. Real-world priority depends on deployment context: in air-gapped or internally-hosted ComfyUI instances with restricted user access, risk is lower; in shared SaaS or multi-tenant deployments, risk is elevated due to easier credential compromise. |
| Exploit ScenarioDerived | An authenticated user or attacker with valid ComfyUI credentials crafts a malicious request to the LoadImage Node, injecting a path traversal sequence (e.g., '../../../etc/passwd') into the Name argument. The vulnerable folder_paths.get_annotated_filepath function fails to sanitize this input and resolves the path to a sensitive file outside the intended image directory, allowing the attacker to read the file contents and exfiltrate sensitive data such as configuration files, API keys, or source code. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 20, 2026
Path traversal in ComfyUI up to version 0.13.0 allows authenticated remote attackers to read arbitrary files on the server by manipulating the Name argument in the LoadImage Node's folder_paths.get_annotated_filepath function. The vulnerability has publicly available exploit code and affects the image loading functionality, enabling attackers with valid credentials to access sensitive files outside intended directories.
RemediationAI
Upgrade ComfyUI to a version newer than 0.13.0 once a patched release is available. As of the time of analysis, the vendor (ComfyUI developers) has not responded to the early disclosure notification and no official patch version has been confirmed. In the interim, implement the following compensating controls: restrict network access to ComfyUI instances to trusted internal networks only using firewall rules or VPN access, enforce strong authentication and session management to reduce the likelihood of credential compromise, and disable or restrict the LoadImage Node feature if image loading is not critical to your workflow. Alternatively, run ComfyUI in a sandboxed or containerized environment with filesystem restrictions to limit the scope of path traversal attacks. Monitor the official ComfyUI GitHub repository (https://github.com/comfyanonymous/ComfyUI) and the VulDB reference (https://vuldb.com/vuln/358226) for patch availability announcements. Apply patches immediately upon release, as the combination of publicly available exploit code and network accessibility creates significant residual risk.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
ComfyUI is a node-based UI framework for Stable Diffusion. The vulnerability exists in the LoadImage Node component, specifically in the folder_paths.py module's get_annotated_filepath function. This function handles file path resolution for loading images but fails to properly sanitize the Name argument, allowing directory traversal sequences (e.g., '../../../') to bypass path restrictions. CWE-22 (Improper Limitation of a Pathname to a Restricted Directory) indicates insufficient input validation on file path components. The affected CPE (cpe:2.3:a:comfyui) indicates all versions up to 0.13.0 are vulnerable. The vulnerability is exploitable over the network as the LoadImage Node receives input that can be crafted by any authenticated user of the ComfyUI instance.
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:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:P
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
Lifecycle Timeline
5DescriptionCVE.org
A flaw has been found in ComfyUI up to 0.13.0. Affected is the function folder_paths.get_annotated_filepath of the file folder_paths.py of the component LoadImage Node. This manipulation of the argument Name causes path traversal. Remote exploitation of the attack is possible. The exploit has been published and may be used. The vendor was contacted early about this disclosure but did not respond in any way.
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
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
Related Vulnerabilities in ComfyUI Multiple Vulnerabilities
View all 5Arbitrary 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
EUVD-2026-23735
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB