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-2020-17087

CVE-2020-17087: Windows 10 Privilege Escalation Vulnerability

CVE-2020-17087 is a privilege escalation vulnerability in Microsoft Windows 10 1507 that allows attackers to gain elevated system privileges. This article covers the technical details, affected versions, impact, and mitigation.

Published: March 11, 2026

CVE-2020-17087 Overview

CVE-2020-17087 is a Windows Kernel Local Elevation of Privilege vulnerability affecting the Windows Kernel Cryptography Driver (cng.sys). This vulnerability allows an authenticated local attacker to escalate privileges to SYSTEM level by exploiting an improper buffer size calculation in the kernel cryptographic driver. The vulnerability exists due to an integer truncation error (CWE-131: Improper Calculation of Buffer Size) when processing certain IOCTL requests.

Critical Impact

This vulnerability is listed in CISA's Known Exploited Vulnerabilities (KEV) catalog, indicating confirmed active exploitation in the wild. When chained with other vulnerabilities, it enables complete system compromise from an initial low-privileged foothold.

Affected Products

  • Microsoft Windows 7 SP1
  • Microsoft Windows 8.1 and Windows RT 8.1
  • Microsoft Windows 10 (versions 1507, 1607, 1803, 1809, 1903, 1909, 2004, 20H2)
  • Microsoft Windows Server 2008 SP2 and R2 SP2
  • Microsoft Windows Server 2012 and R2
  • Microsoft Windows Server 2016 (including versions 1903, 1909, 2004, 20H2)
  • Microsoft Windows Server 2019

Discovery Timeline

  • November 11, 2020 - CVE-2020-17087 published to NVD
  • October 29, 2025 - Last updated in NVD database

Technical Details for CVE-2020-17087

Vulnerability Analysis

The vulnerability resides in the Windows Kernel Cryptography Driver (cng.sys), specifically in the cng!CfgAdtpFormatPropertyBlock function. The flaw occurs due to a 16-bit integer truncation issue when calculating buffer sizes for cryptographic operations. When a user-mode application sends a specially crafted IOCTL to the cng.sys driver, the improper size calculation leads to a pool buffer overflow condition.

The vulnerability allows an attacker with low privileges on a local system to execute arbitrary code in kernel mode. By carefully crafting the input data, an attacker can trigger the buffer overflow to corrupt adjacent kernel pool memory, potentially overwriting critical data structures. This corruption can be leveraged to achieve arbitrary code execution with SYSTEM privileges.

Root Cause

The root cause is classified as CWE-131 (Improper Calculation of Buffer Size). The cng.sys driver performs a size calculation using a 16-bit integer that can be truncated when processing large input values. This truncation results in an undersized buffer allocation, while subsequent operations use the original, larger size value, causing a heap-based buffer overflow in the Windows kernel pool.

Attack Vector

The attack requires local access to the target system with low-level user privileges. The attacker must be able to execute code locally to send malicious IOCTL requests to the vulnerable driver. The exploitation does not require user interaction and can be triggered programmatically.

The attack flow typically involves:

  1. An attacker gains initial access to a Windows system with a low-privileged account
  2. The attacker crafts a malicious IOCTL request with specific parameters designed to trigger the integer truncation
  3. The request is sent to the cng.sys driver through the DeviceIoControl API
  4. The undersized buffer allocation combined with oversized data write causes kernel pool corruption
  5. Through heap spray techniques and controlled memory layout, the attacker gains arbitrary code execution in kernel mode
  6. The attacker obtains SYSTEM-level privileges on the compromised system

Detection Methods for CVE-2020-17087

Indicators of Compromise

  • Unusual IOCTL requests targeting the \Device\CNG device object
  • Abnormal process behavior following cryptographic API calls, particularly from untrusted applications
  • System crashes (BSOD) with stop codes related to kernel pool corruption or cng.sys
  • Unexpected privilege escalation events where low-privileged processes spawn SYSTEM-level child processes

Detection Strategies

  • Monitor for suspicious DeviceIoControl calls targeting cng.sys with abnormal buffer sizes
  • Implement kernel-level monitoring for pool corruption patterns associated with this vulnerability
  • Deploy endpoint detection solutions capable of detecting kernel exploitation techniques
  • Use Windows Event Tracing (ETW) to monitor cryptographic driver activity

Monitoring Recommendations

  • Enable and monitor Windows Security Event logs for privilege escalation events (Event ID 4672, 4673)
  • Configure endpoint detection and response (EDR) tools to alert on suspicious kernel driver interactions
  • Monitor for processes making unusual cryptographic API calls followed by privilege changes
  • Implement behavioral analysis to detect exploitation chains combining this vulnerability with initial access vectors

How to Mitigate CVE-2020-17087

Immediate Actions Required

  • Apply the Microsoft security update immediately to all affected Windows systems
  • Prioritize patching for internet-facing systems and high-value assets due to confirmed active exploitation
  • Review systems for signs of compromise given this vulnerability's inclusion in CISA's KEV catalog
  • Implement application whitelisting to prevent unauthorized code execution that could leverage this vulnerability

Patch Information

Microsoft has released security updates addressing this vulnerability. Patches are available through the Microsoft Security Response Center (MSRC) advisory. Organizations should apply the appropriate updates for their Windows versions through Windows Update, WSUS, or SCCM.

Given this vulnerability is listed in the CISA Known Exploited Vulnerabilities Catalog, federal agencies and organizations following CISA guidance are required to remediate this vulnerability according to mandated timelines.

Workarounds

  • Limit local access to systems by enforcing strict user account policies and least privilege principles
  • Implement network segmentation to contain potential lateral movement if exploitation occurs
  • Deploy application control solutions to prevent execution of untrusted code that could exploit this vulnerability
  • Monitor and restrict access to cryptographic APIs for non-essential applications
bash
# Verify patch installation status
wmic qfe list | findstr /i "KB4586781 KB4586786 KB4586787"

# Check cng.sys driver version (patched versions will have updated timestamps)
dir C:\Windows\System32\drivers\cng.sys

# Enable advanced audit logging for privilege escalation detection
auditpol /set /subcategory:"Sensitive Privilege Use" /success:enable /failure:enable

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 Probability17.83%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/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
  • CWE-131
  • Technical References
  • CISA Known Exploited Vulnerabilities CVE-2020-17087
  • Vendor Resources
  • Microsoft Security Advisory CVE-2020-17087
  • 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