ComfyUI-Manager has an Unprotected Alternate Channel (CWE-420)
🔗 CVE IDs covered (1)
📋 Description
Impact
An Unprotected Alternate Channel (CWE-420) vulnerability was discovered in ComfyUI-Manager versions prior to 3.38.
Vulnerability Details
In affected versions, ComfyUI-Manager stored its configuration in the user/default/ComfyUI-Manager/ directory, which was accessible via ComfyUI's web APIs without proper access control. This unprotected alternate channel allowed remote attackers to read and manipulate configuration files and critical data through the web interface.
Potential Attack Scenarios
An attacker exploiting this vulnerability could:
- Modify security settings: Lower the security level from "strong" to "weak" to enable more dangerous operations
- Tamper with custom node sources: Add malicious custom node repositories
- Manipulate snapshot data: Corrupt or alter system snapshots
- Change manager behavior: Alter various manager configuration settings
Affected Configurations
| Configuration | Risk Level |
|---------------|------------|
| Systems running with --listen 0.0.0.0 (externally exposed) | HIGH |
| Systems behind reverse proxy without proper access control | MEDIUM |
| Local-only installations (default, localhost only) | NOT AFFECTED |
Patches
This issue has been patched in ComfyUI-Manager version 3.38.
Requirements
| Component | Minimum Version | Notes | |-----------|-----------------|-------| | ComfyUI | v0.3.76+ | Required for System User Protection API | | ComfyUI-Manager | v3.38+ | Contains the security fix |
What the Patch Does
- Path Migration: Configuration files moved from unprotected
user/default/ComfyUI-Manager/to protecteduser/__manager/ - Protected Directory: The new
__manager/directory leverages ComfyUI's System User Protection API, which blocks external web API access - Security Level Enforcement: Settings below "normal" are automatically raised to "normal" during migration
- Legacy Backup: Old data is backed up to
.legacy-manager-backup/with startup reminders until manually deleted - Fallback Protection: If ComfyUI < v0.3.76, Manager forces "strong" security mode, blocking new installations until ComfyUI is updated
Patch Details
- Commit:
aaed1dc - Pull Request: ComfyUI-Manager/#2338 ComfyUI/#10966
- Changes: +780 lines, −61 lines across 13 files
Workarounds
If immediate upgrade is not possible, apply the following mitigations:
| Mitigation | Effectiveness | Effort |
|------------|---------------|--------|
| Remove --listen 0.0.0.0 flag (use localhost only) | HIGH | Low |
| Implement firewall rules to block external access to ComfyUI ports | HIGH | Medium |
| Use reverse proxy with authentication (e.g., nginx + basic auth) | HIGH | Medium |
| Restrict network access to trusted IPs only | MEDIUM | Low |
Note: These are temporary mitigations. Upgrading to v3.38+ is strongly recommended.
Resources
- NVD - CVE-2025-67303
- ComfyUI-Manager v3.38 Security Migration Guide
- Patch Pull Request ComfyUI-Manager/#2338
- Patch Pull Request ComfyUI/#10966
Credit
This vulnerability was reported by Ricter Zheng (ricterzheng / 郑杜涛) from Tencent Xuanwu Lab [email protected]
🎯 Affected products1
- pip/comfyui-manager:< 3.38
🔗 References (5)
- https://github.com/Comfy-Org/ComfyUI-Manager/security/advisories/GHSA-95pq-hr8p-f5g7
- https://nvd.nist.gov/vuln/detail/CVE-2025-67303
- https://github.com/Comfy-Org/ComfyUI-Manager/pull/2338/commits/e44c5cef58fb4973670b86433b9d24d077b44a26
- https://github.com/Comfy-Org/ComfyUI-Manager/blob/main/docs/en/v3.38-userdata-security-migration.md
- https://github.com/advisories/GHSA-95pq-hr8p-f5g7