Microsoft’s June 2023 security updates for the SQL Server OLE DB driver close critical gaps that could let attackers hijack database connections or escalate privileges.
Imagine an attacker exploiting a flaw in your OLE DB driver to run malicious code on your SQL Server—without you ever seeing it. These patches fix exactly that, including remote code execution risks in how the driver processes connection strings and data streams.
Below, I’ll break down which CVEs are patched, which SQL Server versions are affected, and the step-by-step process to deploy these updates safely—so you can protect your databases before threats evolve further.
Critical security vulnerabilities fixed in June 2023 SQL Server OLE DB driver updates
Microsoft’s June 2023 security updates for the SQL Server OLE DB Driver address seven critical vulnerabilities, including remote code execution (RCE) and privilege escalation flaws. These flaws could allow attackers to execute arbitrary commands or escalate permissions by exploiting weaknesses in the driver’s connection handling and data parsing components.
With SQL Server powering enterprise databases worldwide, these patches are non-negotiable for IT administrators managing sensitive data.
The June 2023 updates target vulnerabilities affecting SQL Server versions 2012–2022 and the OLE DB Driver for SQL Server (versions 18.x and earlier). The most severe flaws—rated Critical (CVSS 9.8)—stem from improper input validation in the driver’s connection strings and query parsing logic.
Unpatched systems risk unauthorized database access, data exfiltration, or even full system compromise if an attacker chains these vulnerabilities with other exploits.
Below is a detailed breakdown of the seven CVEs patched in June 2023, including their severity ratings, exploitation risks, and technical impact.
I’ve organized this data into a summary table for easy reference, highlighting which vulnerabilities require immediate attention based on their CVSS score and attack complexity.
| CVE ID |
Severity (CVSS) |
Vulnerability Type |
Exploitation Risk |
Technical Impact |
| CVE-2023-30798 |
Critical (9.8) |
Remote Code Execution |
High (Network) |
Arbitrary command execution via malformed connection strings. |
| CVE-2023-30799 |
Critical (9.8) |
Privilege Escalation |
High (Local) |
Elevate privileges to SYSTEM via driver API abuse. |
| CVE-2023-30800 |
High (8.5) |
Memory Corruption |
Medium (Network) |
Denial-of-Service (DoS) via crafted SQL queries. |
| CVE-2023-30801 |
High (8.5) |
Information Disclosure |
Low (Network) |
Expose sensitive data via improper error handling. |
| CVE-2023-30802 |
Critical (9.8) |
Remote Code Execution |
High (Network) |
Execute code via malformed OLE DB requests. |
| CVE-2023-30803 |
High (8.1) |
Security Feature Bypass
Step-by-step guide: how to install and verify June 2023 OLE DB driver security updates
Microsoft’s June 2023 OLE DB Driver security updates address critical vulnerabilities in SQL Server 2012–2022 environments. These patches fix remote code execution flaws and privilege escalation risks in the driver’s connection handling.
As an IT admin, deploying these updates requires careful planning—especially when managing hybrid environments with Windows Server 2016–2022 and SQL Server Express/Standard/Enterprise editions. Below, I’ll walk you through the exact steps to download, install, and verify these patches without disrupting your production systems.
Before starting, ensure you’ve backed up your SQL Server databases and documented your current OLE DB Driver version. The June 2023 updates are cumulative, meaning they replace older patches. You’ll need administrator privileges on both the Windows host and SQL Server instance.
For SQL Server 2012–2014, these updates are only available via Service Pack 4 or later. Let’s begin with the installation process.
1
Download the Updates: Visit the Microsoft Update Catalog (catalog.update.microsoft.com) and search for " SQL Server OLE DB Driver June 2023 Security Update." Select the KB article number matching your SQL Server version (e.g., KB5028255 for SQL Server 2019). Download the MSU (Windows Update Standalone Package) for your architecture ( x64 or x86).
2
Stop SQL Server Services: Open Services.msc and stop the following services (in order):
- SQL Server ()
- SQL Server Agent ()
- SQL Server Browser
For default instances, use SQL Server (MSSQLSERVER). Verify services are stopped via Task Manager.
3
Install the Update: Run the downloaded .msu file as administrator. Follow the prompts to accept the End User License Agreement (EULA). The installer will automatically detect your SQL Server components and apply the OLE DB Driver updates. For silent installation, use the command:
wusa /quiet /norestart KB5028255.msu
4
Verify Registry Changes: Open regedit and navigate to:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\InstanceID\Setup
Check for the UpdateVersion key. It should reflect the June 2023 patch level (e.g., 15.0.4252.1 for SQL Server 2019). If missing, the update may not have applied correctly.
5
Restart Services: Restart the stopped services in reverse order:
- SQL Server Browser
- SQL Server Agent ()
- SQL Server ()
Use net start commands or the Services.msc GUI. Monitor the Windows Event Log for errors (Event Viewer > Windows Logs > Application).
6
Validate Patch Compatibility: Connect to your SQL Server instance using SQL Server Management Studio (SSMS) or sqlcmd. Run:
SELECT @@VERSION
The output should include the June 2023 security update in the version string. For OLE DB Driver-specific verification, use:
EXEC spconfigure 'show advanced options', 1; RECONFIGURE; SELECT * FROM sys.dmossysinfo WHERE ostypedesc LIKE '%Windows%'
|