# CVE-2026-45675: Open WebUI: LDAP and OAuth First-User Race Condition Allows Multiple Admin Accounts

- Severity: High 8.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.35%, higher than 31% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-14T20:28:46.000Z
- Modified: 2026-11-11T20:10:00.273Z
- Also known as: GHSA-h3ww-q6xx-w7x3, PYSEC-2026-2730
- Weaknesses: CWE-269, CWE-362
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- open-webui open-webui: < 0.9.0
- open-webui (PyPI): before 0.9.0
- openwebui open_webui: before 0.9.0

## Every score

- GitHub_M: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/open-webui/open-webui/security/advisories/GHSA-h3ww-q6xx-w7x3> (exploit, mitigation, vendor-advisory, web)
- <https://github.com/open-webui/open-webui/pull/23626> (issue-tracking, web)
- <https://github.com/open-webui/open-webui/commit/96a0b3239b1aadb23fc359bf10849c9ba12fd6ec> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-45675> (advisory)
- <https://github.com/open-webui/open-webui> (package)
- <https://github.com/open-webui/open-webui/releases/tag/v0.9.0> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/open-webui/PYSEC-2026-2730.yaml> (web)
- <https://pypi.org/project/open-webui> (package)
- <https://github.com/advisories/GHSA-h3ww-q6xx-w7x3> (advisory)

## Sources

- CVE List: [CVE-2026-45675](https://www.cve.org/CVERecord?id=CVE-2026-45675), CVE Terms of Use, modified 2026-06-18
- GitHub Advisory Database: [GHSA-h3ww-q6xx-w7x3](https://github.com/advisories/GHSA-h3ww-q6xx-w7x3), CC-BY-4.0, modified 2026-07-15
- NVD: [CVE-2026-45675](https://nvd.nist.gov/vuln/detail/CVE-2026-45675), Public domain, modified 2026-11-11
- PyPA Advisory Database: [PYSEC-2026-2730](https://osv.dev/vulnerability/PYSEC-2026-2730), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-45675 · Whole record: https://cve.day/CVE-2026-45675.json · Rebuilt by cve.day 2026-11-25T22:59:21.858Z
