A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-11045

CVE-2024-11045: Stable-diffusion-webui CSRF Vulnerability

CVE-2024-11045 is a Cross-Site WebSocket Hijacking flaw in Automatic1111 Stable-diffusion-webui that enables attackers to clone malicious extensions and execute unauthorized actions. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: April 15, 2026

CVE-2024-11045 Overview

A Cross-Site WebSocket Hijacking (CSWSH) vulnerability has been identified in automatic1111/stable-diffusion-webui version 1.10.0. This vulnerability allows attackers to hijack WebSocket connections and perform unauthorized actions on the server, including cloning malicious server extensions from GitHub repositories. The flaw stems from improper validation of WebSocket connections at ws://127.0.0.1:7860/queue/join, enabling attackers to execute unauthorized operations when a user visits a malicious website.

Critical Impact

Attackers can exploit this vulnerability to clone malicious server extensions, execute arbitrary scripts, exfiltrate sensitive data, and potentially cause denial of service on affected Stable Diffusion WebUI installations.

Affected Products

  • automatic1111 stable-diffusion-webui version 1.10.0

Discovery Timeline

  • 2025-03-20 - CVE CVE-2024-11045 published to NVD
  • 2025-08-05 - Last updated in NVD database

Technical Details for CVE-2024-11045

Vulnerability Analysis

This Cross-Site WebSocket Hijacking vulnerability exploits the lack of origin validation on WebSocket connections in Stable Diffusion WebUI. WebSocket connections, unlike standard HTTP requests, can bypass Same-Origin Policy protections if not properly implemented. In this case, the vulnerable endpoint at ws://127.0.0.1:7860/queue/join accepts connections without verifying the origin of the request.

When a victim visits a malicious website while running Stable Diffusion WebUI locally, the attacker's JavaScript code can establish a WebSocket connection to the victim's local instance. Since the WebSocket endpoint doesn't validate the connection origin, the attacker gains the ability to send commands to the server as if they were the legitimate user.

The vulnerability is particularly dangerous because it targets a locally-running application that users typically assume is protected from external attacks. The attack chain can lead to unauthorized installation of malicious extensions, which may contain backdoors or cryptocurrency miners.

Root Cause

The root cause of CVE-2024-11045 is improper origin validation (CWE-346) and improper access control (CWE-284) on the WebSocket endpoint. The application fails to verify that WebSocket connection requests originate from trusted sources, allowing cross-origin requests from any website. This design flaw enables attackers to leverage a victim's browser as a proxy to interact with the locally-running Stable Diffusion WebUI instance.

Attack Vector

The attack requires user interaction where the victim must visit a malicious webpage while running Stable Diffusion WebUI locally. The attack flow proceeds as follows:

  1. Attacker creates a malicious webpage containing JavaScript that attempts to connect to ws://127.0.0.1:7860/queue/join
  2. Victim visits the malicious webpage while Stable Diffusion WebUI is running
  3. The attacker's JavaScript establishes a WebSocket connection to the victim's local instance
  4. Through the hijacked WebSocket, the attacker can queue malicious commands, including cloning extensions from attacker-controlled GitHub repositories
  5. Malicious extensions may execute arbitrary code, exfiltrate data, or cause denial of service

The attack leverages the network-accessible nature of locally bound services when combined with browser-based exploitation techniques. For detailed technical information, see the Huntr Bounty Report.

Detection Methods for CVE-2024-11045

Indicators of Compromise

  • Unexpected WebSocket connections to port 7860 from browser processes
  • Newly installed extensions in the Stable Diffusion WebUI extensions directory that were not manually added
  • Unusual GitHub repository cloning activity initiated by the WebUI process
  • Network traffic to unknown GitHub repositories from the WebUI server process

Detection Strategies

  • Monitor WebSocket connection logs for connections originating from unexpected referrer domains
  • Implement file integrity monitoring on the extensions directory to detect unauthorized additions
  • Review browser console logs for WebSocket connection attempts to localhost services
  • Deploy endpoint detection solutions to identify suspicious process spawning from the WebUI application

Monitoring Recommendations

  • Configure logging to capture all WebSocket connection attempts including origin headers
  • Set up alerts for new extension installations or repository cloning operations
  • Monitor outbound network connections from the Stable Diffusion WebUI process for unusual destinations
  • Implement application-level auditing for all administrative actions performed through the queue endpoint

How to Mitigate CVE-2024-11045

Immediate Actions Required

  • Avoid running Stable Diffusion WebUI while browsing untrusted websites
  • Configure firewall rules to restrict access to port 7860 from external networks
  • Review installed extensions and remove any unfamiliar or suspicious additions
  • Consider running the WebUI in an isolated environment such as a container or virtual machine

Patch Information

Users should monitor the automatic1111/stable-diffusion-webui GitHub repository for security updates that address this WebSocket hijacking vulnerability. Check the Huntr Bounty Report for the latest information on available patches and vendor response.

Workarounds

  • Implement a reverse proxy with origin validation in front of the WebUI application
  • Use browser extensions that block WebSocket connections to localhost from untrusted origins
  • Run Stable Diffusion WebUI in a dedicated browser profile that is not used for general browsing
  • Configure the WebUI to require authentication if such an option becomes available
bash
# Example firewall rule to restrict WebUI access (Linux iptables)
# Allow only local connections to the WebUI port
iptables -A INPUT -p tcp --dport 7860 -s 127.0.0.1 -j ACCEPT
iptables -A INPUT -p tcp --dport 7860 -j DROP

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

  • Vulnerability Details
  • TypeCSRF

  • Vendor/TechAutomatic1111 Stable Diffusion Webui

  • SeverityCRITICAL

  • CVSS Score9.6

  • EPSS Probability0.08%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-284

  • CWE-346
  • Technical References
  • Huntr Bounty Report
  • Latest CVEs
  • CVE-2026-9813: FlowIntel SSRF Vulnerability

  • CVE-2026-4377: D-Link DWR-X1820 Auth Bypass Vulnerability

  • CVE-2026-47074: ex_aws_sns Auth Bypass Vulnerability

  • CVE-2026-46241: Linux Kernel Use-After-Free Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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