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
    • 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-1636

CVE-2021-1636: Microsoft SQL Server Privilege Escalation

CVE-2021-1636 is a privilege escalation vulnerability in Microsoft SQL Server that allows attackers to gain elevated privileges. This article covers technical details, affected versions, security impact, and mitigation.

Updated: May 16, 2026

CVE-2021-1636 Overview

CVE-2021-1636 is an elevation of privilege vulnerability in Microsoft SQL Server. The flaw is classified as a SQL Injection weakness under [CWE-89]. An authenticated attacker with low privileges can exploit the issue over the network to gain higher privileges on the database server. Successful exploitation results in compromise of confidentiality, integrity, and availability of the affected SQL Server instance. Microsoft addressed the vulnerability in the January 2021 Patch Tuesday release. The flaw affects multiple supported versions of SQL Server, including 2012 SP4, 2014 SP3, 2016 SP2, 2017, and 2019.

Critical Impact

An authenticated attacker can leverage SQL injection in Microsoft SQL Server to escalate privileges and execute commands in the security context of a higher-privileged database account.

Affected Products

  • Microsoft SQL Server 2012 SP4
  • Microsoft SQL Server 2014 SP3
  • Microsoft SQL Server 2016 SP2, 2017, and 2019 (x64)

Discovery Timeline

  • 2021-01-12 - CVE-2021-1636 published to NVD by Microsoft as part of the January 2021 Security Update
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-1636

Vulnerability Analysis

CVE-2021-1636 is a SQL injection vulnerability in Microsoft SQL Server that leads to elevation of privilege. The weakness is categorized under [CWE-89], indicating improper neutralization of special elements used in an SQL command. An attacker authenticated to a vulnerable SQL Server instance can submit crafted input that the database engine fails to sanitize correctly. The injected statements execute within a privileged context, allowing the attacker to run commands beyond the boundaries of their assigned role. The vulnerability requires network access to the SQL Server endpoint and valid low-privilege credentials. No user interaction is required, and the attack complexity is low.

Root Cause

The root cause is improper neutralization of attacker-controlled input within a SQL command processed by the database engine. Affected code paths concatenate or interpret input without enforcing parameterization or context-aware escaping. This permits attacker-supplied tokens to alter query semantics and execute under the privileges of the calling stored procedure or database role.

Attack Vector

The attack vector is network-based against the SQL Server listener (typically TCP/1433 or a named instance port). The attacker authenticates with any account that can submit queries or invoke vulnerable stored procedures or functions. The attacker then supplies crafted input that breaks out of the intended SQL context. Successful exploitation grants execution under a higher-privileged database principal, including potential sysadmin-equivalent operations, depending on the injected stored procedure context.

No public proof-of-concept code is referenced in the vendor advisory. See the Microsoft CVE-2021-1636 Advisory for vendor-confirmed technical details.

Detection Methods for CVE-2021-1636

Indicators of Compromise

  • Unexpected execution of xp_cmdshell, sp_OACreate, or other extended stored procedures by low-privilege accounts.
  • SQL Server error log entries showing failed query parsing with anomalous concatenated strings or comment sequences such as --, ;--, or /*.
  • Role membership changes in sys.server_role_members or sys.database_role_members not tied to a change ticket.
  • New logins or grants of sysadmin, db_owner, or CONTROL SERVER to accounts that previously had limited privileges.

Detection Strategies

  • Enable SQL Server Audit to capture SCHEMA_OBJECT_ACCESS_GROUP, DATABASE_ROLE_MEMBER_CHANGE_GROUP, and SERVER_ROLE_MEMBER_CHANGE_GROUP events.
  • Forward SQL Server audit logs and Windows Security events to a centralized analytics platform for correlation with authentication and process-execution telemetry.
  • Hunt for queries containing classic SQL injection patterns issued by application service accounts that normally use parameterized statements.

Monitoring Recommendations

  • Track invocations of high-privilege stored procedures originating from application-tier service accounts.
  • Monitor for SQL Server child process creation, particularly cmd.exe, powershell.exe, or sqlservr.exe-spawned shells.
  • Baseline expected query patterns per application and alert on deviations such as stacked queries or unusual EXEC calls.

How to Mitigate CVE-2021-1636

Immediate Actions Required

  • Apply the January 2021 Microsoft security update for the affected SQL Server version listed in the Microsoft CVE-2021-1636 Update.
  • Inventory all SQL Server instances, including SQL Express and embedded deployments, to confirm patch coverage.
  • Rotate credentials for any account suspected of having authenticated to an unpatched instance.
  • Review server and database role memberships for unauthorized changes since January 2021.

Patch Information

Microsoft released cumulative updates and GDR packages addressing CVE-2021-1636 for SQL Server 2012 SP4, 2014 SP3, 2016 SP2, 2017, and 2019. Administrators should consult the Microsoft CVE-2021-1636 Advisory for the exact build numbers and KB articles per supported branch. Apply the GDR or CU package matching the installed servicing branch and restart the SQL Server service.

Workarounds

  • Restrict network access to SQL Server listeners using host firewalls and segmentation, allowing only authorized application hosts.
  • Enforce least privilege by removing unnecessary db_owner, sysadmin, and CONTROL grants from application logins.
  • Disable unused extended stored procedures such as xp_cmdshell where not operationally required.
  • Require parameterized queries in application code and review stored procedures for dynamic SQL constructed with EXEC() or sp_executesql on untrusted input.
bash
# Configuration example: disable xp_cmdshell and verify advanced options
sqlcmd -S <server> -E -Q "EXEC sp_configure 'show advanced options', 1; RECONFIGURE; EXEC sp_configure 'xp_cmdshell', 0; RECONFIGURE;"

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

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechMicrosoft Sql Server

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability6.86%

  • 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
  • CWE References
  • CWE-89
  • Technical References
  • Microsoft CVE-2021-1636 Update

  • Microsoft CVE-2021-1636 Advisory
  • Related CVEs
  • CVE-2026-26115: SQL Server Privilege Escalation Flaw

  • CVE-2025-55227: SQL Server 2016 Privilege Escalation Flaw

  • CVE-2024-37980: SQL Server 2016 Privilege Escalation Flaw

  • CVE-2022-23276: Microsoft SQL Server 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