CVE-2026-118117 — Microsoft SQL Server 2017 (GDR)
One of 40 Microsoft SQL Server 2017 (GDR) vulnerabilities published together by NVD: our article covers all of them.
MicrosoftWebDatabasesVulnerabilitiesResearch article
CVE-2026-118117: SQL Injection in Microsoft SQL Server Enables Privilege Elevation
| CVE | CVE-2026-118117 |
|---|---|
| Vendor and product | Microsoft SQL Server 2017 (GDR); Microsoft SQL Server 2017 for x64-based Systems (CU31); Microsoft SQL Server 2019 (GDR) |
| Published | November 12, 2026 07:20 UTC |
| Research cut-off | November 12, 2026 07:12 UTC |
| Sources reviewed | 3: NVD record (last modified 2026-11-10); CISA KEV catalog; 1 vendor bulletin |
Executive summary
CVE-2026-118117 is a SQL injection flaw (CWE-89) in Microsoft SQL Server that allows an authenticated attacker to elevate privileges over a network [1, 3]. Microsoft rates it HIGH with a CVSS 3.1 base score of 8.0 and vector CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H [1]. The affected products span SQL Server 2017, 2019, 2022 and 2025 across specific GDR and cumulative update (CU) builds, each with a published fixed build [1]. Exploitation requires network access, low privileges and user interaction per the CVSS vector [1]; the sources do not describe the specific injectable interface or the exact interaction required. As of 2026-11-12 the vulnerability is not listed in CISA's Known Exploited Vulnerabilities catalog, and no public proof of concept or in-the-wild exploitation is documented in the reviewed sources [2]. The most important immediate action is to apply the fixed build for your SQL Server version via Microsoft's update guide (MSRC CVE-2026-118117) [1, 3]. The NVD record is still Awaiting Analysis, so classifications may be refined [1].
Key points
- CVE-2026-118117 is a SQL injection (CWE-89) elevation-of-privilege flaw in Microsoft SQL Server, rated 8.0 HIGH (CVSS 3.1: AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H) by Microsoft [1, 3].
- Affected: SQL Server 2017, 2019, 2022 and 2025 across specific GDR and CU builds, each with a published fixed build [1].
- Exploitation requires network access, low privileges and user interaction per the CVSS vector; the specific injectable interface is not disclosed [1].
- Not listed in CISA KEV as of 2026-11-12; no public PoC or in-the-wild exploitation in the reviewed sources [2].
- Remediation is to apply the fixed build matching your edition/branch via MSRC CVE-2026-118117 [1, 3].
Vulnerability identification
| Field | Value | Source |
|---|---|---|
| CVE ID | CVE-2026-118117 | [1] |
| Vendor | Microsoft | [1, 3] |
| Product | Microsoft SQL Server | [1, 3] |
| Component | SQL command processing (SQL injection) | [1, 3] |
| Affected platform | SQL Server 2017, 2019, 2022, 2025 (GDR and CU builds) | [1] |
| Published | 2026-11-10T19:19:30 | [1] |
| Last modified | 2026-11-10T20:18:11 | [1] |
| Record status | Awaiting Analysis | [1] |
| CWE | CWE-89 (SQL Injection) | [1] |
| CVSS 3.1 base | 8.0 HIGH, CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H, scored by secure@microsoft.com (Secondary) | [1] |
| Vulnerability class | Elevation of Privilege | [3] |
| Advisory | MSRC CVE-2026-118117 | [1, 3] |
CWE-89 describes a weakness in which externally supplied input is incorporated into an SQL statement without adequate neutralization, allowing an attacker to alter the structure or logic of the query [1]. Note that NVD has not completed its own analysis; the only CVSS score present was provided by Microsoft as a secondary scorer [1].
Technical background
Microsoft SQL Server is a relational database management system that processes queries written in Transact-SQL (T-SQL) [1, 3]. In normal operation, the engine parses, compiles and executes SQL statements under the security context of the connecting principal, with permissions enforced by server-level and database-level roles. A trust boundary exists wherever user- or application-supplied data is combined into an SQL statement: data must be kept distinct from executable command structure, typically through parameterization. The reviewed sources identify the affected component only as SQL Server and the weakness as SQL injection; they do not name the specific stored procedure, function, module or interface where the flaw resides [1, 3].
Vulnerability description
The vulnerability is an SQL injection condition in SQL Server that lets an authorized (authenticated) attacker raise their privileges over a network [1, 3]. The security property most directly violated is authorization/privilege separation: the attacker is able to execute operations beyond their assigned permission level [3]. The CVSS vector indicates high impact to confidentiality, integrity and availability, with scope unchanged [1]. For the flaw to matter, the attacker must already hold some level of access to the server and the vector indicates user interaction is required [1]. The reviewed sources do not describe the precise injectable input, what elevated privilege is attained, or what user interaction entails.
Root cause analysis
Confirmed: the root cause is classified as CWE-89, improper handling of special characters within an SQL statement, allowing attacker-controlled input to change query semantics [1]. Analyst assessment: SQL injection of this type typically arises when dynamic SQL is built by concatenating input rather than using parameterized commands or correct escaping, and when a privileged context executes the resulting statement, enabling privilege elevation. The specific code path, procedure or input that fails neutralization is not disclosed by the reviewed sources [1, 3].
Technical mechanics
The reviewed sources provide only a high-level classification, so the following is a conceptual, defensive outline rather than a confirmed exploitation path.
- An authenticated principal with low privileges connects to an affected SQL Server instance over the network [1].
- The principal supplies input that reaches an SQL statement which does not adequately neutralize special elements (CWE-89) [1].
- Because the input alters query structure, operations execute beyond the principal's intended authorization, resulting in elevation of privilege [1, 3].
- Per the CVSS vector, some user interaction is also required for the attack to succeed (UI:R), the detail of which is not described in the sources [1].
Illustrative (not confirmed by sources):
[Low-priv authenticated user] --network--> [SQL Server query path lacking neutralization]
--> query logic altered --> operation runs with elevated privilege
The control that should have prevented this is strict separation of data from command structure (parameterized queries / correct escaping) and least-privilege execution contexts.
Attack surface and exploitation prerequisites
| Prerequisite | Value | Source/basis |
|---|---|---|
| Attack vector | Network (AV:N) | CVSS vector [1] |
| Attack complexity | Low (AC:L) | CVSS vector [1] |
| Privileges required | Low (PR:L) | CVSS vector [1] |
| User interaction | Required (UI:R) | CVSS vector [1] |
| Scope | Unchanged (S:U) | CVSS vector [1] |
| Attacker position | Able to authenticate to the SQL Server instance over the network | Analyst assessment from vector [1] |
| Specific interface/input | Not established by the reviewed sources | [1, 3] |
These prerequisites are derived from the CVSS vector and should not be treated as a validated exploitation recipe; the concrete injectable surface is not published in the reviewed sources [1].
Exploitation scenarios and attack lifecycle
Illustrative scenario: An attacker holding valid but low-privileged credentials on a shared SQL Server instance submits crafted input through a path that reaches an unsanitized SQL statement; combined with the required user interaction, the manipulated statement executes an operation beyond the attacker's permissions, yielding elevated privilege on the database [1, 3]. Defensive opportunities include enforcing least privilege for application and user accounts, auditing privilege changes, and monitoring for anomalous SQL activity. No source documents a confirmed exploitation chain, campaign, or in-the-wild use [1, 2, 3].
Impact analysis
| Dimension | Assessment | Source |
|---|---|---|
| Confidentiality | High | CVSS C:H [1] |
| Integrity | High | CVSS I:H [1] |
| Availability | High | CVSS A:H [1] |
| Authentication/authorization | Privilege boundary bypassed; elevation of privilege | [1, 3] |
| Privilege boundary | Attacker gains privileges beyond assigned level | [3] |
| Data/privacy | Plausible exposure/modification of database contents | Analyst assessment from C:H/I:H [1] |
| Business operations | Potential disruption of database-dependent services | Analyst assessment from A:H [1] |
| Regulatory/contractual | Not established by the reviewed sources | [1, 3] |
Affected products and versions
| Product | Affected range | Fixed build | Source/confidence |
|---|---|---|---|
| SQL Server 2017 (GDR) | ≥ 14.0.0, < 14.0.2150.2 | 14.0.2150.2 | Vendor via CVE record [1] |
| SQL Server 2017 x64 (CU31) | ≥ 14.0.3006.16, < 14.0.3570.2 | 14.0.3570.2 | Vendor via CVE record [1] |
| SQL Server 2019 (GDR) | ≥ 15.0.0, < 15.0.2210.4 | 15.0.2210.4 | Vendor via CVE record [1] |
| SQL Server 2019 x64 (CU32) | ≥ 15.0.4003.23, < 15.0.4510.2 | 15.0.4510.2 | Vendor via CVE record [1] |
| SQL Server 2022 (GDR) | ≥ 16.0.0, < 16.0.1220.3 | 16.0.1220.3 | Vendor via CVE record [1] |
| SQL Server 2022 x64 (CU27) | ≥ 16.0.4003.1, < 16.0.4315.2 | 16.0.4315.2 | Vendor via CVE record [1] |
| SQL Server 2025 CU10 | ≥ 17.0.4006.0, < 17.0.5045.3 | 17.0.5045.3 | Vendor via CVE record [1] |
| SQL Server 2025 x64 (GDR) | ≥ 17.0.1050.2, < 17.0.1155.3 | 17.0.1155.3 | Vendor via CVE record [1] |
These are the exact ranges and fixed builds published in the CVE record; no additional products or exclusions are stated in the reviewed sources [1].
Exploitation and threat intelligence status
Confirmed: as of 2026-11-12, CVE-2026-118117 is not in the CISA KEV catalog [2]. The reviewed sources document no public proof of concept, no in-the-wild exploitation, and no threat-actor attribution [1, 2, 3]. The NVD record remains Awaiting Analysis [1]. The absence of public evidence is not proof that exploitation has not occurred.
Indicators of compromise
The reviewed sources provide no indicators of compromise (no hashes, domains, IPs, URLs, process names or log event IDs) [1, 2, 3]. None should be invented; any indicators later published must be validated before use.
Detection and exposure assessment
Identify exposure by inventorying SQL Server instances and comparing their build number to the fixed builds in the table above [1]. You can read the installed build using the standard T-SQL query SELECT @@VERSION; or SELECT SERVERPROPERTY('ProductVersion');, which returns the four-part build number (for example 16.0.4315.2) for comparison against the fixed build for that product edition [1]. This is a read-only check and confirms patch level only; it does not prove or disprove exploitation. The reviewed sources provide no vendor-specific detection signatures or log guidance [1, 3].
Immediate mitigation
Until the fixed build is deployed, reduce exposure using controls that follow from the component's documented behaviour (not explicitly provided by the sources):
- Restrict network reachability of SQL Server instances to required application hosts only, reducing the population of principals who can authenticate; verify by confirming firewall/segmentation rules. Limitation: does not fix the underlying flaw.
- Apply least privilege to database logins and application accounts so low-privileged principals have minimal rights; verify via role membership review. Limitation: elevation may still be possible through the flaw.
- Increase auditing of privilege and permission changes; verify that audit records are being captured. Limitation: detective, not preventive.
These measures are compensating controls; the CVSS vector indicates the attacker is already authenticated, so segmentation reduces but does not eliminate risk [1].
Permanent remediation
Apply the fixed build for your specific SQL Server edition and servicing branch (GDR or CU) as published in the CVE record and referenced via Microsoft's update guide at MSRC CVE-2026-118117 [1, 3]:
- SQL Server 2017: 14.0.2150.2 (GDR) or 14.0.3570.2 (CU31 branch) [1]
- SQL Server 2019: 15.0.2210.4 (GDR) or 15.0.4510.2 (CU32 branch) [1]
- SQL Server 2022: 16.0.1220.3 (GDR) or 16.0.4315.2 (CU27 branch) [1]
- SQL Server 2025: 17.0.5045.3 (CU10 branch) or 17.0.1155.3 (GDR) [1]
Select the update matching your current branch to avoid regressing servicing level. Before patching, back up databases and plan a maintenance window; SQL Server updates typically require a service restart. The reviewed sources do not state post-update configuration requirements or rollback specifics [1, 3].
Workarounds and compensating controls
The reviewed sources do not publish a supported workaround [1, 3]. The access and privilege restrictions listed under Immediate mitigation can reduce the attack surface but are not equivalent to the fix, because they do not remove the underlying SQL injection condition and the attacker is assumed to be authenticated [1]. Apply the fixed build as the authoritative remedy.
Validation and verification
- Confirm the installed build matches or exceeds the fixed build for your edition using
SELECT SERVERPROPERTY('ProductVersion');[1]. - Confirm the update was applied to the correct branch (GDR vs CU) for every instance in inventory [1].
- Confirm compensating network and least-privilege controls remain in place where needed.
- Review SQL Server error logs and service health after the restart to confirm normal operation.
- Re-run authenticated vulnerability scanning once scanner content covers CVE-2026-118117.
- Record the build, owner, date and any exceptions. Do not treat a single version check as proof of overall security.
Incident response
If exploitation is suspected: triage by identifying unpatched instances and reviewing audit logs for unexpected privilege or permission changes; contain by restricting network access to affected instances and tightening account privileges; preserve SQL Server logs and relevant system telemetry before remediation; investigate for anomalous privileged operations. Rotate credentials for accounts that may have been abused if evidence warrants. Eradicate by applying the fixed build, then recover and monitor. Follow your organization's incident response plan and applicable notification obligations. The reviewed sources provide no incident-specific indicators to guide scoping [1, 2, 3].
Security hardening and prevention
Longer-term measures relevant to SQL injection and privilege elevation: enforce parameterized queries and strict input validation in applications interacting with the database; apply least privilege to all database principals and avoid granting application accounts elevated server roles; isolate database servers via network segmentation (defence-in-depth); enable and retain auditing of permission and role changes; integrate SQL Server build inventory into patch and vulnerability management so new servicing updates are applied promptly. These are general hardening measures; the specific injectable path is not disclosed by the sources [1, 3].
Risk assessment
Technical severity is HIGH per Microsoft's CVSS 3.1 base score of 8.0, with high confidentiality, integrity and availability impact [1]. Exploitation requires network access, low privileges and user interaction, which somewhat constrains opportunity but is realistic on shared or multi-tenant database servers [1]. No exploitation in the wild or public proof of concept is documented, and the CVE is not in KEV as of 2026-11-12 [2]. Analyst assessment (not the CVSS score, assuming an internet- or broadly-reachable instance with multiple low-privileged principals): remediation priority is high because database servers are typically high-value assets and the fix is available; organizations with tightly restricted, internally-only instances may rate urgency slightly lower. Residual risk after patching to the listed builds should be low.
Conclusion
CVE-2026-118117 is a SQL injection flaw (CWE-89) in Microsoft SQL Server that allows an authenticated attacker to elevate privileges over the network, rated 8.0 HIGH by Microsoft [1, 3]. Database and infrastructure teams should act by updating each instance to the fixed build matching its edition and servicing branch, as published in the CVE record and MSRC advisory [1, 3]. The most important immediate step where patching is delayed is restricting network access and tightening account privileges [1]. To close the issue, confirm the installed build and retain patch evidence. Open evidence needs include the specific injectable interface, NVD's completed analysis, and any future exploitation reporting [1, 2, 3].
Remediation checklist
- Inventory all SQL Server instances and read the build via SELECT SERVERPROPERTY('ProductVersion'); compare to the fixed builds in the CVE record [1].
- Apply the matching fixed build: 2017 (14.0.2150.2 GDR / 14.0.3570.2 CU31), 2019 (15.0.2210.4 GDR / 15.0.4510.2 CU32), 2022 (16.0.1220.3 GDR / 16.0.4315.2 CU27), 2025 (17.0.5045.3 CU10 / 17.0.1155.3 GDR), via MSRC CVE-2026-118117 [1, 3].
- Back up databases and schedule a maintenance window; expect a service restart during update [1].
- Until patched, restrict network reachability of SQL Server to required application hosts and enforce least privilege on database logins; verify firewall/role settings [1].
- Enable and retain auditing of permission and role changes to detect privilege abuse [3].
- After patching, re-verify ProductVersion meets/exceeds the fixed build and review error logs and service health [1].
- Re-run authenticated vulnerability scanning for CVE-2026-118117 once scanner coverage is available [1].
Evidence gaps
- The specific injectable component, stored procedure, function or input path is not disclosed by the reviewed sources [1, 3].
- The nature of the required user interaction (UI:R) is not described [1].
- NVD analysis is incomplete (status Awaiting Analysis); CWE and scoring may be refined [1].
- No indicators of compromise or vendor detection signatures are provided [1, 3].
- No exploitation evidence, public PoC, or threat-actor attribution is documented; future KEV listing or researcher publication would settle this [2].
References
- CVE-2026-118117 record. NIST National Vulnerability Database (NVD), 2026-11-10. https://nvd.nist.gov/vuln/detail/CVE-2026-118117. Accessed 2026-11-12.
- Known Exploited Vulnerabilities Catalog. Cybersecurity and Infrastructure Security Agency (CISA), 2026-11-12. https://www.cisa.gov/known-exploited-vulnerabilities-catalog. Accessed 2026-11-12.
- CVE-2026-118117 Microsoft SQL Server Elevation of Privilege Vulnerability. Microsoft MSRC, 2026-11-10. https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-118117. Accessed 2026-11-12.
Summary
Improper neutralization of special elements used in an sql command ('sql injection') in SQL Server allows an authorized attacker to elevate privileges over a network.
Severity breakdown
High · 8.0
An attacker with a normal user account can exploit this over the network if a user is tricked into an action.
- Attack from
- the network (remotely)
- Attack complexity
- low (no special conditions)
- Login needed
- yes, a normal user account
- User action needed
- yes, someone must click, open or visit something
- Scope
- stays within the vulnerable component
- Impact
- high on confidentiality, integrity and availability
Weakness
- CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| Microsoft SQL Server 2017 (GDR) | ≥ 14.0.0, < 14.0.2150.2 | 14.0.2150.2 |
| Microsoft SQL Server 2017 for x64-based Systems (CU31) | ≥ 14.0.3006.16, < 14.0.3570.2 | 14.0.3570.2 |
| Microsoft SQL Server 2019 (GDR) | ≥ 15.0.0, < 15.0.2210.4 | 15.0.2210.4 |
| Microsoft SQL Server 2019 for x64-based Systems (CU32) | ≥ 15.0.4003.23, < 15.0.4510.2 | 15.0.4510.2 |
| Microsoft SQL Server 2022 (GDR) | ≥ 16.0.0, < 16.0.1220.3 | 16.0.1220.3 |
| Microsoft SQL Server 2022 for x64-based Systems (CU27) | ≥ 16.0.4003.1, < 16.0.4315.2 | 16.0.4315.2 |
| Microsoft SQL Server 2025 CU10 | ≥ 17.0.4006.0, < 17.0.5045.3 | 17.0.5045.3 |
| Microsoft SQL Server 2025 for x64-based Systems (GDR) | ≥ 17.0.1050.2, < 17.0.1155.3 | 17.0.1155.3 |
References by type
Other references
Affected
- Microsoft SQL Server 2017 (GDR)
- Microsoft SQL Server 2017 for x64-based Systems (CU31)
- Microsoft SQL Server 2019 (GDR)
- Microsoft SQL Server 2019 for x64-based Systems (CU32)
- Microsoft SQL Server 2022 (GDR)
Frequently asked questions
What is CVE-2026-118117?
CVE-2026-118117 is a SQL injection flaw (CWE-89) in Microsoft SQL Server that allows an authenticated attacker to elevate privileges over a network. Microsoft rates it HIGH with a CVSS 3.1 base score of 8.0 and vector CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H. The affected products span SQL Server 2017, 2019, 2022 and 2025 across specific GDR and cumulative update (CU) builds, each with a published fixed build. Weakness type: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') (CWE-89).
How severe is CVE-2026-118117?
CVE-2026-118117 has a CVSS 3.1 base score of 8.0 (high), from the CNA (microsoft.com). An attacker with a normal user account can exploit this over the network if a user is tricked into an action.
Is CVE-2026-118117 being exploited?
Not as far as is known: CVE-2026-118117 is not in CISA's Known Exploited Vulnerabilities catalog as of November 28, 2026. EPSS estimates a 0.8% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2026-118117?
Microsoft SQL Server 2017 (GDR) ≥ 14.0.0, < 14.0.2150.2 (fixed in 14.0.2150.2); Microsoft SQL Server 2017 for x64-based Systems (CU31) ≥ 14.0.3006.16, < 14.0.3570.2 (fixed in 14.0.3570.2); Microsoft SQL Server 2019 (GDR) ≥ 15.0.0, < 15.0.2210.4 (fixed in 15.0.2210.4); Microsoft SQL Server 2019 for x64-based Systems (CU32) ≥ 15.0.4003.23, < 15.0.4510.2 (fixed in 15.0.4510.2); and more, listed on this page.
How do I fix CVE-2026-118117?
Inventory all SQL Server instances and read the build via SELECT SERVERPROPERTY('ProductVersion'); compare to the fixed builds in the CVE record. Apply the matching fixed build: 2017 (14.0.2150.2 GDR / 14.0.3570.2 CU31), 2019 (15.0.2210.4 GDR / 15.0.4510.2 CU32), 2022 (16.0.1220.3 GDR / 16.0.4315.2 CU27), 2025 (17.0.5045.3 CU10 / 17.0.1155.3 GDR), via MSRC CVE-2026-118117. Back up databases and schedule a maintenance window; expect a service restart during update.
Timeline & sources
- Microsoft MSRC: CVE-2026-118117 Microsoft SQL Server Elevation of Privilege Vulnerability
- NVD: CVE-2026-118117 — Microsoft SQL Server 2017 (GDR)
References
Related vulnerabilities & news
- Microsoft SQL Server SQL Injection Flaw (CVE-2026-118119) Enables Network-Reachable Privilege Escalation
- Microsoft SQL Server SQL Injection Flaw (CVE-2026-118115) Allows Network Privilege Elevation by Authorized Users
- Microsoft SQL Server Privilege Escalation via SQL Injection (CVE-2026-118120, CVSS 3.1 8.8)
- Microsoft SQL Server Elevation of Privilege via SQL Injection (CVE-2026-118116, CVSS 3.1 7.0)
- Microsoft SQL Server SQL Injection Flaw CVE-2026-118118 Allows Network-Reachable Privilege Elevation