Skip to content
NewA calmer, faster ZeroHour
VulnerabilityKEVRansomware4 · 1 read

CVE-2021-42278

Privilege Escalation via sAMAccountName Spoofing in Microsoft Active Directory

CISA: Microsoft Active Directory Domain Services Privilege Escalation Vulnerability

CVSS 3.1
7.5 high
EPSS
73%p99
Published
·
Added to KEV
Analyze CVE-2021-42278 with Vani AIImpact, affected versions, exploitation status, mitigations and detection

CVE-2021-42278 is an elevation of privilege flaw in Microsoft Active Directory Domain Services (AD DS) caused by improper handling of changes to a computer account's sAMAccountName, allowing an attacker to 'spoof' a domain controller's name. A low-privileged authenticated user who can create or rename computer accounts (possible by default for ordinary domain users under MachineAccountQuota) renames a machine account to match a domain controller, obtains a Kerberos ticket for that name, and — typically chained with the related flaw CVE-2021-42287 — impersonates the domain controller to gain domain administrator rights. Successful exploitation yields full control of the Active Directory domain, which attackers, including ransomware operators, use to move laterally and deploy ransomware. Any organization running Active Directory on the affected Windows Server releases is exposed, though only servers with the AD DS role (domain controllers) reachable by an attacker with valid domain credentials are directly exploitable. The flaw is under active exploitation: it was added to CISA's Known Exploited Vulnerabilities catalog on 2022-04-11 with known ransomware use, and EPSS assigns a 73.3% probability of exploitation within 30 days.

What to do: Apply the Microsoft security updates for Active Directory Domain Services (released November 2021) to every domain controller, per CISA's required action. Until patched, restrict who can create or rename computer accounts (e.g., reduce MachineAccountQuota from the default 10) and audit domain controllers for renamed machine accounts and anomalous Kerberos tickets issued for domain controller names lacking the trailing '$'. Because CISA notes known ransomware use, hunt for signs of this flaw being chained with CVE-2021-42287 (the noPac technique) and for any new domain-admin activity on DCs.

ProductAffected
microsoft Windows Server 2004 (AD DS)Affected AD DS builds per Microsoft advisory; source data lists no specific version ranges
microsoft Windows Server 2008 (AD DS)Affected AD DS builds per Microsoft advisory; source data lists no specific version ranges
microsoft Windows Server 2012 (AD DS)Affected AD DS builds per Microsoft advisory; source data lists no specific version ranges
microsoft Windows Server 2016 (AD DS)Affected AD DS builds per Microsoft advisory; source data lists no specific version ranges
microsoft Windows Server 2019 (AD DS)Affected AD DS builds per Microsoft advisory; source data lists no specific version ranges
microsoft Windows Server 2022 (AD DS)Affected AD DS builds per Microsoft advisory; source data lists no specific version ranges
microsoft Windows Server 20H2 (AD DS)Affected AD DS builds per Microsoft advisory; source data lists no specific version ranges
Estimated exposure
mass≈1 million+ domain controllers across hundreds of thousands of organizations (AD is near-universal in Windows enterprise environments) — Active Directory is the de facto directory service for nearly all Windows enterprise environments — industry surveys and internet scans put AD deployments at hundreds of thousands of organizations with domain controllers in the millions —…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description · NVD

Active Directory Domain Services Elevation of Privilege Vulnerability

KEVCISA Known Exploited Vulnerability
Affected
Microsoft Active Directory
Required action
Apply updates per vendor instructions.
Due date
Ransomware use
Known
Vendors
microsoft
Products
windows server 2004, windows server 2008, windows server 2012, windows server 2016, windows server 2019, windows server 2022, windows server 20h2
Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

In the news

13 stories