# CVE-2026-123903 — VMware Directory Service (vmdir) SASL bind authentication bypass Proof-of-concept and validation tooling for **CVE-2026-123903**, a critical (CVSS 9.8) authentication bypass in the VMware Directory Service (`vmdird`) shipped with VMware vCenter Server. A network-adjacent, unauthenticated attacker can run LDAP operations as any existing directory principal — including the SSO administrator — by abusing the connection state left behind after a deliberately failed two-leg SASL/SRP bind. | | | |---|---| | **CVE** | CVE-2026-123903 | | **Advisory** | VMSA-2026-0011 (2026-11-24) | | **Component** | VMware Directory Service (`vmdird`), LDAP bind middle layer | | **Class** | Authentication bypass via connection state confusion (CWE-287 / CWE-459) | | **Vector** | `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H` (9.8) | | **Analysed build** | vCenter Server Appliance 9.1.0.0300 (build 25629530) | > ⚠️ **Authorized use only.** These scripts bypass authentication and can create > a working SSO administrator. Run them exclusively against systems you own or > are explicitly authorized in writing to test. Unauthorized use against systems > you do not control is illegal. The authors accept no liability for misuse. ## Root cause (short version) `VmDirMLBind` handles LDAP binds. On the **SASL error path**, when the second leg of an SRP bind fails with `invalidCredentials` (49), the server resolves the client-supplied user name, loads that directory entry, and builds its access token directly onto the live connection (`_VmDirBindSetupAccessInfo` on `conn->AccessInfo`) — purely to update the failed-login counter. Unlike the simple-bind path, this error path **never frees that access info**. Because the connection survives a failed bind and the privileged-operation gates only check whether an access token is present (not whether a bind actually succeeded), every subsequent operation on that socket runs as the impersonated principal. ## Contents | File | Purpose | |---|---| | `cve_2026_123903_check.py` | Non-destructive detection. Read-only by default; optional inert-marker write test. | | `cve_2026_123903_addadmin.py` | Full-impact PoC. Creates (or removes) a vSphere SSO administrator. | ## Requirements - Python 3.10+ - No third-party packages — standard library only (`ssl`, `socket`, `struct`). The scripts speak LDAP/LDAPS on the wire directly, so no OpenLDAP client or `python-ldap` is needed. TLS certificate verification is disabled because the appliance presents a VMCA-signed certificate; this is a bypass PoC, not a transport-security test. ## Usage Replace `vcenter.lab.example.com` with your authorized target. Default transport is LDAPS on TCP/636; use `--no-tls --port 389` for plain LDAP. ### 1. Detection (safe, read-only) ```bash python3 cve_2026_123903_check.py vcenter.lab.example.com --json ``` Opens three connections — anonymous, failed simple bind, and failed SRP bind — and runs the same privileged search on each. A vulnerable host returns directory entries only on the failed-SRP connection. Verdict is printed and included in the JSON. Optional write confirmation (creates and immediately deletes one inert marker object per state; touches nothing else): ```bash python3 cve_2026_123903_check.py vcenter.lab.example.com --write-test --json ``` ### 2. Full impact — create an SSO administrator ```bash # create: use a password that satisfies the SSO complexity policy python3 cve_2026_123903_addadmin.py vcenter.lab.example.com \ --username researcher --password '' --json # remove the account and its group memberships python3 cve_2026_123903_addadmin.py vcenter.lab.example.com \ --username researcher --cleanup --json ``` The tool plants the administrator token via the failed SRP bind, then on the same connection creates the user under `cn=Users,` and adds it to the built-in `Administrators` and `Users` groups. The default SSO password policy rejects trivial passwords (needs upper/lower/digit/special); this constrains the password string, not the technique. Useful flags (both scripts): `--domain` (default `vsphere.local`), `--as-principal` (principal to impersonate), `--port`, `--no-tls`, `--timeout`, `-v`. ## Operational notes - Each run records failed logins against the impersonated principal; account lockout policy applies. - The tooling targets the `SRP` SASL mechanism. The server also offers `GSSAPI` (not used here). ## Detection (defender quick reference) In `vmdird` logs (`/var/log/vmware/vmdird/vmdird.log`): - `SASLSessionStep: sasl error (-13)(...)` - `Bind Request Failed () error 49: ... Method: SASL` — where the logged Bind DN is the **victim's** DN, immediately followed by privileged operations from the same client with **no** intervening `Bind Request Succeeded`. Directory side: unexpected members of `cn=Administrators,cn=Builtin,`, new accounts under `cn=Users,`, or failed-login spikes on administrative accounts. ## Remediation Apply the fixed release for your product line per VMSA-2026-0011 (e.g. vCenter 8.0 U3m, 9.0.2.0300, 9.1.2). No vendor workaround exists; restricting network access to the LDAP/LDAPS ports (389/636) reduces exposure but does not fix the flaw. ## References - Vendor advisory: VMSA-2026-0011 - Rapid7 analysis — `hxxps://www.rapid7.com/blog/post/etr-cve-2026-123903-critical-vmware-directory-service-authentication-bypass-affects-vcenter/` - The Hacker News — `hxxps://thehackernews.com/2026/11/vmware-vcenter-hit-by-another-critical.html`