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-29047

CVE-2024-29047: Microsoft SQL Server 2019 RCE Vulnerability

CVE-2024-29047 is a remote code execution vulnerability in Microsoft OLE DB Driver for SQL Server 2019 that enables attackers to execute arbitrary code. This article covers technical details, affected versions, security impact, and mitigation.

Published: June 2, 2026

CVE-2024-29047 Overview

CVE-2024-29047 is a remote code execution vulnerability in the Microsoft OLE DB Driver for SQL Server. The flaw maps to [CWE-122] heap-based buffer overflow in the client-side driver component used by applications to connect to SQL Server. An attacker who controls a malicious SQL Server endpoint can execute arbitrary code on a client that connects to it. Successful exploitation requires user interaction, typically convincing a user or application to connect to an attacker-controlled database server. The vulnerability affects environments running Microsoft SQL Server 2019 and 2022 on x64 platforms.

Critical Impact

Successful exploitation enables remote code execution on the client system with the privileges of the application invoking the OLE DB Driver, resulting in full confidentiality, integrity, and availability impact.

Affected Products

  • Microsoft SQL Server 2019 (x64)
  • Microsoft SQL Server 2022 (x64)
  • Microsoft OLE DB Driver for SQL Server (client component)

Discovery Timeline

  • 2024-04-09 - CVE-2024-29047 published to NVD as part of Microsoft's April 2024 Patch Tuesday
  • 2025-01-15 - Last updated in NVD database

Technical Details for CVE-2024-29047

Vulnerability Analysis

The vulnerability resides in the Microsoft OLE DB Driver for SQL Server, a client-side component used by applications to communicate with SQL Server instances. The driver mishandles data received from a SQL Server during the connection or query response handling sequence. This mishandling produces a heap-based buffer overflow [CWE-122] in the client process. An attacker-controlled SQL Server can craft response data that overflows a heap allocation in the driver, corrupting adjacent memory.

Exploitation occurs over the network and does not require authentication on the client side. However, it requires user interaction, meaning a user or application must initiate a connection to the attacker-controlled server. Common scenarios include phishing a user into opening a database connection from a tool such as Excel, Power BI, SQL Server Management Studio, or any custom application using the driver.

Root Cause

The root cause is improper validation of length or size fields in server-supplied response data within the OLE DB Driver. When the driver allocates a heap buffer based on attacker-influenced metadata, oversized payload content writes beyond the bounds of the allocation. Heap corruption of this type can be leveraged to overwrite function pointers or virtual table entries reachable by the driver, enabling control over execution flow.

Attack Vector

The attack vector is network-based and exploits the trust relationship between client applications and SQL Server endpoints. An attacker stands up a malicious server that mimics the Tabular Data Stream protocol used by SQL Server. The attacker then induces a victim to connect by distributing a crafted connection string, an Office document with an external data source, or a malicious shortcut. When the victim's OLE DB Driver processes the malicious response, the heap overflow triggers and the attacker's payload executes in the context of the calling application. Public proof-of-concept code is not available for this CVE, and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog.

For technical details, see the Microsoft CVE-2024-29047 Advisory.

Detection Methods for CVE-2024-29047

Indicators of Compromise

  • Outbound TCP connections from workstations or application servers to unexpected external endpoints on port 1433 or other SQL Server ports
  • Crash dumps or Windows Error Reporting events naming msoledbsql.dll or oledb32.dll in the faulting module field
  • Unexpected child processes spawned by Office applications, sqlcmd.exe, ssms.exe, or custom line-of-business apps that use the OLE DB Driver
  • Office documents or .udl, .odc, or .dsn files containing connection strings referencing untrusted hosts

Detection Strategies

  • Hunt for process executions where parent processes such as excel.exe, powerbi.exe, or ssms.exe spawn shells (cmd.exe, powershell.exe) or LOLBins shortly after a network connection on SQL Server ports
  • Inspect outbound SQL Server traffic to non-corporate IP ranges and flag connections to newly registered or low-reputation domains
  • Correlate application crashes referencing the OLE DB Driver with preceding network activity to external SQL endpoints

Monitoring Recommendations

  • Enable Windows Event Log forwarding for Application Error events and process creation events with command-line auditing
  • Monitor egress firewall logs for TCP/1433, TCP/1434, and dynamic SQL ports leaving the corporate perimeter
  • Track installed versions of msoledbsql.dll across the fleet and alert on hosts running unpatched builds

How to Mitigate CVE-2024-29047

Immediate Actions Required

  • Apply the Microsoft security update for the OLE DB Driver for SQL Server referenced in the Microsoft CVE-2024-29047 Advisory to all systems with the driver installed
  • Inventory clients and servers that have msoledbsql.dll installed, including developer workstations and ETL servers, since the vulnerable component is the client driver rather than the SQL Server engine itself
  • Block outbound connections to SQL Server ports (1433/1434 and dynamic ranges) from endpoints that have no legitimate need to reach external databases

Patch Information

Microsoft released an updated Microsoft OLE DB Driver for SQL Server (MSOLEDBSQL) that corrects the heap buffer overflow. The patch is distributed via the Microsoft Update Catalog and the Microsoft CVE-2024-29047 Advisory. Update the driver on every host that installs it, including hosts where SQL Server tooling, Power BI Desktop, SSMS, or third-party applications bundle the driver. Verify msoledbsql.dll file version after deployment.

Workarounds

  • Restrict client systems to connecting only to approved internal SQL Server hostnames or IP ranges through host-based firewall rules
  • Train users to avoid opening Office documents, .udl, or .odc files from untrusted sources that may contain external SQL Server data connections
  • Where the OLE DB Driver is not required, uninstall it to remove the vulnerable component entirely
bash
# Verify installed OLE DB Driver version on Windows hosts
Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\MSOLEDBSQL" | Select-Object InstalledVersion

# Block outbound SQL traffic to non-corporate destinations
New-NetFirewallRule -DisplayName "Block Outbound SQL" `
    -Direction Outbound -Protocol TCP -RemotePort 1433,1434 `
    -RemoteAddress Internet -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/TechMicrosoft Sql Server

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability2.22%

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

  • NVD-CWE-noinfo
  • Vendor Resources
  • Microsoft CVE-2024-29047 Advisory
  • Related CVEs
  • CVE-2026-40370: SQL Server RCE Vulnerability

  • CVE-2026-33120: Microsoft SQL Server 2016 RCE Vulnerability

  • CVE-2020-0618: Microsoft SQL Server SSRS RCE Vulnerability

  • CVE-2025-49717: Microsoft SQL Server 2019 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