CVE-2019-1068 — Microsoft SQL Server Remote Code Execution Vulnerability

CVE-2019-1068

Microsoft SQL Server — Memory-Corruption RCE in the Database Engine

What is Microsoft SQL Server?

Microsoft SQL Server is one of the most widely deployed enterprise relational database platforms, running the SQL Server Database Engine (sqlservr.exe) as a Windows service that typically holds broad access to the host and to the data it stores. Because databases sit at the center of most application stacks and are frequently reachable from web and application tiers, remote code execution in the Database Engine gives an attacker a direct path to sensitive data and to lateral movement within an environment.

Overview

CVE-2019-1068 is a remote code execution vulnerability in the Microsoft SQL Server Database Engine caused by improper handling of a specially crafted function call / query request. An attacker who can authenticate to a vulnerable SQL Server instance and submit a malicious request can trigger memory corruption and execute arbitrary code in the security context of the SQL Server Database Engine service account. Because that service account is often privileged, successful exploitation can lead to full compromise of the database host.

Microsoft patched the flaw in the July 2019 Patch Tuesday release. CISA added it to the KEV catalog in August 2026 with a notably short remediation deadline, indicating confirmed active exploitation.

Affected Versions

Product Affected Fixed
SQL Server 2014 Service Pack 2 / SP3 before the July 2019 cumulative/security update July 2019 update (see MSRC)
SQL Server 2016 Service Pack 2 before the July 2019 update July 2019 update
SQL Server 2017 before the July 2019 CU / GDR update July 2019 update

Consult the Microsoft Security Update Guide for the exact GDR/CU build numbers that correspond to each servicing branch.

Technical Details

The vulnerability is a memory-corruption / RCE flaw in the Database Engine's handling of a crafted request. Exploitation requires the attacker to authenticate (PR:L) — any principal that can connect and issue queries is sufficient — but no user interaction and low attack complexity are needed once authenticated (AV:N/AC:L/UI:N). Code executes in the context of the Database Engine service account rather than the connecting user's low-privilege session, which is what elevates this from a data-access issue to host compromise. Environments that expose SQL Server directly to untrusted networks, or that grant broad login access, are at greatest risk.

Discovery

The vulnerability was reported to Microsoft through coordinated disclosure and fixed in the July 2019 security updates. Microsoft credits the reporting researcher in its Security Update Guide advisory; no public in-the-wild exploitation was reported at the time of the original patch.

Exploitation Context

CISA's August 2026 KEV listing — accompanied by an unusually tight remediation deadline — reflects evidence of active exploitation of unpatched SQL Server 2014/2016/2017 instances. The most exposed targets are servers reachable from the network with weak or shared SQL logins, or instances embedded in application stacks where an attacker who has compromised the application tier can authenticate to the database and pivot to code execution on the database host.

Remediation

  1. Apply the July 2019 (or any later) Microsoft security update for your SQL Server servicing branch. Because cumulative updates are, well, cumulative, any current CU/GDR build already includes this fix — bring instances up to a supported, patched build.
  2. Upgrade unsupported instances (SQL Server 2014 and 2016 are out of, or nearing the end of, extended support) to a supported version that still receives security fixes.
  3. Restrict network exposure — SQL Server should not be reachable from the internet; place it behind firewalls and restrict access to application and admin subnets only.
  4. Enforce least-privilege SQL logins and run the Database Engine service under a low-privileged, dedicated account rather than a highly privileged domain account, limiting the blast radius of RCE.
  5. Review authentication and query logs for anomalous logins and unexpected activity from the Database Engine service account, and hunt for signs of post-exploitation lateral movement.

Key Details

PropertyValue
CVE ID CVE-2019-1068
Vendor / Product Microsoft — SQL Server
NVD Published2019-07-15
NVD Last Modified2026-08-27
CVSS 3.1 Score8.8
CVSS 3.1 VectorCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
SeverityHIGH
CISA KEV Added2026-08-26
CISA KEV Deadline2026-08-29
Known Ransomware Use No

CVSS 3.1 Breakdown

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Required Action

CISA BOD 22-01 Deadline: 2026-08-29. Apply mitigations in accordance with vendor instructions, ensuring compliance with CISA’s BOD 26-04 Prioritizing Security Updates Based on Risk (see URL in Notes) guidance and CISA’s “Forensics Triage Requirements” (see URL in Notes). Follow applicable BOD 26-04 guidance for cloud services or discontinue use of the product if mitigations are unavailable. Stakeholders are responsible for evaluating each asset's internet exposure and ensuring adherence to BOD 26-04 patching guidelines.

Timeline

DateEvent
2019-07-09Microsoft addresses CVE-2019-1068 in the July 2019 Patch Tuesday release
2019-07-15CVE-2019-1068 published in the NVD
2026-08-26Added to CISA Known Exploited Vulnerabilities catalog
2026-08-29CISA remediation deadline

References

ResourceType
NVD — CVE-2019-1068 Vulnerability Database
CISA KEV Catalog Entry US Government
Microsoft Security Update Guide — CVE-2019-1068 Vendor Advisory