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-2026-45675

CVE-2026-45675: Open WebUI Privilege Escalation Flaw

CVE-2026-45675 is a privilege escalation vulnerability in Open WebUI affecting LDAP and OAuth authentication flows. This TOCTOU race condition allows unauthorized admin access. Learn about technical details, versions, and fixes.

Published: May 21, 2026

CVE-2026-45675 Overview

CVE-2026-45675 is a Time-of-Check-Time-of-Use (TOCTOU) race condition in Open WebUI, a self-hosted artificial intelligence platform designed to operate entirely offline. The flaw exists in the Lightweight Directory Access Protocol (LDAP) and OAuth authentication flows, where first-user admin role assignment is vulnerable to concurrent registration. A prior patch to the regular signup_handler in auths.py addressed the same race for password-based signups, but the LDAP and OAuth code paths were never updated with the equivalent fix. The vulnerability is tracked under [CWE-269: Improper Privilege Management] and was fixed in version 0.9.0.

Critical Impact

Concurrent attackers registering through LDAP or OAuth can race the bootstrap check and gain administrative privileges on a freshly deployed Open WebUI instance.

Affected Products

  • Open WebUI versions prior to 0.9.0
  • Deployments using LDAP authentication
  • Deployments using OAuth single sign-on (SSO)

Discovery Timeline

  • 2026-05-15 - CVE-2026-45675 published to NVD
  • 2026-05-19 - Last updated in NVD database

Technical Details for CVE-2026-45675

Vulnerability Analysis

Open WebUI bootstraps the first registered account into the admin role to enable initial configuration. In the patched password signup path, the code inserts the user with the default role first and then promotes the account only if it remains the sole user. The LDAP handler in backend/open_webui/routers/auths.py and the OAuth role resolver in backend/open_webui/utils/oauth.py computed the role before the insert. This created a window where two concurrent registrations could both observe Users.has_users() == False and both receive admin privileges.

An unauthenticated attacker who can reach the LDAP or OAuth registration endpoint on a fresh instance can race a legitimate first sign-in. The CVSS vector reflects high attack complexity because the race window is narrow and depends on timing, but successful exploitation grants full administrative control.

Root Cause

The role assignment logic read the user count and computed the role string in the same expression used during insert. Because the read and the write were not atomic, two requests interleaving between the check and the insert could each conclude they were the first user. The patched signup_handler had already documented this pattern with the comment Insert with default role first to avoid TOCTOU race, but that mitigation was not propagated to the LDAP and OAuth paths.

Attack Vector

Exploitation requires network access to a newly deployed Open WebUI instance with LDAP or OAuth enabled and no users yet provisioned. An attacker sends concurrent authentication requests timed to interleave with a legitimate first registration. If the race succeeds, the attacker's account is created with the admin role and inherits full platform privileges, including model configuration, user management, and access to stored conversations.

python
# Patched LDAP path in backend/open_webui/routers/auths.py
user = Users.get_user_by_email(email, db=db)
if not user:
    try:
        # Insert with default role first to avoid TOCTOU race on
        # first-user registration.  Matches signup_handler pattern.
        user = Auths.insert_new_auth(
            email=email,
            password=str(uuid.uuid4()),
            name=cn,
            role=request.app.state.config.DEFAULT_USER_ROLE,
            db=db,
        )

        if not user:
            raise HTTPException(500, detail=ERROR_MESSAGES.CREATE_USER_ERROR)

        # Atomically check if this is the only user *after* the
        # insert.  Only the single user present should become admin.
        if Users.get_num_users(db=db) == 1:
            Users.update_user_role_by_id(user.id, 'admin', db=db)
            user = Users.get_user_by_id(user.id, db=db)

Source: Open WebUI commit 96a0b32

python
# Patched OAuth role resolver in backend/open_webui/utils/oauth.py
if not user and user_count == 0:
    # First-user bootstrap: skip role management gating so the
    # instance can be initialized.  We intentionally return the
    # default role here (not 'admin') - admin promotion happens
    # race-safely *after* insert via get_num_users() == 1.
    log.debug('First user bootstrap: using default role (admin promotion deferred to post-insert)')
    return auth_manager_config.DEFAULT_USER_ROLE

Source: Open WebUI commit 96a0b32

Detection Methods for CVE-2026-45675

Indicators of Compromise

  • Multiple user accounts holding the admin role on an instance that was expected to provision a single administrator.
  • Concurrent or near-simultaneous LDAP or OAuth authentication requests in access logs during initial instance bootstrap.
  • Admin role assignments originating from the LDAP or OAuth callback endpoints rather than the standard signup_handler path.

Detection Strategies

  • Audit the Open WebUI user table for accounts with the admin role and verify each against approved administrators.
  • Review application logs for Assigning the first user the admin role debug entries appearing more than once on the same instance.
  • Correlate database insert timestamps for the first cohort of users to identify clustered registrations within a short window.

Monitoring Recommendations

  • Forward Open WebUI authentication and audit logs to a centralized log store and alert on unexpected role escalations.
  • Monitor reverse proxy logs for parallel POST requests to /api/v1/auths/ldap and OAuth callback URLs during deployment windows.
  • Track the running version of Open WebUI across deployments and flag any instance below 0.9.0.

How to Mitigate CVE-2026-45675

Immediate Actions Required

  • Upgrade Open WebUI to version 0.9.0 or later on all instances using LDAP or OAuth authentication.
  • Inventory existing administrators on every Open WebUI deployment and demote any account that was not explicitly authorized.
  • Rotate session tokens and OAuth client secrets if unauthorized admin accounts are discovered.

Patch Information

The fix is contained in commit 96a0b32 and merged via pull request #23626. It is released in Open WebUI 0.9.0. Refer to the GitHub Security Advisory GHSA-h3ww-q6xx-w7x3 for the full vendor notice.

Workarounds

  • Provision the initial administrator account through the local signup_handler before enabling LDAP or OAuth registration.
  • Restrict network access to LDAP and OAuth registration endpoints until the first administrator is established.
  • Disable open registration via OAuth role management settings on instances that cannot immediately upgrade.
bash
# Pin Open WebUI to the patched release
docker pull ghcr.io/open-webui/open-webui:0.9.0
docker stop open-webui && docker rm open-webui
docker run -d --name open-webui \
  -p 3000:8080 \
  -v open-webui:/app/backend/data \
  ghcr.io/open-webui/open-webui:0.9.0

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

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechOpenwebui

  • SeverityHIGH

  • CVSS Score8.1

  • EPSS Probability0.09%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-269
  • Technical References
  • GitHub Pull Request
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Security Advisory GHSA-h3ww-q6xx-w7x3
  • Related CVEs
  • CVE-2026-28788: Open WebUI Privilege Escalation Flaw

  • CVE-2026-44566: Open WebUI Path Traversal Vulnerability

  • CVE-2026-45315: Open WebUI XSS Vulnerability

  • CVE-2026-45672: Open WebUI RCE 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