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-42287

CVE-2021-42287: Windows Server 2008 Privilege Escalation

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

Published: March 4, 2026

CVE-2021-42287 Overview

CVE-2021-42287 is a critical Elevation of Privilege vulnerability affecting Microsoft Active Directory Domain Services (AD DS). This vulnerability allows an authenticated attacker with low privileges to escalate their permissions to Domain Administrator level by exploiting a flaw in the Kerberos Privilege Attribute Certificate (PAC) validation process. The vulnerability is particularly dangerous when combined with CVE-2021-42278 (sAMAccountName Spoofing), enabling a complete domain takeover attack chain commonly known as "noPac" or "sAMAccountName Spoofing."

Critical Impact

This vulnerability enables authenticated users to escalate privileges to Domain Administrator, potentially leading to complete Active Directory domain compromise. CISA has added this vulnerability to its Known Exploited Vulnerabilities catalog, confirming active exploitation in the wild.

Affected Products

  • 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

Discovery Timeline

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

Technical Details for CVE-2021-42287

Vulnerability Analysis

The vulnerability resides in how Active Directory Domain Services handles Kerberos authentication and the Privilege Attribute Certificate (PAC) during the Ticket Granting Service (TGS) request process. When a Key Distribution Center (KDC) receives a TGS request for a service ticket, it must locate the account associated with the requesting ticket. If the KDC cannot find the account specified in the TGS request, it attempts to add a trailing dollar sign ($) to the account name and searches again, assuming the requestor might be a machine account.

This behavior becomes exploitable when an attacker creates a machine account (which standard domain users can do by default), renames it to match a Domain Controller's sAMAccountName (without the trailing $), requests a Ticket Granting Ticket (TGT), and then renames the account again. When the attacker subsequently requests a service ticket using the TGT, the KDC fails to find the original account, appends the $ character, and inadvertently issues a ticket with the privileges of the Domain Controller—effectively granting Domain Administrator access.

Root Cause

The root cause of CVE-2021-42287 lies in insufficient validation within the Kerberos PAC handling logic. The KDC's fallback mechanism of appending a dollar sign to account names when the original account cannot be found creates an authentication bypass condition. This design flaw, combined with the default ability for authenticated users to create machine accounts and the lack of proper binding between the TGT and the current state of the account, enables the privilege escalation attack.

Attack Vector

The attack is network-based and requires only low-level authenticated access to the domain. An attacker can exploit this vulnerability remotely without any user interaction. The attack sequence involves:

  1. The attacker creates a new machine account using default domain permissions
  2. The attacker changes the machine account's sAMAccountName attribute to match a Domain Controller name (minus the trailing $)
  3. A TGT is requested for this spoofed account
  4. The attacker reverts the sAMAccountName to its original value
  5. Using the obtained TGT, the attacker requests a service ticket (S4U2self)
  6. The KDC, unable to find the account, appends $ and issues a ticket with Domain Controller privileges

This attack chain requires no specialized tools beyond standard Kerberos utilities and can be executed rapidly once an attacker has any authenticated foothold in the domain.

Detection Methods for CVE-2021-42287

Indicators of Compromise

  • Unusual machine account creation activity from non-administrative users
  • Rapid succession of sAMAccountName attribute modifications on computer objects
  • TGT requests immediately followed by account rename operations
  • S4U2self service ticket requests from accounts that were recently modified
  • Event ID 4741 (computer account creation) followed closely by Event ID 4742 (computer account modification)

Detection Strategies

  • Monitor for Event ID 4781 (account name changes) on Domain Controllers, particularly for machine accounts
  • Implement alerts for Event ID 4769 (Kerberos Service Ticket Operations) where the service name matches a Domain Controller but the requestor is unexpected
  • Track machine account creation (Event ID 4741) and correlate with subsequent privilege escalation indicators
  • Deploy detection rules for rapid sequences of account creation, modification, and Kerberos ticket requests within short timeframes

Monitoring Recommendations

  • Enable Advanced Audit Policy for DS Access and Account Management on all Domain Controllers
  • Configure SIEM rules to correlate machine account lifecycle events with Kerberos authentication events
  • Monitor for tools commonly associated with this attack such as Rubeus, noPac.exe, and Impacket script signatures
  • Implement baseline monitoring for normal machine account creation patterns to identify anomalies

How to Mitigate CVE-2021-42287

Immediate Actions Required

  • Apply the Microsoft security update KB5008380 (or later cumulative updates) to all Domain Controllers immediately
  • Audit and reduce the ms-DS-MachineAccountQuota attribute value from the default of 10 to 0 to prevent standard users from creating machine accounts
  • Review existing machine accounts for suspicious naming patterns or recent modifications
  • Enable Protected Users security group membership for high-privilege accounts
  • Verify that all Domain Controllers have been patched before removing any compensating controls

Patch Information

Microsoft released patches addressing CVE-2021-42287 as part of the November 2021 security updates. The fix modifies how the KDC validates PAC information during TGS requests, ensuring proper account binding throughout the authentication process. Organizations should refer to the Microsoft Security Advisory CVE-2021-42287 for detailed patch information. This vulnerability is tracked in the CISA Known Exploited Vulnerabilities Catalog, which mandates federal agencies to apply remediation.

Workarounds

  • Set ms-DS-MachineAccountQuota to 0 to prevent standard users from creating machine accounts, reducing the attack surface
  • Implement strict monitoring and alerting for any machine account modifications pending patch deployment
  • Consider enabling audit mode for the PAC validation changes before full enforcement to identify potential compatibility issues
  • Restrict delegation settings and review existing Kerberos delegation configurations across the domain
bash
# PowerShell: Set MachineAccountQuota to 0 to prevent unprivileged machine account creation
Set-ADDomain -Identity "DC=domain,DC=com" -Replace @{"ms-DS-MachineAccountQuota"="0"}

# PowerShell: Query current MachineAccountQuota value
Get-ADObject -Identity ((Get-ADDomain).distinguishedname) -Properties ms-DS-MachineAccountQuota

# PowerShell: Find recently modified machine accounts (last 7 days)
Get-ADComputer -Filter * -Properties whenChanged | Where-Object {$_.whenChanged -gt (Get-Date).AddDays(-7)} | Select-Object Name, whenChanged

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 Score8.8

  • EPSS Probability94.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CISA KEV Information
  • In CISA KEVYes
  • CWE References
  • NVD-CWE-noinfo
  • Technical References
  • CISA Known Exploited Vulnerabilities Catalog
  • Vendor Resources
  • Microsoft Security Advisory CVE-2021-42287
  • 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