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
    • 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-2023-21528

CVE-2023-21528: Microsoft SQL Server RCE Vulnerability

CVE-2023-21528 is a remote code execution vulnerability in Microsoft SQL Server that enables attackers to execute arbitrary code on affected systems. This article covers technical details, affected versions, and mitigation.

Published: February 11, 2026

CVE-2023-21528 Overview

CVE-2023-21528 is a remote code execution vulnerability affecting Microsoft SQL Server. This vulnerability is classified as a Heap-based Buffer Overflow (CWE-122) that could allow an authenticated attacker to execute arbitrary code on vulnerable SQL Server instances. The local attack vector requires the attacker to have authenticated access to the target system, but successful exploitation grants the ability to compromise confidentiality, integrity, and availability of the database server.

Critical Impact

Successful exploitation allows attackers with local access to execute arbitrary code with elevated privileges on Microsoft SQL Server instances, potentially leading to complete database compromise, data theft, or ransomware deployment.

Affected Products

  • Microsoft SQL Server 2008 SP4
  • Microsoft SQL Server 2012 SP4
  • Microsoft SQL Server 2014 SP3
  • Microsoft SQL Server 2016 SP3 (x64)
  • Microsoft SQL Server 2017 (x64)
  • Microsoft SQL Server 2019 (x64)
  • Microsoft SQL Server 2022 (x64)

Discovery Timeline

  • February 14, 2023 - CVE-2023-21528 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2023-21528

Vulnerability Analysis

This vulnerability stems from a heap-based buffer overflow condition (CWE-122) within Microsoft SQL Server's processing routines. Heap-based buffer overflows occur when a program writes data beyond the allocated boundaries of a heap memory buffer, which can lead to memory corruption and ultimately enable arbitrary code execution.

The attack requires local access and low privileges to execute, meaning an authenticated user with basic permissions on the SQL Server instance could potentially leverage this flaw. While no user interaction is required for exploitation, the attacker must already have some level of authenticated access to the target system. The impact is severe across all three security pillars—confidentiality, integrity, and availability—as successful exploitation could grant the attacker elevated privileges on the database server.

Root Cause

The root cause of CVE-2023-21528 is a heap-based buffer overflow (CWE-122) vulnerability in Microsoft SQL Server. This class of vulnerability occurs when memory operations fail to properly validate buffer boundaries during heap memory allocation and manipulation. When crafted input is processed by a vulnerable SQL Server component, the overflow condition can corrupt adjacent heap memory structures, potentially allowing an attacker to hijack program execution flow.

Attack Vector

The attack vector for this vulnerability is local, requiring the attacker to have authenticated access to a system running a vulnerable Microsoft SQL Server instance. The exploitation scenario involves:

  1. An authenticated user gaining local access to a system with SQL Server installed
  2. Exploiting the heap-based buffer overflow through crafted input or operations
  3. Overwriting memory control structures to achieve code execution
  4. Executing arbitrary code with the privileges of the SQL Server process

The vulnerability mechanism involves improper bounds checking during memory operations. When SQL Server processes certain inputs or operations, insufficient validation allows data to overflow allocated heap buffers. This memory corruption can be leveraged to overwrite critical data structures, function pointers, or return addresses. For detailed technical information, refer to the Microsoft Security Update Guide.

Detection Methods for CVE-2023-21528

Indicators of Compromise

  • Unusual SQL Server process behavior including unexpected child processes or memory access patterns
  • Anomalous memory consumption spikes in sqlservr.exe processes
  • Evidence of exploitation attempts in SQL Server error logs or Windows Event Logs
  • Unexpected database operations or privilege changes following authentication

Detection Strategies

  • Deploy endpoint detection and response (EDR) solutions to monitor SQL Server processes for memory corruption indicators
  • Enable SQL Server audit logging to capture authentication events and suspicious query patterns
  • Implement application control policies to detect unauthorized code execution from SQL Server processes
  • Monitor for abnormal process creation chains originating from sqlservr.exe

Monitoring Recommendations

  • Configure Windows Event Log monitoring for SQL Server-related security events (Event IDs 33205, 33206, 33207)
  • Implement real-time alerting for failed authentication attempts followed by successful logins
  • Monitor SQL Server performance counters for unusual memory allocation patterns
  • Enable extended events auditing for security-relevant operations

How to Mitigate CVE-2023-21528

Immediate Actions Required

  • Apply the security updates from Microsoft immediately for all affected SQL Server versions
  • Audit and restrict local access to SQL Server instances to only necessary personnel
  • Implement network segmentation to limit exposure of SQL Server systems
  • Review and enforce the principle of least privilege for SQL Server accounts

Patch Information

Microsoft has released security updates to address this vulnerability. Administrators should obtain the appropriate patches from the Microsoft Security Update Guide for CVE-2023-21528. The patches are available for all supported versions including SQL Server 2014 SP3, 2016 SP3, 2017, 2019, and 2022. Legacy versions such as SQL Server 2008 SP4 and 2012 SP4 may require Extended Security Updates (ESU) subscriptions.

Workarounds

  • Restrict local logon rights to SQL Server hosts using Group Policy
  • Implement Windows Defender Credential Guard to limit credential exposure
  • Enable SQL Server audit features to detect exploitation attempts
  • Consider placing SQL Server instances in isolated network segments with strict access controls
bash
# Example: Audit local logon permissions for SQL Server service account
# Review and restrict accounts with local access
whoami /priv
net localgroup Users
net localgroup "Remote Desktop Users"

# Enable SQL Server auditing via T-SQL
# sqlcmd -S localhost -Q "CREATE SERVER AUDIT [SecurityAudit] TO FILE (FILEPATH = 'C:\SQLAudit\');"
# sqlcmd -S localhost -Q "ALTER SERVER AUDIT [SecurityAudit] WITH (STATE = ON);"

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechMicrosoft Sql Server

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability0.12%

  • 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
  • CWE References
  • CWE-122

  • NVD-CWE-noinfo
  • Vendor Resources
  • Microsoft Security Update CVE-2023-21528
  • Related CVEs
  • CVE-2020-0618: Microsoft SQL Server SSRS RCE Vulnerability

  • CVE-2025-49717: Microsoft SQL Server 2019 RCE Vulnerability

  • CVE-2024-21332: Microsoft SQL Server 2016 RCE Vulnerability

  • CVE-2024-21335: Microsoft SQL Server 2016 RCE Vulnerability
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