GHSA-h3ww-q6xx-w7x3: Open WebUI: LDAP and OAuth First-User Race Condition Allows Multiple Admin Accounts
- Identifiers
- CVE-2026-45675GHSA-h3ww-q6xx-w7x3
- Published
- Record updated
- Affected
- open-webui <= 0.8.12
- Fixed in
- 0.9.0
- released April 21, 2026, 23 days before disclosure
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 0.4%
Summary
Open WebUI's LDAP and OAuth authentication flows determine a new user's role before inserting the user, creating a time-of-check-time-of-use race on fresh instances. Concurrent first-login requests can all observe an empty user table and all receive the admin role, while the signup handler had already been patched against this pattern. The LDAP and OAuth paths were not updated, so any user who times a first login concurrently with the legitimate first admin can gain full admin privileges, including access to user data, system configuration, API keys, and connected LLM backends.
Mitigation
Fixed in PR #23626 (commit 96a0b3239), first released in v0.9.0 (Apr 2026). LDAP and OAuth registration now insert the new user with DEFAULT_USER_ROLE, then check Users.get_num_users() == 1 and promote only the sole user to admin. Users on >= 0.9.0 are not affected.
Affected packages in the Exposure Registry
Matched by package name and ecosystem. Each entry shows whether the package delegates to a language model and how many tracked packages depend on it.
- open-webuiPyPILLM dependency since 2024-05-20
Related items
- MediumCVE-2026-102610: fast-agent serve unauthenticated remote command execution via /mcp endpointSimilar attack · NVD/CVE Database
- CriticalCVE-2026-58490: Tracecat SAML authentication bypass through unsigned responses in Docker ComposeSimilar attack · NVD/CVE Database
- MediumCVE-2026-124028: mistral.rs delimiter injection allows attacker-chosen tool calls via quoted textSimilar attack · NVD/CVE Database
- HighCVE-2026-123974: TorchServe local privilege escalation via predictable /tmp extraction directorySimilar attack · NVD/CVE Database
- InfoOpenAI Says New GPT-6 Cyber Model Hunts Flaws Without Crossing the LineSimilar attack · SecurityWeek