psf-vcenter-dirsvc-check(8)

Script: /opt/psf-security-patches/servers/vmware/vcenter-dirsvc-check.sh. Tool page: VMware vCenter. Script source. With the package installed: man psf-vcenter-dirsvc-check.

Overview

VMware vCenter directory service authentication bypass, November 2026 (v1) CVE-2026-123890 (CVSS 3.1 9.8, VMSA-2026-0009, exploited, CISA KEV 20 November 2026)

Anyone who can reach vCenter's directory service (the single sign-on port 2012) can get an administrator session without a password. ARMORY CASTLE (formerly UNC5221) used it from early September with a tool Mandiant calls BONESAW: it created an SSO administrator account and copied the directory database, which holds the key that signs login tokens, so the attackers could forge a login for any user ("golden SAML"). Broadcom fixed it on 19 November: vCenter 9.1.1.0200 (build 25901347), 9.0.2.0200 (build 25901331) and 8.0 Update 3m (8.0.3.01200, build 25934264); VCF 5.x through 5.2.5. There is no workaround and no public fix for 7.0 (extended-support customers ask Broadcom); 6.5 and 6.7 are presumed affected.

vCenter is an appliance on Photon OS. This tool runs from any GNU/Linux machine, asking each vCenter for its version over its web API the way the vSphere client does, without logging in; or on the appliance itself from its root shell.

Command reference

The original help text below includes the command syntax, options, environment variables and exit codes supplied with this tool. Review the source and test any change before applying it to a production system.

Original command-line help
VMware vCenter directory service authentication bypass, November 2026 (v1)
CVE-2026-123890 (CVSS 3.1 9.8, VMSA-2026-0009, exploited, CISA KEV 20 November 2026)

If this software is helpful, consider a donation to our 501c3 nonprofit:
https://privacysafe.foundation
Help and documentation: https://privacysafe.app/docs/security-patches/servers/vmware/

Anyone who can reach vCenter's directory service (the single sign-on port 2012) can get an
administrator session without a password. ARMORY CASTLE (formerly UNC5221) used it from
early September with a tool Mandiant calls BONESAW: it created an SSO administrator account
and copied the directory database, which holds the key that signs login tokens, so the
attackers could forge a login for any user ("golden SAML"). Broadcom fixed it on 19 November:
vCenter 9.1.1.0200 (build 25901347), 9.0.2.0200 (build 25901331) and 8.0 Update 3m
(8.0.3.01200, build 25934264); VCF 5.x through 5.2.5. There is no workaround and no public
fix for 7.0 (extended-support customers ask Broadcom); 6.5 and 6.7 are presumed affected.

vCenter is an appliance on Photon OS. This tool runs from any GNU/Linux machine, asking each
vCenter for its version over its web API the way the vSphere client does, without logging
in; or on the appliance itself from its root shell.

Usage:
  ./vcenter-dirsvc-check.sh [command] [arguments]

  check [HOST...]   Read-only. With hosts: asks each vCenter for its version
                   and build (an unauthenticated RetrieveServiceContent call
                   to https://HOST/sdk, the call every vSphere client makes
                   first) and judges it; says whether this machine can reach
                   the host's port 2012. Without hosts, on a vCenter
                   appliance: judges the local build (vpxd -v). Exit 0 = all
                   fixed, 1 = affected, 2 = a version could not be read.
  hunt             Read-only. On any GNU/Linux machine: the files Mandiant
                   found on the GNU/Linux machines the attackers used to reach
                   vCenter (/tmp/123, /tmp/sss, /tmp/dbr, /usr/bin/vmtoolscs).
                   On a vCenter appliance also: single sign-on log entries
                   of the last HUNT_DAYS days that create users or add them
                   to groups, for a look by hand. Exit 0 = nothing found,
                   1 = leads, 2 = nothing could be read.
  mitigate [--dry-run]   (root, on the appliance) Lets only the addresses in
                   ALLOW_FROM reach the directory service port 2012 (and
                   PORTS, if you add 443), with an iptables chain of its own,
                   as Mandiant recommends. Keeps loopback and connections
                   already open. Not a fix, and not supported by Broadcom:
                   it narrows who can attack until you patch. The appliance
                   rebuilds its firewall at boot, so run it again after a
                   reboot. Include every other vCenter in the same SSO domain
                   (Enhanced Linked Mode) in ALLOW_FROM.
  rollback [--dry-run]   Removes that chain.
  version          Prints the script version.

Env overrides:
  ALLOW_FROM="10.0.0.5 10.0.1.0/24"  who may reach the ports (mitigate)
  PORTS="2012"       ports mitigate restricts (Mandiant: 443 too stops forged logins being used)
  VPXD_V_OUTPUT      text that stands in for "vpxd -v" (testing only)
  SDK_PORT=443       port of the vCenter web API
  CURL_TIMEOUT=10    seconds per host
  HUNT_DAYS=60       how far back hunt reads the SSO logs
  SSO_LOG_DIR=/var/log/vmware/sso
  IOC_PATHS="/tmp/123 /tmp/sss /tmp/dbr /usr/bin/vmtoolscs"
  PSF_LOCK_WAIT      seconds a run that changes the host waits for another (default 30)
  STATE_DIR          (default /var/lib/psf-security-patches/vcenter-dirsvc)

The Security Patches software and this documentation are dedicated to the public domain under CC0 1.0 Universal. Other pages on privacysafe.app/docs are CC BY-SA 4.0 unless the page says otherwise.