{"id":"CVE-2026-44551","kind":"vulnerability","aliases":["CVE-2026-44551","GHSA-2r4p-jpmg-48f4"],"related":[],"title":"Open WebUI has an LDAP Empty Password Authentication Bypass","description":"# LDAP Empty Password Authentication Bypass\n\n## Affected Component\n\nLDAP authentication endpoint:\n- `backend/open_webui/routers/auths.py` (lines 468-477, user bind with empty password)\n- `backend/open_webui/models/auths.py` (lines 58-60, `LdapForm` model)\n\n## Affected Versions\n\nCurrent main branch (commit `6fdd19bf1`) and likely all versions with LDAP authentication support.\n\n## Description\n\nThe LDAP authentication endpoint does not validate that the submitted password is non-empty before performing a Simple Bind against the LDAP server. Per RFC 4513 Section 5.1.2, a Simple Bind with a valid DN and an empty password constitutes an \"unauthenticated simple authentication\" — many LDAP servers (including OpenLDAP in default configuration and some Active Directory setups) return success (resultCode 0) for this operation.\n\nThe `LdapForm` Pydantic model accepts `password: str` with no minimum length constraint, so an empty string passes validation. The subsequent `Connection.bind()` call succeeds on vulnerable LDAP servers, and the application issues a full session token for the target user.\n\n```python\n# models/auths.py:58-60 — no min_length on password\nclass LdapForm(BaseModel):\n    user: str\n    password: str\n\n# auths.py:469-477 — empty password reaches LDAP bind\nconnection_user = Connection(\n    server,\n    user_dn,\n    form_data.password,    # can be \"\"\n    auto_bind='NONE',\n    authentication='SIMPLE',\n)\nif not await asyncio.to_thread(connection_user.bind):\n    raise HTTPException(400, 'Authentication failed.')\n\n# If bind succeeds (which it does with empty password on many servers),\n# execution continues and a full session token is issued\n```\n\n## CVSS 3.1 Breakdown\n\n| Metric | Value | Rationale |\n|--------|-------|-----------|\n| Attack Vector | Network (N) | Exploited remotely via the LDAP login endpoint |\n| Attack Complexity | Low (L) | Single request with an empty password field |\n| Privileges Required | None (N) | No prior authentication needed |\n| User Interaction | None (N) | No victim interaction required |\n| Scope | Unchanged (U) | Impact within the application's authentication boundary |\n| Confidentiality | High (H) | Full access to victim's account data — chats, files, API keys, settings |\n| Integrity | High (H) | Can modify victim's data, settings, send messages as victim |\n| Availability | None (N) | No direct denial of service |\n\n## Attack Scenario\n\n1. LDAP authentication is enabled on the Open WebUI instance.\n2. The underlying LDAP server accepts unauthenticated simple binds (OpenLDAP default, some AD configs).\n3. Attacker sends:\n   ```\n   POST /api/v1/auths/ldap\n   {\"user\": \"admin_username\", \"password\": \"\"}\n   ```\n4. The app DN bind succeeds normally (line 366), finds the target user via LDAP search.\n5. The user bind (line 469-477) sends a Simple Bind with the target's DN and an empty password.\n6. The LDAP server returns success for the unauthenticated bind.\n7. `authenticate_user_by_email` (line 507) issues a full session token for the target user.\n8. Attacker has complete access to the victim's account.\n\n## Impact\n\n- Complete authentication bypass — any LDAP user account can be taken over without knowing the password\n- Includes admin accounts if they authenticate via LDAP\n- No rate limiting on the LDAP endpoint (unlike the password signin endpoint)\n- Zero interaction required from the victim\n\n## Preconditions\n\n- LDAP must be enabled (`ENABLE_LDAP=True`, disabled by default)\n- The LDAP server must accept unauthenticated simple binds with empty passwords (OpenLDAP default behavior, configurable on AD)\n- Attacker must know a valid LDAP username","summary":"Open WebUI's LDAP login accepts an empty password and sends it to the LDAP server as a simple bind, which many servers accept as a successful login. An attacker who knows a valid LDAP username can get a full session token for that account without the password.","severity":"critical","cvss":9.1,"epss":0.01461,"exploited":false,"exploited_at":null,"products":[{"name":"open-webui","fixed":["0.9.0"],"affected":"<= 0.8.12","ecosystem":"pypi"},{"name":"openwebui open webui","fixed":["0.9.0"],"affected":"< 0.9.0","ecosystem":"vendor"}],"ecosystems":["pypi","vendor"],"tags":["ai-tooling","cwe-287","ldap","open-webui","python","self-hosted"],"not_affected_if":["default-config","ldap-disabled","ldap-server-rejects-empty-password"],"how_to_check":"- Check whether LDAP login is on: `ENABLE_LDAP` set to `True` in the Open WebUI environment (it is disabled by default)\n- Check the Open WebUI version with `pip show open-webui`; versions `<= 0.8.12` are affected\n- Test whether the LDAP server accepts empty-password simple binds (the sources do not give a command for this)","fix":"- `open-webui` (PyPI): move to `0.9.0`\n- Until updated, the sources do not name a configuration workaround: unknown","status":"open","published_at":"2026-05-08T19:38:31+00:00","first_seen_at":"2026-11-16T15:27:32+00:00","triaged_at":"2026-11-16T15:29:42+00:00","updated_at":"2026-11-16T15:37:59+00:00","category":"ai-tooling","confidence":0.85,"triage":{"at":"2026-11-16T15:29:42Z","model":"claude-haiku-5-5","output":{"fix":"- `open-webui` (PyPI): move to `0.9.0`\n- Until updated, the sources do not name a configuration workaround: unknown","reach":"internet","title":"Open WebUI: empty LDAP password lets attackers log in as any LDAP user","impact":"high","summary":"Open WebUI's LDAP login accepts an empty password and sends it to the LDAP server as a simple bind, which many servers accept as a successful login. An attacker who knows a valid LDAP username can get a full session token for that account without the password.","audience":"businesses","category":"ai-tooling","nicknames":[],"who_cares":["open-webui","python","ldap","self-hosted"],"confidence":0.85,"fix_status":"available","needs_auth":"no","worst_case":"attacker takes over any LDAP account, including admins","analyst_note":"Confirm the fixed version and whether a workaround exists via the GHSA-2r4p-jpmg-48f4 advisory at github.com/advisories; the sources give the fix only through the product range.","how_to_check":"- Check whether LDAP login is on: `ENABLE_LDAP` set to `True` in the Open WebUI environment (it is disabled by default)\n- Check the Open WebUI version with `pip show open-webui`; versions `<= 0.8.12` are affected\n- Test whether the LDAP server accepts empty-password simple binds (the sources do not give a command for this)","plain_action":"","product_name":"","needs_analyst":true,"not_affected_if":["ldap-disabled","default-config","ldap-server-rejects-empty-password"],"who_is_affected":"Only instances with LDAP authentication enabled (ENABLE_LDAP=True, off by default) are exposed, and only when the LDAP server accepts unauthenticated simple binds, as OpenLDAP does by default and some Active Directory setups do. Deployments that use local accounts or other login methods, or that run with LDAP off, can skip it. The sources say the attack needs only a valid LDAP username and no prior login.","user_interaction":"no","product_ecosystem":"","needs_special_setup":"yes","severity_if_unknown":"unknown"},"cost_usd":0.000949,"input_tokens":5876,"output_tokens":723,"severity_before":"critical"},"analyst_status":null,"analyst_note":null,"search":"'-2026':11A,19A '-287':31B '-44551':12A,20A '-477':101C,250C,449C '-60':110C,236C '/api/v1/auths/ldap':422C '0':190C '1':394C '2':404C '2r4p':15A '3':418C '3.1':303C '366':435C '4':427C '400':278C '4513':155C '468':100C '469':448C '48f4':17A '5':443C '5.1.2':157C '507':479C '58':109C,235C '6':463C '6fdd19bf1':119C '7':473C '8':489C 'accept':45B,63B,198C,409C,556C 'access':360C,493C 'account':84B,364C,498C,506C,517C 'activ':184C 'ad':416C,568C 'admin':424C,516C 'affect':93C,113C 'ai':28B 'ai-tool':27B 'api':368C 'app':429C 'applic':223C,352C 'asyncio.to':273C 'attack':69B,308C,319C,392C,419C,490C,569C 'authent':8A,91C,96C,126C,131C,173C,268C,279C,336C,354C,396C,474C,501C,520C 'auths.py:469':249C 'auto':265C 'avail':384C 'await':272C 'backend/open_webui/models/auths.py':107C 'backend/open_webui/routers/auths.py':98C 'basemodel':244C 'behavior':565C 'bind':59B,103C,148C,160C,255C,266C,282C,412C,431C,446C,453C,472C,559C 'boundari':355C 'branch':117C 'breakdown':304C 'bypass':9A,92C,502C 'call':215C 'chat':366C 'class':242C 'commit':118C 'complet':492C,500C 'complex':320C 'compon':94C 'confidenti':356C 'config':417C 'configur':181C,566C 'connect':256C,258C 'connection.bind':214C 'connection_user.bind':275C 'constitut':169C 'constraint':205C 'continu':294C 'current':115C 'cve':10A,18A 'cvss':302C 'cwe':30B 'data':365C,378C 'default':180C,414C,551C,564C 'denial':389C 'descript':128C 'direct':388C 'directori':185C 'disabl':549C 'dn':164C,261C,430C,458C 'email':477C 'empti':6A,47B,89C,105C,143C,167C,208C,251C,288C,327C,461C,561C 'enabl':398C,545C,546C 'endpoint':97C,132C,318C,529C,534C 'execut':293C 'exploit':312C 'fail':280C 'field':329C 'file':367C 'find':436C 'form_data.password':262C 'full':79B,226C,297C,359C,482C 'get':77B 'ghsa':14A 'ghsa-2r4p-jpmg-48f4':13A 'h':358C,373C 'high':357C,372C 'host':39B 'httpexcept':277C 'impact':349C,499C 'includ':177C,515C 'instanc':403C 'integr':371C 'interact':339C,344C,536C 'issu':224C,301C,480C 'jpmg':16A 'key':369C 'know':71B,512C,571C 'l':322C 'ldap':5A,32B,43B,54B,74B,88C,95C,125C,130C,151C,175C,219C,254C,316C,395C,407C,441C,465C,504C,522C,528C,542C,547C,553C,574C 'ldapform':111C,195C,243C 'length':204C,239C 'like':121C 'limit':525C 'line':99C,108C,434C,447C,478C 'login':44B,67B,317C 'low':321C 'main':116C 'mani':61B,174C,291C 'messag':381C 'metric':305C 'min':238C 'minimum':203C 'model':112C,197C 'models/auths.py':234C 'modifi':375C 'must':543C,555C,570C 'n':311C,333C,341C,386C 'need':337C 'network':310C 'non':142C 'non-empti':141C 'none':267C,332C,340C,385C 'normal':433C 'open':1A,22A,25A,34B,40B,401C 'open-webui':21A,33B 'openldap':178C,413C,563C 'openwebui':24A 'oper':193C 'pass':210C 'password':7A,48B,87B,90C,106C,139C,168C,199C,241C,247C,252C,289C,328C,426C,462C,514C,532C,562C 'per':153C 'perform':145C 'post':421C 'precondit':541C 'prior':335C 'privileg':330C 'pydant':196C 'python':36B,233C 'rais':276C 'rate':524C 'rational':307C 'reach':253C 'remot':313C 'request':324C 'requir':331C,345C,537C 'resultcod':189C 'return':187C,467C 'rfc':154C 'scenario':393C 'scope':346C 'search':442C 'section':156C 'self':38B 'self-host':37B 'send':50B,380C,420C,450C 'server':55B,62B,152C,176C,220C,259C,292C,408C,466C,554C 'servic':391C 'session':80B,227C,298C,483C 'set':370C,379C 'setup':186C 'signin':533C 'simpl':58B,147C,159C,172C,269C,411C,452C,558C 'singl':323C 'str':200C,246C,248C 'string':209C 'submit':138C 'subsequ':213C 'succeed':216C,283C,432C 'success':66B,188C,468C 'support':127C 'taken':509C 'target':231C,438C,456C,487C 'thread':274C 'token':81B,228C,299C,484C 'tool':29B 'true':548C 'u':348C 'unauthent':171C,410C,471C,557C 'unchang':347C 'under':406C 'unlik':530C 'user':102C,232C,245C,257C,260C,338C,423C,439C,445C,475C,488C,505C 'usernam':75B,425C,575C 'valid':73B,135C,163C,211C,573C 'valu':306C 'vector':309C 'version':114C,123C 'via':314C,440C,521C 'victim':343C,362C,376C,383C,496C,540C 'vulner':218C 'webui':2A,23A,26A,35B,41B,402C 'within':350C 'without':85B,511C 'zero':535C","nicknames":[],"mitigations":[],"who_affected":"Only instances with LDAP authentication enabled (ENABLE_LDAP=True, off by default) are exposed, and only when the LDAP server accepts unauthenticated simple binds, as OpenLDAP does by default and some Active Directory setups do. Deployments that use local accounts or other login methods, or that run with LDAP off, can skip it. The sources say the attack needs only a valid LDAP username and no prior login.","tier":"B","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"businesses","plain_action":null,"pkeys":["openwebui","openwebuiopenwebui"],"ptokens":["open","openwebui","webui"],"labels":["aitooling","critical","cwe287","ldap","openwebui","pypi","python","selfhosted","vendor"],"campaign_type":null,"search_a":"'-2026':11A,19A '-44551':12A,20A '2r4p':15A '48f4':17A 'authent':8A 'bypass':9A 'cve':10A,18A 'empti':6A 'ghsa':14A 'ghsa-2r4p-jpmg-48f4':13A 'jpmg':16A 'ldap':5A 'open':1A,22A,25A 'open-webui':21A 'openwebui':24A 'password':7A 'webui':2A,23A,26A","search_b":"'-287':31B 'accept':45B,63B 'account':84B 'ai':28B 'ai-tool':27B 'attack':69B 'bind':59B 'cwe':30B 'empti':47B 'full':79B 'get':77B 'host':39B 'know':71B 'ldap':32B,43B,54B,74B 'login':44B,67B 'mani':61B 'open':34B,40B 'open-webui':33B 'password':48B,87B 'python':36B 'self':38B 'self-host':37B 'send':50B 'server':55B,62B 'session':80B 'simpl':58B 'success':66B 'token':81B 'tool':29B 'usernam':75B 'valid':73B 'webui':35B,41B 'without':85B","search_c":"'-477':101C,250C,449C '-60':110C,236C '/api/v1/auths/ldap':422C '0':190C '1':394C '2':404C '3':418C '3.1':303C '366':435C '4':427C '400':278C '4513':155C '468':100C '469':448C '5':443C '5.1.2':157C '507':479C '58':109C,235C '6':463C '6fdd19bf1':119C '7':473C '8':489C 'accept':198C,409C,556C 'access':360C,493C 'account':364C,498C,506C,517C 'activ':184C 'ad':416C,568C 'admin':424C,516C 'affect':93C,113C 'api':368C 'app':429C 'applic':223C,352C 'asyncio.to':273C 'attack':308C,319C,392C,419C,490C,569C 'authent':91C,96C,126C,131C,173C,268C,279C,336C,354C,396C,474C,501C,520C 'auths.py:469':249C 'auto':265C 'avail':384C 'await':272C 'backend/open_webui/models/auths.py':107C 'backend/open_webui/routers/auths.py':98C 'basemodel':244C 'behavior':565C 'bind':103C,148C,160C,255C,266C,282C,412C,431C,446C,453C,472C,559C 'boundari':355C 'branch':117C 'breakdown':304C 'bypass':92C,502C 'call':215C 'chat':366C 'class':242C 'commit':118C 'complet':492C,500C 'complex':320C 'compon':94C 'confidenti':356C 'config':417C 'configur':181C,566C 'connect':256C,258C 'connection.bind':214C 'connection_user.bind':275C 'constitut':169C 'constraint':205C 'continu':294C 'current':115C 'cvss':302C 'data':365C,378C 'default':180C,414C,551C,564C 'denial':389C 'descript':128C 'direct':388C 'directori':185C 'disabl':549C 'dn':164C,261C,430C,458C 'email':477C 'empti':89C,105C,143C,167C,208C,251C,288C,327C,461C,561C 'enabl':398C,545C,546C 'endpoint':97C,132C,318C,529C,534C 'execut':293C 'exploit':312C 'fail':280C 'field':329C 'file':367C 'find':436C 'form_data.password':262C 'full':226C,297C,359C,482C 'h':358C,373C 'high':357C,372C 'httpexcept':277C 'impact':349C,499C 'includ':177C,515C 'instanc':403C 'integr':371C 'interact':339C,344C,536C 'issu':224C,301C,480C 'key':369C 'know':512C,571C 'l':322C 'ldap':88C,95C,125C,130C,151C,175C,219C,254C,316C,395C,407C,441C,465C,504C,522C,528C,542C,547C,553C,574C 'ldapform':111C,195C,243C 'length':204C,239C 'like':121C 'limit':525C 'line':99C,108C,434C,447C,478C 'login':317C 'low':321C 'main':116C 'mani':174C,291C 'messag':381C 'metric':305C 'min':238C 'minimum':203C 'model':112C,197C 'models/auths.py':234C 'modifi':375C 'must':543C,555C,570C 'n':311C,333C,341C,386C 'need':337C 'network':310C 'non':142C 'non-empti':141C 'none':267C,332C,340C,385C 'normal':433C 'open':401C 'openldap':178C,413C,563C 'oper':193C 'pass':210C 'password':90C,106C,139C,168C,199C,241C,247C,252C,289C,328C,426C,462C,514C,532C,562C 'per':153C 'perform':145C 'post':421C 'precondit':541C 'prior':335C 'privileg':330C 'pydant':196C 'python':233C 'rais':276C 'rate':524C 'rational':307C 'reach':253C 'remot':313C 'request':324C 'requir':331C,345C,537C 'resultcod':189C 'return':187C,467C 'rfc':154C 'scenario':393C 'scope':346C 'search':442C 'section':156C 'send':380C,420C,450C 'server':152C,176C,220C,259C,292C,408C,466C,554C 'servic':391C 'session':227C,298C,483C 'set':370C,379C 'setup':186C 'signin':533C 'simpl':147C,159C,172C,269C,411C,452C,558C 'singl':323C 'str':200C,246C,248C 'string':209C 'submit':138C 'subsequ':213C 'succeed':216C,283C,432C 'success':188C,468C 'support':127C 'taken':509C 'target':231C,438C,456C,487C 'thread':274C 'token':228C,299C,484C 'true':548C 'u':348C 'unauthent':171C,410C,471C,557C 'unchang':347C 'under':406C 'unlik':530C 'user':102C,232C,245C,257C,260C,338C,423C,439C,445C,475C,488C,505C 'usernam':425C,575C 'valid':135C,163C,211C,573C 'valu':306C 'vector':309C 'version':114C,123C 'via':314C,440C,521C 'victim':343C,362C,376C,383C,496C,540C 'vulner':218C 'webui':402C 'within':350C 'without':511C 'zero':535C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2026-05-05T11:18:17+00:00","kev":null,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","cvss_by":"GitHub","poc_count":0,"sources":[{"source":"ghsa","external_id":"GHSA-2r4p-jpmg-48f4","url":"https://github.com/advisories/GHSA-2r4p-jpmg-48f4","severity":"critical","published_at":"2026-05-08T19:38:31+00:00","modified_at":"2026-11-16T15:24:02+00:00","first_seen_at":"2026-11-16T15:27:32+00:00","fetched_at":"2026-11-16T15:36:40+00:00","note":null},{"source":"nvd","external_id":"CVE-2026-44551","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-44551","severity":null,"published_at":"2026-05-15T20:16:46+00:00","modified_at":"2026-11-11T20:10:00+00:00","first_seen_at":"2026-11-16T15:37:59+00:00","fetched_at":"2026-11-16T15:37:59+00:00","note":null}],"documents":[{"id":170396,"url":"https://api.github.com/repos/open-webui/open-webui/security-advisories/GHSA-2r4p-jpmg-48f4","title":"Maintainer's advisory: api.github.com","kind":"vendor","source":"ghsa","publisher":"vendor","text":null,"published_at":null,"relation":"advisory","confidence":null,"note":"Maintainer's advisory: api.github.com"},{"id":170397,"url":"https://github.com/open-webui/open-webui/security/advisories/GHSA-2r4p-jpmg-48f4","title":"Maintainer's advisory: github.com","kind":"vendor","source":"ghsa","publisher":"vendor","text":null,"published_at":"2026-05-05T11:18:17+00:00","relation":"advisory","confidence":null,"note":"Maintainer's advisory: github.com"}],"disclosures":[],"exploit_sources":[{"type":"epss","score":0.01461,"url":"https://api.first.org/data/v1/epss?cve=CVE-2026-44551"}],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}