Open WebUI LDAP and OAuth Authentication Race Condition Vulnerability Allowing Unauthorized Admin Access

Vulnerability

A race condition vulnerability has been identified in Open WebUI's LDAP and OAuth authentication flows, prior to version 0.9.0. This vulnerability arises from a Time-of-Check-Time-of-Use (TOCTOU) issue in the first-user admin role assignment process. The regular signup handler was patched to prevent this race condition, but the LDAP and OAuth paths were not updated, allowing multiple users to be concurrently assigned admin roles on a fresh instance with no existing users.

Impact

Exploitation of this vulnerability allows any user authenticated via LDAP or OAuth to gain administrative privileges, including access to all user data, system configurations, API keys, and connected LLM backends.

Reproduction

To reproduce this vulnerability, deploy Open WebUI with LDAP or OAuth enabled on a fresh instance where no users exist. Then, send multiple concurrent authentication requests from different users. All requests will pass the initial user count check simultaneously, resulting in multiple users being granted admin rights.

Remediation

Users should update to Open WebUI version 0.9.0 or later, where this vulnerability has been fixed. Instructions for updating can be found in the Open WebUI repository.

Added: May 15, 2026, 8:20 PM
Updated: May 15, 2026, 8:20 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
5.0
exploitability
5.6
remediation
7.7
relevance
8.4
threat
6.4
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.