Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-40476

CVE-2021-40476: Windows 10 Privilege Escalation Vulnerability

CVE-2021-40476 is a privilege escalation vulnerability in Windows 10 AppContainer that allows attackers to elevate privileges. This article covers the technical details, affected versions, security impact, and mitigation.

Published: February 25, 2026

CVE-2021-40476 Overview

CVE-2021-40476 is a Windows AppContainer Elevation of Privilege vulnerability that affects a wide range of Microsoft Windows operating systems. This vulnerability exists in the Windows AppContainer implementation and can allow an attacker to escalate privileges on a vulnerable system. The flaw is related to insufficiently protected credentials (CWE-522) and requires local access with user interaction to exploit.

Critical Impact

Successful exploitation of this vulnerability could allow an attacker running within an AppContainer sandbox to escape the container restrictions and gain elevated privileges on the affected system, potentially compromising the confidentiality, integrity, and availability of the target environment.

Affected Products

  • Microsoft Windows 10 (multiple versions including 1607, 1809, 1909, 2004, 20H2, 21H1)
  • Microsoft Windows 11 (ARM64 and x64)
  • Microsoft Windows 8.1 and Windows RT 8.1
  • Microsoft Windows Server 2012, 2012 R2, 2016, 2019, and 2022

Discovery Timeline

  • 2021-10-13 - CVE-2021-40476 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-40476

Vulnerability Analysis

This vulnerability affects the Windows AppContainer sandboxing mechanism, specifically within the WSAQuerySocketSecurity function. AppContainers are designed to provide application isolation by restricting the capabilities and access rights of applications running within them. The vulnerability allows a malicious application running inside an AppContainer to bypass these security restrictions and gain elevated privileges.

The flaw is categorized under CWE-522 (Insufficiently Protected Credentials), indicating that the vulnerability involves improper handling of credential information that can be leveraged by an attacker to escalate privileges. An attacker must have local access to the target system and requires user interaction to successfully exploit this vulnerability.

Root Cause

The root cause of this vulnerability lies in the improper validation and protection of security-related information within the Windows socket security query functionality. When an application within an AppContainer makes certain socket security queries via WSAQuerySocketSecurity, the system fails to properly enforce the sandbox restrictions, allowing access to privileged information or operations that should be restricted within the AppContainer environment.

Attack Vector

The attack requires local access to the vulnerable system and user interaction to execute. An attacker could craft a malicious application designed to run within an AppContainer context. Once executed with user interaction, the application exploits the vulnerability in the socket security query mechanism to break out of the AppContainer sandbox and gain elevated privileges.

The exploitation flow involves:

  1. An attacker delivers a malicious application to the target system
  2. The user executes the application, which runs within an AppContainer sandbox
  3. The application makes specific calls to WSAQuerySocketSecurity that exploit the vulnerability
  4. The vulnerability allows the application to escape the sandbox restrictions and gain elevated privileges

Technical details regarding this vulnerability can be found in the Packet Storm Security advisory and the Microsoft Security Advisory.

Detection Methods for CVE-2021-40476

Indicators of Compromise

  • Unusual process behavior from applications running within AppContainers attempting to access privileged resources
  • Anomalous calls to WSAQuerySocketSecurity from sandboxed applications
  • Processes unexpectedly elevating from low-integrity AppContainer contexts to higher privilege levels

Detection Strategies

  • Monitor for suspicious activity from processes running within AppContainer sandboxes, particularly those making socket security-related API calls
  • Implement behavioral analysis to detect privilege escalation attempts from low-integrity processes
  • Deploy endpoint detection and response (EDR) solutions like SentinelOne Singularity to identify exploitation attempts in real-time

Monitoring Recommendations

  • Enable Windows Security event logging for process creation and privilege changes
  • Monitor for unusual parent-child process relationships involving AppContainer applications
  • Track API calls to Windows socket security functions from sandboxed contexts
  • Implement SentinelOne's Behavioral AI to detect and block privilege escalation attempts

How to Mitigate CVE-2021-40476

Immediate Actions Required

  • Apply the Microsoft security update released as part of the October 2021 Patch Tuesday immediately
  • Review and audit applications running within AppContainers for suspicious behavior
  • Ensure endpoint protection solutions are updated with the latest detection signatures
  • Limit user execution of untrusted applications that run in AppContainer contexts

Patch Information

Microsoft has released security updates to address this vulnerability as part of their October 2021 security release. Administrators should apply the appropriate patches for their affected Windows versions. Detailed patch information is available in the Microsoft Security Advisory for CVE-2021-40476.

Workarounds

  • Restrict execution of untrusted applications, particularly those utilizing AppContainer sandboxes
  • Implement application whitelisting to prevent unauthorized applications from running
  • Enable Windows Defender Application Control (WDAC) policies to limit application execution
  • Deploy SentinelOne Singularity Platform for real-time threat detection and automated response to exploitation attempts
bash
# Verify patch installation status via PowerShell
Get-HotFix | Where-Object {$_.Description -like "*Security Update*"} | Sort-Object InstalledOn -Descending
# Review installed Windows updates for October 2021 patches
wmic qfe list brief | findstr /i "KB5006"

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

  • EPSS Probability0.44%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-522
  • Technical References
  • Packet Storm Security Exploit
  • Vendor Resources
  • Microsoft Security Advisory CVE-2021-40476
  • Related CVEs
  • CVE-2026-33104: Windows Win32K Privilege Escalation Flaw

  • CVE-2026-33101: Windows Print Spooler Privilege Escalation

  • CVE-2026-33099: Windows WinSock Privilege Escalation Flaw

  • CVE-2026-33098: Windows Container Isolation Privilege Escalation
Default Legacy - Prefooter | 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