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-2023-21685

CVE-2023-21685: Windows 10 1507 WDAC RCE Vulnerability

CVE-2023-21685 is a remote code execution vulnerability in Microsoft WDAC OLE DB provider for SQL Server on Windows 10 1507. Attackers can exploit this flaw to execute arbitrary code. This article covers technical details, affected versions, impact assessment, and mitigation strategies.

Published: February 4, 2026

CVE-2023-21685 Overview

CVE-2023-21685 is a Remote Code Execution (RCE) vulnerability affecting the Microsoft WDAC OLE DB provider for SQL Server. This vulnerability allows attackers to execute arbitrary code on target systems through network-based attacks. The WDAC (Windows Data Access Components) OLE DB provider serves as a critical interface for applications connecting to SQL Server databases, making this vulnerability particularly concerning for enterprise environments.

An attacker could exploit this vulnerability by convincing a user to connect to a malicious SQL server or by man-in-the-middle attacks on legitimate database connections. Successful exploitation grants the attacker the ability to execute code with the privileges of the user running the affected application.

Critical Impact

Remote Code Execution vulnerability in Microsoft WDAC OLE DB provider for SQL Server enables attackers to execute arbitrary code on affected Windows systems through malicious database connections, potentially compromising confidentiality, integrity, and availability.

Affected Products

  • Microsoft Windows 10 (versions 1507, 1607, 1809, 20H2, 21H2, 22H2)
  • Microsoft Windows 11 (versions 21H2, 22H2)
  • Microsoft Windows Server 2008 (SP2 and R2 SP1)
  • Microsoft Windows Server 2012 (including R2)
  • Microsoft Windows Server 2016
  • Microsoft Windows Server 2019
  • Microsoft Windows Server 2022

Discovery Timeline

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

Technical Details for CVE-2023-21685

Vulnerability Analysis

This vulnerability resides in the Microsoft WDAC OLE DB provider for SQL Server, a core Windows component that enables applications to communicate with SQL Server databases using the OLE DB interface. The vulnerability is classified under CWE-20 (Improper Input Validation), indicating that the provider fails to properly validate certain inputs when processing SQL Server connections.

The attack requires user interaction, typically involving a scenario where the victim is tricked into connecting to a malicious SQL server controlled by the attacker. This could occur through phishing campaigns containing malicious connection strings, compromised applications with embedded database connections, or man-in-the-middle attacks that redirect legitimate database traffic.

When exploited, the attacker can achieve complete system compromise with the ability to execute arbitrary code in the context of the current user. If the user has administrative privileges, the attacker gains full control over the affected system.

Root Cause

The root cause of CVE-2023-21685 lies in improper input validation within the WDAC OLE DB provider when handling SQL Server protocol responses. The provider does not adequately sanitize or validate data received from SQL Server instances, allowing specially crafted responses to trigger memory corruption or other exploitation primitives.

This validation failure occurs during the connection establishment or data retrieval phases, where the provider processes server-supplied data without proper bounds checking or type validation. The CWE-20 classification confirms this is fundamentally an input validation deficiency in a critical system component.

Attack Vector

The attack vector for this vulnerability is network-based but requires user interaction. An attacker must establish a position where they can either:

  1. Malicious Server Attack: Host a rogue SQL Server instance and convince victims to connect to it through social engineering, malicious links, or compromised applications
  2. Man-in-the-Middle Attack: Intercept legitimate SQL Server connections and inject malicious responses

The attack does not require authentication to the target system, but the attacker must successfully manipulate the victim into initiating a database connection. The exploitation mechanism involves sending maliciously crafted responses from the attacker-controlled server that trigger the vulnerability in the OLE DB provider.

Once the malicious payload is processed, code execution occurs within the context of the application using the OLE DB provider, inheriting all permissions and access rights of that process.

Detection Methods for CVE-2023-21685

Indicators of Compromise

  • Unexpected outbound connections to unknown SQL Server instances on port 1433 or non-standard ports
  • Suspicious MSOLEDBSQL.dll or SQLOLEDB.dll module crashes or exceptions in application logs
  • Anomalous process creation chains originating from applications that use SQL Server connectivity
  • Memory corruption indicators in processes utilizing OLE DB providers

Detection Strategies

  • Monitor for unusual SQL Server connection patterns, particularly connections to external or unknown database servers
  • Implement application allowlisting to detect unauthorized processes spawned by OLE DB-consuming applications
  • Deploy endpoint detection rules to identify exploitation attempts targeting the WDAC OLE DB provider
  • Review Windows Event logs for OLE DB-related errors or crashes that may indicate exploitation attempts

Monitoring Recommendations

  • Enable detailed logging for database connectivity events across enterprise applications
  • Configure network monitoring to alert on SQL Server traffic to non-approved destinations
  • Implement behavioral analysis to detect post-exploitation activities following OLE DB provider abuse
  • Deploy SentinelOne Singularity platform for real-time detection of code execution attempts through this vector

How to Mitigate CVE-2023-21685

Immediate Actions Required

  • Apply the Microsoft security update released in February 2023 to all affected Windows systems immediately
  • Review and restrict outbound SQL Server connectivity to only approved database servers
  • Educate users about the risks of connecting to untrusted SQL Server instances
  • Implement network segmentation to limit exposure of systems using OLE DB providers

Patch Information

Microsoft has released security updates to address this vulnerability as part of the February 2023 Patch Tuesday release. Organizations should prioritize patching all affected Windows client and server systems. The official security advisory and patches are available through the Microsoft Security Response Center.

For systems that cannot be immediately patched, additional compensating controls should be implemented to reduce risk exposure.

Workarounds

  • Block outbound SQL Server traffic (TCP port 1433) to untrusted networks at the firewall level
  • Consider disabling the OLE DB provider if SQL Server connectivity is not required for specific applications
  • Implement strict application control policies to prevent unauthorized applications from using OLE DB
  • Use network-level authentication and encryption for all legitimate SQL Server connections
bash
# Block outbound SQL Server traffic to untrusted networks
# Windows Firewall rule to restrict SQL Server connections
netsh advfirewall firewall add rule name="Block Untrusted SQL" dir=out action=block protocol=tcp remoteport=1433 remoteip=any

# Allow only approved SQL Server destinations
netsh advfirewall firewall add rule name="Allow Approved SQL Servers" dir=out action=allow protocol=tcp remoteport=1433 remoteip=<APPROVED_SQL_SERVER_IP>

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechWindows

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability1.33%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-20

  • NVD-CWE-noinfo
  • Vendor Resources
  • Microsoft CVE-2023-21685 Update
  • Related CVEs
  • CVE-2026-33826: Windows Active Directory RCE Vulnerability

  • CVE-2026-32183: Windows Snipping Tool RCE Vulnerability

  • CVE-2026-32149: Windows Hyper-V RCE Vulnerability

  • CVE-2026-31995: Openclaw Command Injection 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