The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2021-42278

CVE-2021-42278: Windows Server Privilege Escalation Flaw

CVE-2021-42278 is a privilege escalation vulnerability in Microsoft Windows Server Active Directory Domain Services that allows attackers to gain elevated privileges. This article covers technical details, affected versions, impact, and mitigation.

Published: March 4, 2026

CVE-2021-42278 Overview

CVE-2021-42278 is an Active Directory Domain Services (AD DS) Elevation of Privilege vulnerability that affects Microsoft Windows Server deployments. This vulnerability allows an authenticated attacker with low privileges to impersonate a domain controller by exploiting weaknesses in how AD DS handles the Security Account Manager (SAM) account name validation. When combined with CVE-2021-42287 (commonly referred to as "sAMAccountName Spoofing" or "noPac"), this vulnerability can enable complete domain takeover.

Critical Impact

This vulnerability is actively exploited in the wild and is listed in CISA's Known Exploited Vulnerabilities catalog. Successful exploitation allows authenticated attackers to escalate privileges to Domain Admin, potentially compromising the entire Active Directory environment.

Affected Products

  • Microsoft Windows Server 2004
  • Microsoft Windows Server 2008 (SP2 and R2 SP1)
  • Microsoft Windows Server 2012 (and R2)
  • Microsoft Windows Server 2016
  • Microsoft Windows Server 2019
  • Microsoft Windows Server 2022
  • Microsoft Windows Server 20H2

Discovery Timeline

  • 2021-11-10 - CVE-2021-42278 published to NVD
  • 2025-10-30 - Last updated in NVD database

Technical Details for CVE-2021-42278

Vulnerability Analysis

This vulnerability exists in how Active Directory Domain Services validates the sAMAccountName attribute during certain authentication operations. By default, Active Directory allows domain users to create machine accounts (up to 10 by default, controlled by the ms-DS-MachineAccountQuota attribute). When creating or modifying these machine accounts, AD DS fails to properly enforce that computer account names must end with a $ character.

An attacker can create a machine account and modify its sAMAccountName to match that of a Domain Controller (without the trailing $). This naming confusion can then be leveraged in conjunction with CVE-2021-42287 to obtain a Kerberos ticket for the actual Domain Controller account, effectively impersonating it and gaining Domain Admin privileges.

Root Cause

The root cause lies in insufficient validation of the sAMAccountName attribute within Active Directory Domain Services. The SAM-Account-Name attribute is supposed to be unique within a domain and follow specific naming conventions (computer accounts should end with $). However, AD DS does not properly enforce these constraints when users modify machine account names they control, allowing name spoofing attacks against privileged accounts like Domain Controllers.

Attack Vector

The attack requires network access to the domain environment and valid low-privilege domain credentials. The attack follows these stages:

  1. The attacker authenticates to the domain with a standard user account
  2. Using default permissions, the attacker creates a new machine account
  3. The attacker modifies the sAMAccountName of the machine account to match a Domain Controller's name (minus the $ suffix)
  4. The attacker requests a Kerberos TGT for the spoofed machine account
  5. The attacker changes the machine account name back to something else
  6. When requesting a service ticket, the KDC cannot find the original account and falls back to appending $, issuing a ticket for the actual Domain Controller
  7. The attacker now possesses a valid service ticket for the Domain Controller, enabling privilege escalation to Domain Admin

This attack is commonly automated using tools that exploit both CVE-2021-42278 and CVE-2021-42287 together.

Detection Methods for CVE-2021-42278

Indicators of Compromise

  • Unusual machine account creation by non-administrative users
  • Rapid changes to sAMAccountName attributes on machine accounts
  • Machine accounts with names matching Domain Controllers (without trailing $)
  • Anomalous Kerberos ticket requests following machine account name changes
  • Event ID 4741 (computer account created) followed by Event ID 4742 (computer account changed) in quick succession

Detection Strategies

  • Monitor Windows Security Event Logs for Event ID 4741 (machine account creation) and Event ID 4742 (machine account modification)
  • Enable auditing of Directory Service Changes to track sAMAccountName attribute modifications
  • Alert on machine account names that resemble Domain Controller names
  • Deploy SentinelOne Singularity platform to detect post-exploitation behaviors associated with noPac attacks
  • Implement honeypot machine accounts with names similar to DCs to detect spoofing attempts

Monitoring Recommendations

  • Enable advanced audit policies for account management and directory service access
  • Configure SIEM rules to correlate machine account creation with subsequent name changes
  • Monitor for unusual Kerberos authentication patterns from newly created machine accounts
  • Track ms-DS-MachineAccountQuota usage per user to identify potential abuse
  • Deploy endpoint detection on Domain Controllers to identify suspicious authentication activity

How to Mitigate CVE-2021-42278

Immediate Actions Required

  • Apply Microsoft security patches immediately to all affected Windows Server systems
  • Set ms-DS-MachineAccountQuota to 0 to prevent standard users from creating machine accounts
  • Review and audit existing machine accounts for suspicious naming patterns
  • Enable enhanced logging for Active Directory changes
  • Implement SentinelOne endpoint protection on all Domain Controllers and critical servers

Patch Information

Microsoft released security patches for this vulnerability in the November 2021 Patch Tuesday release. Organizations should apply the patches available through Windows Update or download them directly from the Microsoft Security Advisory for CVE-2021-42278. Given that this vulnerability is listed in the CISA Known Exploited Vulnerabilities catalog, federal agencies and critical infrastructure organizations should prioritize remediation.

Workarounds

  • Set ms-DS-MachineAccountQuota to 0 at the domain level to prevent non-admin users from creating machine accounts
  • Implement strict monitoring and alerting for any machine account creation or modification events
  • Apply the principle of least privilege by removing unnecessary permissions from user accounts
  • Consider implementing tiered administration models to limit exposure of privileged credentials
  • Use Group Policy to restrict which users can join computers to the domain
bash
# PowerShell command to set MachineAccountQuota to 0
Set-ADDomain -Identity "DC=yourdomain,DC=com" -Replace @{"ms-DS-MachineAccountQuota"="0"}

# Verify the change
Get-ADObject -Identity ((Get-ADDomain).distinguishedname) -Properties ms-DS-MachineAccountQuota | Select-Object ms-DS-MachineAccountQuota

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechWindows

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability94.07%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CISA KEV Information
  • In CISA KEVYes
  • CWE References
  • NVD-CWE-noinfo
  • Technical References
  • CISA Known Exploited Vulnerability
  • Vendor Resources
  • Microsoft Security Advisory CVE-2021-42278
  • Related CVEs
  • CVE-2026-23672: Windows UDFS Privilege Escalation Flaw

  • CVE-2026-25178: Windows WinSock Driver Privilege Escalation

  • CVE-2026-24283: Windows File Server Privilege Escalation

  • CVE-2026-24294: Windows SMB Server Privilege Escalation
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English