A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-2024-21451

CVE-2024-21451: Microsoft ODBC Driver RCE Vulnerability

CVE-2024-21451 is a remote code execution vulnerability in Microsoft ODBC Driver affecting Windows 10 1507 that allows attackers to execute arbitrary code. This article covers technical details, affected versions, and mitigation.

Published: June 2, 2026

CVE-2024-21451 Overview

CVE-2024-21451 is a remote code execution vulnerability in the Microsoft Open Database Connectivity (ODBC) Driver shipped with supported Windows client and server releases. The flaw is classified under [CWE-197] Numeric Truncation Error, indicating that improper handling of numeric conversions inside the driver enables an attacker to corrupt program state and execute arbitrary code in the context of the targeted user.

Exploitation requires user interaction over a network attack vector. A successful attack delivers full impact to confidentiality, integrity, and availability of the affected host.

Critical Impact

An attacker who convinces an authenticated user to connect to a malicious SQL server through the ODBC Driver can execute arbitrary code on the client system, leading to host compromise.

Affected Products

  • Microsoft Windows 10 (versions 1507, 1607, 1809, 21H2, 22H2)
  • Microsoft Windows 11 (versions 21H2, 22H2, 23H2)
  • Microsoft Windows Server 2008, 2012, 2016, 2019, 2022, and 2022 23H2

Discovery Timeline

  • 2024-03-12 - CVE-2024-21451 published to NVD
  • 2024-03-12 - Microsoft released security update guidance for CVE-2024-21451
  • 2024-12-05 - Last updated in NVD database

Technical Details for CVE-2024-21451

Vulnerability Analysis

The vulnerability resides in the Microsoft ODBC Driver, the component Windows applications use to communicate with SQL data sources. Microsoft classifies the issue as a remote code execution flaw rooted in a numeric truncation error [CWE-197]. When the driver processes attacker-controlled data returned from a SQL server, an integer value is truncated during conversion between larger and smaller numeric types. The truncated value is then used to size or index a subsequent operation, producing memory corruption inside the driver process.

Because the ODBC Driver runs inside the calling application, successful exploitation grants code execution with the privileges of the user that initiated the database connection. The attack is network-based but requires the victim to initiate a connection to an attacker-controlled SQL server, satisfying the user interaction requirement.

Root Cause

The root cause is improper validation of numeric values during type conversion inside the ODBC Driver. A larger integer is narrowed into a smaller type without bounds checking, producing an undersized buffer allocation or incorrect length value. Subsequent driver code writes attacker-controlled bytes based on the untruncated source, corrupting adjacent memory.

Attack Vector

An attacker hosts a malicious SQL server and lures an authenticated user to connect to it through any application that uses the Microsoft ODBC Driver. The server returns crafted result-set metadata or column data that triggers the truncation flaw. The driver corrupts process memory during result processing and executes attacker-supplied code in the application's context.

No verified public exploit code is available for CVE-2024-21451 at the time of writing. Refer to the Microsoft Security Update Guide for CVE-2024-21451 for vendor-provided technical context.

Detection Methods for CVE-2024-21451

Indicators of Compromise

  • Outbound TCP connections from user workstations to untrusted SQL server endpoints, particularly on TCP/1433 or non-standard ports configured for SQL Server.
  • Unexpected child processes spawned by applications that load odbc32.dll, msodbcsql17.dll, or msodbcsql18.dll.
  • Crash dumps or Windows Error Reporting entries referencing the ODBC Driver modules following a database connection attempt.

Detection Strategies

  • Monitor process telemetry for ODBC client applications (Excel, Power BI, custom line-of-business apps) that load ODBC modules and subsequently spawn command interpreters such as cmd.exe or powershell.exe.
  • Inspect SQL client traffic for connections to SQL servers outside approved corporate ranges or cloud database services.
  • Correlate endpoint identification of memory corruption signatures inside ODBC driver modules with recent network connections to unknown hosts.

Monitoring Recommendations

  • Enable PowerShell, process creation (Event ID 4688), and module load auditing on hosts that run database client applications.
  • Forward ODBC application crash events and Windows Error Reporting telemetry to a centralized SIEM for triage.
  • Maintain an inventory of systems with the ODBC Driver installed and track patch level against the Microsoft advisory.

How to Mitigate CVE-2024-21451

Immediate Actions Required

  • Apply the March 2024 Microsoft security updates that address CVE-2024-21451 across all supported Windows client and server versions.
  • Identify endpoints with the Microsoft ODBC Driver installed and confirm the driver binaries (msodbcsql17.dll, msodbcsql18.dll) are updated to the fixed versions referenced in the Microsoft advisory.
  • Restrict outbound SQL traffic from user workstations to approved database servers only.

Patch Information

Microsoft published fixes in the March 2024 Patch Tuesday cycle. Consult the Microsoft Security Update Guide for CVE-2024-21451 for the specific KB articles and ODBC Driver builds applicable to each Windows release.

Workarounds

  • Block outbound connections to untrusted SQL Server endpoints at the perimeter and host firewall layer until patches are deployed.
  • Educate users to avoid connecting to unsolicited database connection strings or .odc/.udl files received via email or links.
  • Where feasible, remove or disable unused ODBC data sources on endpoints that do not require database connectivity.
bash
# Example: enumerate installed ODBC drivers on a Windows host (PowerShell)
Get-OdbcDriver | Select-Object Name, Platform, Attribute

# Example: block outbound SQL traffic to non-approved hosts via Windows Firewall
New-NetFirewallRule -DisplayName "Block Untrusted SQL Outbound" `
  -Direction Outbound -Protocol TCP -RemotePort 1433 `
  -RemoteAddress Any -Action Block

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

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

  • NVD-CWE-noinfo
  • Vendor Resources
  • Microsoft Security Update CVE-2024-21451
  • Related CVEs
  • CVE-2026-33414: Podman HyperV Backend RCE Vulnerability

  • CVE-2026-33826: Windows Active Directory RCE Vulnerability

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

  • CVE-2026-32149: Windows Hyper-V RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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