Wavense
VulnerabilitiesVendorsMy Stack
Wavense© 2026 Wavense. All rights reserved.Privacy PolicyTerms & Conditions
Vulnerabilities/CVE-2023-21704
Vulnerability dossier

CVE-2023-21704

Microsoft ODBC Driver SQL Server Remote Code Execution

VendormicrosoftPublishedFeb 14, 2023SourceNVDWeaknessCWE-190
Plan a fix

Severe, but no confirmed exploitation yet. Schedule remediation in your next patch cycle and apply mitigations if you're exposed.

Severity
High · 7.8
CVSS base score
Exploitation
Not observed
No known exploitation or public exploit
Exploit likelihood
0.40%
Chance of exploitation in 30 days (EPSS)
Exposure
Local only
Requires local access to the host
01

What's the risk?

An attacker with a basic user account, with local access to the host, with no user interaction, can fully compromise the system — steal data, tamper with it and take it offline.

Microsoft ODBC Driver for SQL Server Remote Code Execution Vulnerability

How it's exploitedMITRE ATT&CK · inferred from weakness & vector
Privilege Escalation
T1068Exploitation for Privilege Escalation

Inferred from the weakness type (CWE) and how the flaw is reached — the techniques an attacker would chain to exploit this. Real-world corroboration appears here as threat intel is folded in.

02

Are we affected?

5
  • Affectedmicrosoft · sql_server2014
  • Affectedmicrosoft · sql_server2016
  • Affectedmicrosoft · sql_server2017
  • Affectedmicrosoft · sql_server2019
  • Affectedmicrosoft · sql_server2022
03

What to do

Generated by Wavense from the CVE record — an immediate mitigation and the permanent fix.

  1. !

    Mitigate now

    Until patches can be applied, restrict network access to SQL Server instances and clients using the ODBC driver to only trusted internal networks. Implement host-based intrusion prevention systems (HIPS) to monitor for and block suspicious process execution or network connections originating from systems utilizing the vulnerable driver. Additionally, ensure robust network segmentation is in place to limit the lateral movement potential if a compromise occurs.

  • ✓

    Permanent fix

    The permanent resolution requires applying the specific security update released by Microsoft that addresses CVE-2023-21704. Administrators should identify all systems with affected versions of the Microsoft ODBC Driver for SQL Server and deploy the corresponding patches without delay. Verify successful installation post-patching to ensure the vulnerability is fully remediated across the environment.

  • Technical details— weakness, CVSS vector & calculator, related CVEs

    Business impact

    An attacker could exploit this vulnerability to achieve remote code execution on a system running the vulnerable Microsoft ODBC Driver for SQL Server. This allows them to install programs, view, change, or delete data, or run commands on the compromised machine with the privileges of the user running the application using the driver. The technical consequences include full system compromise and data exfiltration, while business impacts range from service disruption to significant data breaches and compliance failures.

    Weakness

    1
    CWE-190Common Weakness Enumeration · MITRE definition

    CVSS 3.1 details

    CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
    0.0
    / 10.0 base
    High severity
    CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
    Exploitability metrics
    Attack VectorAV
    Requires local access to the target
    Attack ComplexityAC
    No special conditions required
    Privileges RequiredPR
    Basic user privileges
    User InteractionUI
    No user participation needed
    Impact metrics
    ScopeS
    Impact confined to the vulnerable component
    ConfidentialityC
    Total loss of confidentiality
    IntegrityI
    Total loss of integrity
    AvailabilityA
    Total loss of availability

    Related vulnerabilities

    Other CVEs affecting sql server

    NVD
    8.8High
    CVE-2020-0618KEV⚙ WeaponizedExploit likely

    A remote code execution vulnerability exists in Microsoft SQL Server Reporting Services when it incorrectly handles page requests, aka 'Microsoft SQL Server Reporting Services Remote Code Execution Vulnerability'.

    microsoftCWE-502Deserialization of Untrusted DataNetworkLow effortLow privNo interactionCIA
    2020-02-11
    NVD
    8.8High
    CVE-2019-1068KEVExploit likely

    A remote code execution vulnerability exists in Microsoft SQL Server when it incorrectly handles processing of internal functions, aka 'Microsoft SQL Server Remote Code Execution Vulnerability'.

    microsoftCWE-20Improper Input ValidationNetworkLow effortLow privNo interactionCIA
    2019-07-15
    NVD
    8.8High
    CVE-2012-1856KEVExploit likely

    The TabStrip ActiveX control in the Common Controls in MSCOMCTL.OCX in Microsoft Office 2003 SP3, Office 2003 Web Components SP3, Office 2007 SP2 and SP3, Office 2010 SP1, SQL Server 2000 SP4, SQL Server 2005 SP4, SQL Server 2008 SP2, SP3, R2, R2 SP1, and R2 SP2, Commerce Server 2002 SP4, Commerce Server 2007 SP2, Commerce Server 2009 Gold and R2, Host Integration Server 2004 SP1, Visual FoxPro 8.0 SP1, Visual FoxPro 9.0 SP2, and Visual Basic 6.0 Runtime allows remote attackers to execute arbitrary code via a crafted (1) document or (2) web page that triggers system-state corruption, aka "MSCOMCTL.OCX RCE Vulnerability."

    microsoftNetworkLow effortNo authUser neededCIA
    2012-08-14
    NVD
    8.8High
    CVE-2023-38169

    Microsoft SQL OLE DB Remote Code Execution Vulnerability

    microsoftCWE-416Use After FreeNetworkLow effortNo authUser neededCIA
    2023-08-08
    NVD
    8.8High
    CVE-2023-21713

    Microsoft SQL Server Remote Code Execution Vulnerability

    microsoftCWE-502Deserialization of Untrusted DataNetworkLow effortLow privNo interactionCIA
    2023-02-14
    NVD
    8.8High
    CVE-2023-21705

    Microsoft SQL Server Remote Code Execution Vulnerability

    microsoftCWE-321NetworkLow effortLow privNo interactionCIA
    2023-02-14
    NVD
    7.8High
    CVE-2023-32028

    Microsoft SQL OLE DB Remote Code Execution Vulnerability

    microsoftCWE-122Heap-based Buffer OverflowLocalLow effortNo authUser neededCIA
    2023-06-16
    NVD
    7.8High
    CVE-2023-21718

    Microsoft ODBC Driver for SQL Server Remote Code Execution Vulnerability

    microsoftCWE-191Integer UnderflowLocalLow effortNo authUser neededCIA
    2023-02-14
    0.0
    / 10.0 base
    High severity
    Key facts
    CVE ID
    CVE-2023-21704
    Published
    Feb 14, 2023
    Last modified
    Aug 19, 2026
    CVSS
    7.8 (v3.1)
    EPSS
    0.40%
    In CISA KEV
    No
    Confidence
    92/100
    Weakness
    CWE-190
    Timeline
    1. Feb 14, 2023Published to NVDNVD
    2. Aug 19, 2026Record last modifiedNVD
    3. Aug 20, 2026AI analysis generatedWavense
    View on NVD