Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2024-21574

CVE-2024-21574: Custom Node Extension RCE Vulnerability

CVE-2024-21574 is a remote code execution flaw in custom node extensions affecting the /customnode/install endpoint. Attackers can exploit missing pip field validation to execute arbitrary code on servers.

Published: March 31, 2026

CVE-2024-21574 Overview

CVE-2024-21574 is a critical remote code execution vulnerability in ComfyUI-Manager, a popular extension for managing custom nodes in the ComfyUI AI image generation framework. The vulnerability exists due to missing validation of the pip field in POST requests sent to the /customnode/install endpoint. This allows unauthenticated attackers to craft malicious requests that trigger pip install commands with attacker-controlled packages or URLs, resulting in arbitrary remote code execution on the server.

Critical Impact

This vulnerability enables unauthenticated remote code execution on systems running vulnerable versions of ComfyUI-Manager. Attackers can execute arbitrary commands with the privileges of the ComfyUI process, potentially compromising the entire server and any connected AI infrastructure.

Affected Products

  • ComfyUI-Manager versions prior to V2.51.1
  • ComfyUI installations using the vulnerable ComfyUI-Manager extension
  • Self-hosted AI image generation servers running ComfyUI with the Manager extension

Discovery Timeline

  • December 12, 2024 - CVE-2024-21574 published to NVD
  • December 12, 2024 - Last updated in NVD database

Technical Details for CVE-2024-21574

Vulnerability Analysis

This vulnerability is classified as CWE-94 (Code Injection), specifically manifesting as an arbitrary package installation flaw that leads to remote code execution. The root issue lies in the /customnode/install endpoint exposed by ComfyUI-Manager's server component, which processes POST requests for installing custom nodes without properly validating the pip field contents.

When a user or attacker sends a request to this endpoint, the server directly passes the pip field value to the pip package manager for installation. Since no validation exists to verify whether the package name or URL is legitimate or comes from a trusted source, an attacker can inject a malicious Python package hosted on PyPI or any arbitrary URL pointing to a malicious package archive.

The impact is severe because pip installation inherently involves executing Python code during the package setup process. A malicious setup.py file within the attacker's package can execute arbitrary commands with the same privileges as the ComfyUI server process, typically the user account running the AI generation workload.

Root Cause

The root cause is a complete absence of input validation on the pip field in the custom node installation request handler. The manager_server.py module directly processes user-supplied package identifiers without sanitization, allowlisting, or verification against known-good package registries. This allows arbitrary package URLs and names to be passed directly to pip execution.

Attack Vector

The attack vector is network-based and requires no authentication or user interaction. An attacker with network access to the ComfyUI-Manager server can send a crafted POST request to the /customnode/install endpoint with a malicious pip field value. This field can contain:

  1. A malicious package name hosted on PyPI with a trojanized setup.py
  2. A direct URL to an attacker-controlled package archive (.tar.gz or .whl)
  3. A Git repository URL containing malicious installation scripts

The security patch introduced a block security level and enhanced the is_allowed_security_level function to prevent installation operations in restricted configurations:

python
def is_allowed_security_level(level):
    if level == 'block':
        return False
    elif level == 'high':
        if is_local_mode:
            return core.get_config()['security_level'].lower() in ['weak', 'normal-']
        else:

Source: GitHub Commit

The version was also incremented to reflect the security fix:

python
import cm_global
from manager_util import *

version = [2, 51, 1]
version_str = f"V{version[0]}.{version[1]}" + (f'.{version[2]}' if len(version) > 2 else '')

Source: GitHub Commit

Detection Methods for CVE-2024-21574

Indicators of Compromise

  • Unusual POST requests to the /customnode/install endpoint from external IP addresses
  • Pip installation logs showing unexpected package names or external URLs
  • New Python packages installed in the ComfyUI environment that are not part of legitimate custom nodes
  • Unexpected outbound network connections from the ComfyUI server process
  • Suspicious child processes spawned from the Python/ComfyUI process

Detection Strategies

  • Monitor web server access logs for POST requests to /customnode/install containing URL patterns or unfamiliar package names in request bodies
  • Implement network intrusion detection rules for suspicious pip install commands executed over HTTP
  • Deploy file integrity monitoring on the ComfyUI installation directory to detect unauthorized package installations
  • Use application-level logging to capture all custom node installation attempts with full request details

Monitoring Recommendations

  • Enable verbose logging in ComfyUI-Manager to capture all installation requests
  • Implement network segmentation to restrict ComfyUI servers from accessing external package repositories
  • Deploy SentinelOne agents on ComfyUI servers to detect suspicious process execution and file modifications
  • Monitor for unusual pip activity including installations from non-PyPI sources

How to Mitigate CVE-2024-21574

Immediate Actions Required

  • Update ComfyUI-Manager to version V2.51.1 or later immediately
  • Restrict network access to the ComfyUI-Manager endpoints using firewall rules
  • Audit recent installation logs for any suspicious package installations
  • Consider temporarily disabling the custom node installation functionality until patched
  • Review running processes on affected servers for signs of compromise

Patch Information

The vulnerability has been addressed in ComfyUI-Manager commit ffc095a3. The fix introduces a block security level that prevents installation operations entirely, providing administrators with the ability to disable this high-risk functionality. Users should update to version V2.51.1 or later to receive this security fix.

Workarounds

  • Set the security level to block in the ComfyUI-Manager configuration to disable custom node installation functionality
  • Place the ComfyUI-Manager server behind an authenticated reverse proxy to prevent unauthenticated access
  • Use network firewall rules to restrict access to the /customnode/install endpoint from trusted IP addresses only
  • Run ComfyUI in an isolated container or virtual machine to limit the impact of potential exploitation
bash
# Configuration example: Restrict network access to ComfyUI-Manager
# Add to your firewall rules (iptables example)
iptables -A INPUT -p tcp --dport 8188 -s 127.0.0.1 -j ACCEPT
iptables -A INPUT -p tcp --dport 8188 -s 192.168.1.0/24 -j ACCEPT
iptables -A INPUT -p tcp --dport 8188 -j DROP

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechN/A

  • SeverityCRITICAL

  • CVSS Score10.0

  • EPSS Probability7.10%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-94
  • Technical References
  • GitHub PoC Script

  • GitHub Commit Changes
  • Latest CVEs
  • CVE-2025-49454: TinySalt Path Traversal Vulnerability

  • CVE-2025-48261: MultiVendorX Information Disclosure Flaw

  • CVE-2025-32119: CardGate WooCommerce SQL Injection Flaw

  • CVE-2025-26879: s2Member Plugin Reflected XSS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English