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

CVE-2023-36785: Microsoft ODBC Driver RCE Vulnerability

CVE-2023-36785 is a remote code execution vulnerability in Microsoft ODBC Driver for SQL Server that enables attackers to execute arbitrary code. This article covers the technical details, affected versions, and mitigation.

Published: February 11, 2026

CVE-2023-36785 Overview

CVE-2023-36785 is a remote code execution vulnerability affecting the Microsoft ODBC Driver for SQL Server. This vulnerability allows attackers to execute arbitrary code on affected systems through an integer underflow condition (CWE-191). The vulnerability requires local access and user interaction to exploit, but successful exploitation can result in complete system compromise with high impact to confidentiality, integrity, and availability.

Critical Impact

Successful exploitation of this integer underflow vulnerability enables attackers to achieve remote code execution, potentially leading to full system compromise across Windows, Linux, and macOS platforms running affected Microsoft ODBC drivers and SQL Server instances.

Affected Products

  • Microsoft ODBC Driver for SQL Server (Windows, Linux, macOS)
  • Microsoft SQL Server 2019 (Cumulative Update 22)
  • Microsoft SQL Server 2022 (Cumulative Update 8)

Discovery Timeline

  • 2023-10-10 - CVE-2023-36785 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2023-36785

Vulnerability Analysis

This vulnerability stems from an integer underflow weakness (CWE-191) in the Microsoft ODBC Driver for SQL Server. Integer underflow occurs when an arithmetic operation attempts to create a numeric value that is below the minimum value that can be represented within the available storage space. In the context of the ODBC driver, this flaw can be triggered during data processing operations, leading to unexpected behavior that attackers can leverage for code execution.

The vulnerability affects the ODBC driver across all major operating system platforms—Windows, Linux, and macOS—making it a cross-platform security concern for organizations utilizing Microsoft SQL Server infrastructure. The attack requires local access and some form of user interaction, typically through convincing a user to open a malicious file or connect to a specially crafted database.

Root Cause

The root cause of CVE-2023-36785 is an integer underflow condition (CWE-191) within the Microsoft ODBC Driver for SQL Server. When specific input values are processed, the arithmetic operations can result in integer underflow, causing memory corruption or other exploitable conditions. This type of vulnerability typically occurs when boundary checks are insufficient or absent, allowing calculations to produce values outside expected ranges.

Attack Vector

The attack vector for this vulnerability is local, requiring the attacker to have some level of access to the target system or the ability to influence a local user's actions. Exploitation typically involves:

  1. The attacker crafts malicious input designed to trigger the integer underflow condition
  2. The victim user interacts with the malicious content (such as opening a file or connecting to a database)
  3. The ODBC driver processes the malicious input, triggering the integer underflow
  4. The resulting memory corruption allows the attacker to execute arbitrary code with the privileges of the current user

The vulnerability does not require elevated privileges to exploit, but successful exploitation grants the attacker complete control over affected system resources—including data confidentiality, system integrity, and service availability.

Detection Methods for CVE-2023-36785

Indicators of Compromise

  • Unexpected crashes or errors in applications using Microsoft ODBC Driver for SQL Server
  • Anomalous process spawning from ODBC driver-related processes
  • Unusual memory access patterns or segmentation faults in SQL Server connectivity components
  • Suspicious database connection attempts with malformed parameters

Detection Strategies

  • Monitor for abnormal behavior in processes utilizing msodbcsql or related ODBC driver components
  • Implement application whitelisting to detect unauthorized code execution from ODBC driver paths
  • Deploy endpoint detection and response (EDR) solutions capable of identifying integer underflow exploitation patterns
  • Enable enhanced logging for database connectivity operations and review for anomalies

Monitoring Recommendations

  • Configure SIEM rules to alert on unexpected crashes or restarts of SQL Server client applications
  • Monitor file system access patterns for ODBC driver binaries and configuration files
  • Implement network monitoring for suspicious database connection patterns
  • Enable Windows Event Log auditing for process creation and module loading events

How to Mitigate CVE-2023-36785

Immediate Actions Required

  • Apply the latest Microsoft security updates for ODBC Driver for SQL Server immediately
  • Update Microsoft SQL Server 2019 to a version beyond Cumulative Update 22
  • Update Microsoft SQL Server 2022 to a version beyond Cumulative Update 8
  • Review and restrict local access to systems running vulnerable ODBC driver versions
  • Educate users about the risks of opening untrusted files or connecting to unknown database sources

Patch Information

Microsoft has released security updates to address CVE-2023-36785. Organizations should consult the Microsoft Security Update Guide for CVE-2023-36785 for detailed patch information and download links. The patches address the integer underflow condition in the ODBC Driver for SQL Server across all affected platforms (Windows, Linux, and macOS).

Ensure all instances of the ODBC Driver for SQL Server are updated to the latest available version. For SQL Server installations, apply the latest cumulative updates that supersede the vulnerable versions identified (SQL Server 2019 CU22 and SQL Server 2022 CU8).

Workarounds

  • Restrict local access to systems with vulnerable ODBC driver installations until patches can be applied
  • Implement application control policies to limit which applications can utilize ODBC connectivity
  • Use network segmentation to isolate database servers and limit potential attack surface
  • Consider temporarily disabling ODBC connectivity features in non-critical applications until patching is complete
bash
# Verify installed ODBC driver version on Windows
odbcconf /a {REGSVR "C:\Windows\System32\msodbcsql17.dll"}
# Check installed version via registry
reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft ODBC Driver 17 for SQL Server" /v Version

# On Linux, check ODBC driver version
odbcinst -q -d
cat /etc/odbcinst.ini

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.57%

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

  • NVD-CWE-noinfo
  • Vendor Resources
  • Microsoft Security Update CVE-2023-36785
  • 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