HiveNightmare / SeriousSAM (CVE-2021-36934): any user could read the password database

Wrong permissions on Windows registry files let normal users read password hashes through shadow copies. Installing the update alone was not enough.

Publicly disclosed: 20 July 2021

In July 2021 researchers noticed that on Windows 10 and 11 the files holding the local password database (SAM) and other sensitive registry hives were readable by ordinary users. Through Volume Shadow Copies, a non-admin user could copy them and extract password hashes to become an administrator. Microsoft published guidance on 20 July 2021 and fixed the permissions in August.

CVESeverityAffectedFixed in
CVE-2021-36934High, CVSS 7.8 (privilege escalation)Windows 10 (1809 and later), Windows 11August 2021 updates + deleting existing shadow copies

Why the update was not enough

The update did not change shadow copies that already existed. Microsoft advised restricting access to the files and deleting old shadow copies, then creating a new restore point. Note: deleting shadow copies also removes restore points — make sure you have other backups first.

vssadmin list shadows
icacls %windir%\system32\config\*.* /inheritance:e
vssadmin delete shadows /for=c: /quiet

Good Windows patching habits

  • Install Patch Tuesday updates (second Tuesday of every month) within days for internet-facing systems and within two weeks for the rest.
  • Watch for out-of-band updates — Microsoft releases them only for serious issues.
  • Replace Windows versions that no longer receive security updates.

Sources: Microsoft CVE-2021-36934, NVD CVE-2021-36934.

Need help with this? Contact CySec for a free consultation.


All articles

Need help with this?

Our engineers can review your current setup and propose concrete improvements.