{"id":"CVE-2026-45675","published":"2026-05-15T19:12:57Z","modified":"2026-06-18T21:08:01Z","title":"Open WebUI: LDAP and OAuth First-User Race Condition Allows Multiple Admin Accounts","vendor":"open-webui","product":"open-webui","tier":"tail","description":{"text":"Open WebUI is a self-hosted artificial intelligence platform designed to operate entirely offline. Prior to 0.9.0, the LDAP and OAuth authentication flows use a TOCTOU (Time-of-Check-Time-of-Use) pattern for first-user admin role assignment. The regular signup handler (signup_handler in auths.py, line 663) was explicitly patched to prevent this race with the comment \"Insert with default role first to avoid TOCTOU race\", but the LDAP and OAuth code paths were never updated with the same fix. This vulnerability is fixed in 0.9.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00505,"percentile":0.36302,"provenance":"source"},"cwes":[{"id":"CWE-269","name":"Improper Privilege Management"},{"id":"CWE-362","name":"Concurrent Execution using Shared Resource with Improper Synchronization"}],"references":[{"url":"https://github.com/open-webui/open-webui/security/advisories/GHSA-h3ww-q6xx-w7x3","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/open-webui/open-webui/pull/23626","tags":["x_refsource_MISC"]},{"url":"https://github.com/open-webui/open-webui/commit/96a0b3239b1aadb23fc359bf10849c9ba12fd6ec","tags":["x_refsource_MISC"]}],"priority":{"score":12.9,"factors":[{"name":"EPSS percentile","points":7.26},{"name":"CVSS severity","points":5.67}]},"vendorSlug":"open-webui","affectedVersions":[{"vendor":"open-webui","product":"open-webui","versions":["< 0.9.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-05-19T03:55:45.762046Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"open-webui","vulnerableRanges":["<0.9.0"],"patched":["0.9.0"],"from":["GHSA-h3ww-q6xx-w7x3","PYSEC-2026-2730"],"provenance":"source"}],"summary":{"text":"Open WebUI, the self-hosted AI platform, contains a time-of-check-time-of-use race condition in its LDAP and OAuth authentication flows, which assign the admin role to the first user. Unlike the regular signup handler, which was patched against this race, these two code paths were not, so concurrent first-user logins can result in multiple accounts receiving administrator privileges. Exploitation requires only network access to the instance, with no prior authentication or user interaction, though the attack depends on timing.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:51:41Z"},"euvd":{"id":"EUVD-2026-30607","exploited":false,"provenance":"source"}}