QID 378756

QID 378756: Microsoft SQL Server, ODBC and OLE DB Driver for SQL Server Remote Code Execution (RCE) Vulnerabilities for August 2023

Microsoft has released a security update to addressed a Remote Code Execution Vulnerability in OLE DB and ODBC driver for SQL Server. Both of these are APIs for Microsoft SQL server that provide access to a range of data sources.

Affected Software:
Microsoft ODBC Driver 17 for SQL Server on Windows version prior to 17.10.4.1
Microsoft ODBC Driver 18 for SQL Server on Windows version prior to 18.3.1.1
Microsoft ODBC Driver 17 for SQL Server on Linux version prior to 17.10.4.1
Microsoft ODBC Driver 18 for SQL Server on Linux version prior to 18.2.2
Microsoft SQL Server 2022 for x64-based Systems (CU 5)
Microsoft SQL Server 2019 for x64-based Systems (CU 21)
Microsoft OLE DB Driver 19 for SQL Server version prior to 19.3.1
Microsoft OLE DB Driver 18 for SQL Server version prior to 18.6.6

QID Detection Logic (Authenticated):
On Windows, this QID checks for the vulnerable version of ODBC and OLE DB via the registry keys "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft" and "HKEY_LOCAL_MACHINE\WOW6432Node\SOFTWARE\Microsoft" and the related sub keys for ODBC and OLE DB.
On Linux, this QID checks for the vulnerable version of ODBC based on the installed package.

Successful exploitation of this vulnerability may allow an attacker to execute arbitrary code on the target system.

  • CVSS V3 rated as Critical - 8.8 severity.
  • CVSS V2 rated as High - 7.5 severity.
  • Solution
    Customers are advised to refer to Microsoft SQL Server Security Advisory for more information regarding the vulnerabilities and their patches.
    Vendor References

    CVEs related to QID 378756

    Software Advisories
    Advisory ID Software Component Link
    Microsoft SQL Server Security Advisory URL Logo msrc.microsoft.com/update-guide/vulnerability/CVE-2023-38169