CVE-2026-118112 — Microsoft SQL Server 2017 (GDR)
One of 40 Microsoft SQL Server 2017 (GDR) vulnerabilities published together by NVD: our article covers all of them.
MicrosoftDatabasesVulnerabilitiesResearch article
SQL Server code-injection flaw allows network privilege escalation by authenticated users (CVE-2026-118112)
| CVE | CVE-2026-118112 |
|---|---|
| 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-118112 is a code-injection weakness in Microsoft SQL Server, mapped to CWE-94, that lets an attacker who already holds a low-privilege account raise their privileges over a network connection [1]. NVD scores it 8.0 (High) under CVSS 3.1 with vector CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H, scored by Microsoft as a secondary scorer; the record is still Awaiting Analysis [1]. The CNA's record lists affected ranges across SQL Server 2017, 2019, 2022 and 2025 in both GDR and CU branches, with a fixed build for each range [1]. The vector requires low privileges and user interaction, so exposure depends on who holds valid accounts and on whether a user action is involved, which the reviewed sources do not explain [1]. CISA's KEV catalog did not list the CVE as of 2026-11-12, but that is not evidence that exploitation has not occurred, and no public exploit or in-the-wild report appears in the pack [2]. The most important immediate action is to inventory SQL Server builds against the listed ranges, patch affected instances to the listed fixed build for their branch, and restrict and review low-privilege accounts and network reachability until patching is complete [1, 3].
Key points
- CVE-2026-118112 is a code-injection flaw in Microsoft SQL Server (CWE-94) that lets an authenticated low-privilege user gain higher privileges over a network path [1].
- NVD scores it 8.0 (High) under CVSS 3.1 with vector CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H; the record is still Awaiting Analysis [1].
- The CNA lists affected ranges for SQL Server 2017, 2019, 2022 and 2025 across GDR and CU branches, each with a fixed build [1].
- CISA KEV did not list the CVE as of 2026-11-12; this does not show that exploitation has not occurred, and no public exploit is in the pack [2].
- Immediate actions: inventory builds against the listed ranges, restrict low-privilege logins and network reachability, and patch to the fixed build for each branch [1, 3].
Vulnerability identification
| Field | Value | Source |
|---|---|---|
| CVE ID | CVE-2026-118112 | S1 |
| Vendor | Microsoft | S1, S3 |
| Product | Microsoft SQL Server, multiple GDR and CU branches | S1 |
| Component | Not established by the reviewed sources beyond a general reference to SQL Server code generation | S1 |
| Platform | Listed branches include x64-based systems and a 2025 CU; other platforms not established | S1 |
| Published | 2026-11-10T19:19:29 | S1 |
| Last modified | 2026-11-10T20:18:10 | S1 |
| Record status | Awaiting Analysis | S1 |
| CWE | CWE-94 | S1 |
| CVSS 3.1 base score | 8.0 (High) | S1 |
| CVSS 3.1 vector | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H | S1 |
| Scoring version and scorer | CVSS 3.1, scored by secure@microsoft.com, labelled Secondary | S1 |
| Other CVSS versions | None present in the pack | S1 |
| Vendor reference | Microsoft Security Response Center (MSRC) update guide entry for the CVE | S1, S3 |
| Related CVEs, bug IDs, KB or patch identifiers | Not established by the reviewed sources | S1, S3 |
CWE-94 is the Common Weakness Enumeration entry for code-injection weaknesses, where software builds code from input without adequately separating or neutralizing that input, so untrusted data can alter the code that runs [1]. This general definition is background, not a source claim about this specific flaw.
No conflicting scores or classifications appear in the pack. Only one scorer has contributed a score, and the record has not yet been through NVD analysis, so the score and mapping may change [1].
Technical background
Microsoft SQL Server is a relational database engine that stores data and executes queries for client applications and administrators [1]. Its servicing model, reflected in the CNA's listed ranges, publishes two streams of builds for each major version: General Distribution Release (GDR) builds, which carry security fixes, and Cumulative Update (CU) builds, which carry fixes plus other changes [1]. The record names both streams, so a fix for one stream does not necessarily cover an instance on the other.
The trust boundaries relevant to this CVE are: (1) the network boundary between a client and the database service; (2) the authentication boundary, where a login is established; and (3) the privilege boundary, where the database engine's operations are limited by the permissions granted to that login [1]. The record states that the attacker must be authorized before exploitation, and the vector sets the privilege requirement to low [1]. This places the attack on the far side of the authentication boundary and makes the privilege boundary the security control that is crossed.
Terms used here: NVD is the National Vulnerability Database operated by NIST; CVSS is the Common Vulnerability Scoring System; KEV is CISA's Known Exploited Vulnerabilities catalog; CNA is a CVE Numbering Authority, the organization that publishes the authoritative CVE description and affected versions [1, 2].
Vulnerability description
The record describes an improper control of code generation in SQL Server. In plain terms, the product fails to keep input from influencing the code it generates, and an attacker who is already authorized to use the service can use that failure to gain higher privileges through a network path [1]. The vendor's advisory summary repeats this same description without additional technical detail [3].
The security property affected is the integrity of the privilege boundary. The vector assigns high impact to confidentiality, integrity and availability with scope unchanged, which NVD's scoring uses to describe the consequences of a successful attack [1]. The sources do not state which data or operations those impacts cover in practice.
Not established by the reviewed sources: the specific component, function, statement type or feature that generates the code; whether the attack needs a specific feature enabled; whether the attacker can act without any valid account (the vector says low privileges are required, so the answer appears to be no); the reason user interaction is required (UI:R in the vector); and whether the flaw can be reached from outside the internal network [1].
What the evidence does not permit: the record does not show remote, unauthenticated exploitation, does not show that any particular data was accessed, and does not show that exploitation has occurred in the wild [1, 2, 3].
Root cause analysis
Confirmed: NVD maps the flaw to CWE-94 [1]. The CNA describes it as an improper control of code generation within SQL Server [1].
Not established by the reviewed sources: the specific code path, the input source, the code-generation mechanism, and any code change Microsoft made. The vendor advisory summary in the pack gives no technical detail [3].
Analyst assessment: a weakness of this class usually means that input supplied by a user reaches a point where the product constructs executable instructions, and the product does not sufficiently separate that input from the instructions or limit what the generated code may do. Because the vector requires a valid low-privilege account, a plausible explanation is that the generated code runs with a broader security context than the user's own permissions, or that the generation step accepts input the user should not be able to shape. This is an inference from the weakness class and the vector, not a confirmed mechanism.
Why existing controls may fail (Analyst assessment): input checks may validate the data a user supplies without accounting for how that data is used to construct code, and authorization checks may apply to the request before generation but not to the generated result. Neither explanation is confirmed by the sources.
Technical mechanics
The following flow is Illustrative. No source documents the actual sequence of steps for CVE-2026-118112.
- A login with low privileges authenticates to the SQL Server instance over the network [1].
- The user submits a request that includes input the engine uses when generating code (Illustrative).
- The engine constructs code from that input without fully neutralizing it (Illustrative; consistent with CWE-94 [1]).
- The generated code runs in a context that grants more rights than the submitting login holds (Illustrative; consistent with the record's description of privilege elevation [1]).
- The attacker performs actions that the original login could not perform directly (Illustrative).
The control that should have prevented the issue is the combination of input neutralization before code generation and enforcement of the submitting login's permissions on the generated code. Preconditions and environmental dependencies are not established by the reviewed sources.
[Low-privilege login] --network--> [SQL Server request handling]
| |
| user-influenced input | code generation step (flawed)
v v
(authorization boundary) ----> generated code runs with elevated rights (Illustrative)
Attack surface and exploitation prerequisites
| Prerequisite | Requirement | Basis |
|---|---|---|
| Network access | Required; the attack vector is network | Vector AV:N [1] |
| Adjacent network | Not indicated by the vector | Vector [1] |
| Local access | Not indicated by the vector | Vector [1] |
| Physical access | Not indicated by the sources | Not established |
| Authentication | Required | Vector PR:L and record wording [1] |
| Privilege level | Low privilege; the exact role or permission set is not established | Vector PR:L [1] |
| User interaction | Required per the vector; the reason is not established | Vector UI:R [1] |
| Required configuration or feature | Not established by the reviewed sources | S1, S3 |
| Attacker position | An authenticated session that can reach the SQL Server listener over the network (Analyst assessment from AV:N and PR:L) | S1 |
| Environmental dependencies | Not established by the reviewed sources | S1, S3 |
The CVSS vector indicates the prerequisites, but it does not prove that every listed prerequisite is needed in every deployment. Only the network, authentication and user interaction requirements come from the vector; the feature, configuration and component requirements are not established by any source in the pack.
Exploitation scenarios and attack lifecycle
Illustrative scenario: a contractor holds a standard login to a reporting database on an internal network. The contractor's session connects to a SQL Server instance from a workstation. Using the flaw, the contractor obtains rights beyond those granted to the login. Defensive opportunities include limiting which logins can reach the instance, reviewing permission changes, and capturing the activity in audit logs.
Illustrative lifecycle: initial access through a valid low-privilege login; discovery of the instance build and permissions; privilege elevation through the flawed code generation path; actions taken under elevated rights. No source documents any of these stages for this CVE, and no source confirms a multi-stage chain.
Defensive opportunities by stage: at initial access, enforce strong authentication and remove unused logins; at discovery, restrict which hosts can reach the listener and log connection sources; at elevation, monitor for permission changes on logins and roles and for unexpected high-privilege actions; at post-exploitation, contain the login, preserve logs and rotate affected credentials.
Impact analysis
| Area | Technically indicated by the sources | Plausible downstream consequence (Analyst assessment) |
|---|---|---|
| Confidentiality | High, per vector C:H [1] | Reading data beyond the attacker's permitted scope, subject to what the elevated context can access |
| Integrity | High, per vector I:H [1] | Altering data or configuration beyond the attacker's permitted scope |
| Availability | High, per vector A:H [1] | Disrupting the instance or dependent applications |
| Authentication and authorization | Privilege elevation is the stated outcome [1] | Persistent higher-privilege access if the attacker creates or alters logins; no source documents this |
| Privilege boundaries | Crossed from a low-privilege login to higher rights [1] | Escalation toward host or domain resources is not established by the sources |
| Data and privacy | Not established | Depends on the data stored; personal data exposure would require an organizational assessment |
| Business operations | Not established | Depends on the criticality of the instance |
| Regulatory or contractual obligations | Not established | Depends on the data classification and contracts in the organization |
The high CIA ratings reflect NVD's scoring of a worst-case outcome, not a demonstrated result [1].
Affected products and versions
The CNA's record lists the following ranges. The lower bound is inclusive and the upper bound exclusive, as written in the record [1].
| Product and branch | Affected range | Fixed version | Source and qualification |
|---|---|---|---|
| SQL Server 2017 (GDR) | 14.0.0 up to but not including 14.0.2150.2 | 14.0.2150.2 | S1, CNA record |
| SQL Server 2017 for x64-based Systems (CU31) | 14.0.3006.16 up to but not including 14.0.3570.2 | 14.0.3570.2 | S1, CNA record |
| SQL Server 2019 (GDR) | 15.0.0 up to but not including 15.0.2210.4 | 15.0.2210.4 | S1, CNA record |
| SQL Server 2019 for x64-based Systems (CU32) | 15.0.4003.23 up to but not including 15.0.4510.2 | 15.0.4510.2 | S1, CNA record |
| SQL Server 2022 (GDR) | 16.0.0 up to but not including 16.0.1220.3 | 16.0.1220.3 | S1, CNA record |
| SQL Server 2022 for x64-based Systems (CU27) | 16.0.4003.1 up to but not including 16.0.4315.2 | 16.0.4315.2 | S1, CNA record |
| SQL Server 2025 CU10 | 17.0.4006.0 up to but not including 17.0.5045.3 | 17.0.5045.3 | S1, CNA record |
| SQL Server 2025 for x64-based Systems (GDR) | 17.0.1050.2 up to but not including 17.0.1155.3 | 17.0.1155.3 | S1, CNA record |
Qualifications: the ranges come from the CNA record and were not yet reviewed by NVD at the cut-off [1]. The pack does not state whether builds outside these ranges, such as older builds below the listed lower bounds, are affected or unaffected, so the list should not be treated as complete [1]. The reviewed sources do not state whether non-x64 platforms are covered beyond the listed rows. Configuration-specific exposure and known exclusions are not established by the reviewed sources.
Exploitation and threat intelligence status
- Confirmed in-the-wild exploitation: not established by the reviewed sources [1, 2, 3].
- CISA KEV: not listed as of 2026-11-12 [2]. The KEV entry does not show that exploitation has not happened.
- Public proof of concept: no public exploit reference appears in the pack [1, 3].
- Threat actors, campaigns or sectors: not attributed by any source in the pack.
- Vendor status: the MSRC entry exists and the CVE record lists fixed builds, which indicates the vendor has released fixes [1, 3].
- Vendor advisory wording: the MSRC summary repeats the record's description and does not state exploitation status in the pack [3].
The absence of public evidence is not proof that exploitation has not occurred. The record was still Awaiting Analysis at the cut-off, which means no NVD assessment of exploitation or of the CVSS score has been completed [1].
Indicators of compromise
Not established by the reviewed sources. The pack contains no file hashes, file names, domains, IP addresses, URLs, process names, command lines, log events, event IDs or network patterns for this CVE [1, 2, 3]. No indicator should be blocked on the basis of this article. When indicators are later published, they must be validated against the organization's own telemetry before blocking, because indicators go stale.
Detection and exposure assessment
Step 1: Build an inventory of every SQL Server instance, including its major version, branch (GDR or CU) and build number. Use the configuration management database or the instance list from the organization's asset tools, which the pack does not cover.
Step 2: On each instance, run a read-only query from SQL Server Management Studio or sqlcmd with a login that has permission to read server properties. The query is standard product tooling, not a source-provided command.
SELECT SERVERPROPERTY('ProductVersion') AS ProductVersion, SERVERPROPERTY('ProductLevel') AS ProductLevel;
Prerequisites: connection rights to the instance. Expected output: one row with a build string in the four-part format used in the affected table, plus a product level label. Limitations: a version match alone is not proof of exploitability, and the version must be compared to the range for the correct branch (GDR or CU) [1].
Step 3: Compare each build with the ranges in the affected table. Any build inside a range is in scope for patching. Builds at or above the fixed version for their branch are not affected according to the record [1].
Step 4: Review who holds logins and roles that could authenticate to each in-scope instance. Because the vector requires a valid low-privilege login [1], the population of authenticated users is the main exposure factor. Record the number of enabled logins and their role memberships for each instance.
Step 5: Review network reachability. Confirm which hosts can reach each instance's listener, using firewall rules and host configuration. A reachable host with a valid login is a required condition for the network attack vector [1].
Step 6: Review logs. No source gives event IDs or log patterns for this CVE. As an analyst recommendation, enable or confirm SQL Server audit on login creation, role membership changes and permission changes, and retain the output so that any later indicator work has a baseline.
Not established: a vendor-provided detection script or detection guidance for this CVE, and any authenticated scanner plugin coverage.
Immediate mitigation
| Measure | What it protects against | Limitations | Operational side effects | How to verify | Origin |
|---|---|---|---|---|---|
| Remove or disable unused logins and accounts with no current need | Reduces the population able to start the attack (PR:L [1]) | Does not remove the flaw; active accounts still exposed | Possible application or service disruption if a login is still used | Login list reviewed and signed off by the owner | Analyst assessment following from PR:L |
| Restrict network access to each instance to known application and administration hosts, using host or network firewall rules | Reduces the reachable attacker population (AV:N [1]) | Does not stop attackers already on permitted hosts | May break unlisted clients; requires an application owner list | Connection tests from a non-permitted host fail; firewall rule export reviewed | Analyst assessment following from AV:N |
| Review membership of high-privilege server and database roles and remove unneeded members | Limits what an elevated context could reach if the flaw is used | Does not address the code-generation flaw | Changes may affect administrative tasks | Role membership report compared with approved list | Analyst assessment |
| Increase monitoring of login creation and permission changes through SQL Server audit | Improves detection of privilege changes | Does not stop exploitation; depends on audit retention | Audit overhead and storage | Audit specification active and events visible in the audit target | Analyst assessment |
| Patch to the fixed build for each branch as soon as the change window allows | Removes the vulnerable code path, per the vendor-published fixed version [1] | Requires a maintenance window and a tested rollback | Restart and downtime (see permanent remediation) | Version check after patching | Vendor-published fixed version [1] |
Vendor-documented interim workarounds: not established by the reviewed sources.
Permanent remediation
The vendor-published fixes are the builds listed in the affected products table [1]. Installing the fixed build for the instance's branch is the permanent remediation. Vendor-confirmed fixes are the builds in the CNA record; the advisory in the pack gives no further details [1, 3].
Steps:
- Map each instance to its branch and select the fixed build from the affected table, for example 15.0.4510.2 for SQL Server 2019 for x64-based Systems (CU32) [1].
- Confirm that the target build is supported for the instance's current major version and operating system, using the vendor's installation guidance, which the pack does not include.
- Take a verified full backup of each database and the master and msdb databases before installation, as a standard precaution (Analyst assessment).
- Apply the fix in a non-production environment first and test the critical application paths.
- Install the fixed build in the production maintenance window.
- Restart requirements: not established by the reviewed sources; plan for a service restart and confirm the vendor's restart guidance.
- Post-update configuration changes: none documented in the pack.
- Rollback: the vendor's uninstall or rollback procedure is not established by the pack; document the restore procedure from backup before patching.
Recommended hardening beyond the fix (Analyst assessment): reduce the number of logins and role members, as in the immediate mitigation section, so that the post-patch environment has less standing privilege.
Workarounds and compensating controls
No vendor workaround is documented in the reviewed sources [1, 3]. Compensating controls that reduce exposure while patching is pending include restricting logins, restricting network paths and increasing audit coverage, as described in the immediate mitigation section. These controls reduce the attacker population and improve detection, but they do not remove the flaw. A workaround is not equivalent to a permanent fix because the code-generation weakness remains present in any unpatched build [1].
Validation and verification
- Confirm the build on each instance with the ProductVersion query in the detection section, and compare it with the fixed version for its branch [1].
- Confirm that each instance is on the correct branch: GDR instances should show a GDR-branch build, and CU instances a CU-branch build [1].
- Confirm the login and role review was completed and the approved list matches the current state.
- Confirm network restriction rules are active by testing connections from a permitted host and a non-permitted host.
- Confirm audit specifications are active and that test events for login and permission changes are captured in the audit target.
- Review SQL Server error logs and service health after restart for unexpected errors.
- Re-run the organization's authenticated vulnerability scanner or a vendor-supported check when the scanner's coverage for this CVE is confirmed; the pack does not establish that such a check exists.
- Record the evidence for each instance: build, branch, date, owner, exceptions and the person who approved them.
A single successful version check does not show that the system is secure. Validation should cover the build, the access reduction and the monitoring, together.
Incident response
If exploitation is suspected, follow the organization's incident response plan. The steps below are a guide.
- Triage: identify instances on in-scope builds with unusual login activity, role membership changes or permission changes. No indicator from the pack is available to match against, so the triage depends on the organization's own baselines.
- Scope: list every login used on the affected instances in the suspected period and every host connecting to them.
- Containment: disable or restrict the suspected logins and block the source hosts at the firewall, after preserving the current state. Avoid restarting the instance before evidence is collected, because a restart can remove volatile data.
- Evidence preservation: export SQL Server error logs, audit logs and relevant host logs before any cleanup, and hash the copies.
- Log and endpoint investigation: correlate the audit records with the host logs and network records for the suspected period.
- Credential rotation: rotate passwords for any login or service account whose exposure the evidence supports, following the organization's rotation procedure.
- Eradication and patching: install the fixed build for each affected branch and remove any unauthorized logins or role memberships found in the investigation.
- Recovery and monitoring: restore normal access with reduced privileges, and keep enhanced audit monitoring in place for a defined period.
- Notification: determine whether any regulatory or contractual notification applies, based on the data involved. The pack does not establish the data involved.
- Lessons learned: record how the suspected login gained or held its access, and update the access review cycle.
Security hardening and prevention
The flaw sits in the vendor's product, so customers cannot correct the code path. The measures below are defence-in-depth (Analyst assessment).
- Least privilege: grant logins only the permissions their applications require, and review role memberships on a fixed schedule.
- Network segmentation: limit SQL Server listener reachability to the application tiers and administration hosts that need it.
- Dynamic SQL in the organization's own applications: where in-house code builds SQL text from user input, use parameterized queries and avoid concatenating untrusted values into statements. This does not fix the product flaw, but it removes a related source of code injection in the organization's own code.
- Logging and alerting: enable audit for login creation, role changes and permission changes, and forward those events to a central log platform.
- Patch management: track the fixed builds in this record and apply them through the organization's patch cycle, recording the branch for each instance.
- Testing: add regression tests to the organization's application test suite that confirm the expected privilege boundaries on each database.
Risk assessment
Technical severity: the NVD score is 8.0 (High) under CVSS 3.1 [1]. The score comes from a secondary scorer and the record is still Awaiting Analysis, so it may change [1].
Exposure and asset criticality: depends on the organization's inventory, which is not part of the pack. Instances with many logins, shared service accounts or sensitive data are higher priority.
Exploit prerequisites and attacker opportunity: the attacker needs a valid low-privilege login and network reach to the listener, and the vector shows user interaction is required [1]. Those conditions limit the attacker population to insiders, compromised accounts and users of shared accounts (Analyst assessment).
Evidence of exploitation: not established; not listed in KEV as of 2026-11-12 [2].
Potential business impact: high if the instance holds sensitive data or supports critical applications, because the vector assigns high impact to all three CIA properties [1].
Existing controls and residual risk: the residual risk is high until the fixed build is installed, because the flaw remains present in any unpatched build [1].
Recommended priority (Analyst assessment, not a CVSS score): high. Patch instances that hold sensitive data or have many authenticated users first, and apply the access reduction and audit measures to all in-scope instances immediately. The reasoning rests on the high impact vector, the network attack path, the low-privilege requirement, and the absence of a complete affected range or confirmed exploitation picture in the pack [1, 2].
Conclusion
CVE-2026-118112 is a code-injection flaw in Microsoft SQL Server, mapped to CWE-94, that allows an authenticated low-privilege user to gain higher privileges over a network path, with high impact scored by NVD under CVSS 3.1 [1]. The most urgent mitigation is to reduce the number of logins that can authenticate to in-scope instances and to restrict which hosts can reach them while patching is scheduled [1]. The permanent fix is to install the fixed build for each branch listed in the record [1]. The evidence needed to close the issue is: a confirmed build for every instance, a completed NVD analysis that confirms the affected range, the vendor's restart and rollback guidance, validated detection guidance, and an updated KEV and threat intelligence review [1, 2, 3].
Remediation checklist
- Inventory every SQL Server instance and record its major version, branch (GDR or CU) and build using a read-only SERVERPROPERTY ProductVersion query, then compare each build with the affected ranges in the record [1].
- Identify all logins and role memberships with access to in-scope instances, remove unused logins, and remove unneeded high-privilege role members, because the vector requires a valid low-privilege login [1].
- Restrict network reachability of each in-scope listener to approved application and administration hosts with host or network firewall rules, and verify by testing connections from a non-approved host [1].
- Enable SQL Server audit for login creation, role membership changes and permission changes on in-scope instances, and confirm test events are recorded in the audit target (Analyst assessment) [1].
- Patch each affected instance to the fixed build for its branch, for example 15.0.4510.2 for SQL Server 2019 for x64-based Systems (CU32) or 16.0.1220.3 for SQL Server 2022 (GDR) [1].
- Before patching, take and verify full backups of the databases and master and msdb databases, and document the restore procedure as the rollback path (Analyst assessment) [1].
- Plan a service restart in the maintenance window; the pack does not establish whether a restart is required, so confirm it with the vendor's installation guidance [1, 3].
- After patching, re-run the ProductVersion query on each instance and confirm the build equals or exceeds the fixed version for its branch [1].
- Review SQL Server error logs and service health after patching and restart, and retain the results with the owner, date and any exceptions [1].
- Track the record status and KEV listing for CVE-2026-118112, and re-assess priority when NVD completes analysis or new exploitation evidence is published [1, 2].
Evidence gaps
- Root cause and affected code path: the reviewed sources give no technical detail beyond the CWE mapping and general description; the vendor advisory summary in the pack repeats the record description [1, 3]. A full technical advisory or NVD analysis would settle this.
- Complete affected range: the record lists ranges only for the listed branches and does not state whether older or other builds are affected [1]. The vendor's full product matrix would settle this.
- Required configuration or feature: not established by the reviewed sources [1, 3]. Vendor documentation on prerequisites would settle this.
- Reason for user interaction (UI:R): the vector requires user interaction, but no source explains what the interaction is [1]. The vendor's technical advisory would settle this.
- Restart and rollback guidance: not established by the reviewed sources [1, 3]. The vendor's installation and rollback documentation would settle this.
- Exploitation evidence: no source confirms in-the-wild exploitation, and no public proof of concept appears in the pack [1, 2, 3]. Threat intelligence reporting and the KEV catalog in later cut-offs would be needed.
- Indicators of compromise and detection events: none in the pack [1, 2, 3]. Vendor detection guidance, incident reports or telemetry from affected organizations would be needed.
- Fix identifiers: no KB or patch identifiers are in the pack beyond the fixed build numbers [1]. The vendor's update guide entry would settle the patch identifiers.
- NVD analysis and CVSS review: the record is Awaiting Analysis and only a secondary CVSS 3.1 score is present [1]. Completed NVD analysis would confirm or change the score and the CWE mapping.
- Asset and environment context: the organization's own inventory and data classification are outside the pack, so the risk rating cannot be finalized for any specific environment.
References
- CVE-2026-118112 record. NIST National Vulnerability Database (NVD), 2026-11-10. https://nvd.nist.gov/vuln/detail/CVE-2026-118112. 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-118112 Microsoft SQL Server Elevation of Privilege Vulnerability. Microsoft MSRC, 2026-11-10. https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-118112. Accessed 2026-11-12.
Summary
Improper control of generation of code ('code 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-94: Improper Control of Generation of Code ('Code 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-118112?
CVE-2026-118112 is a code-injection weakness in Microsoft SQL Server, mapped to CWE-94, that lets an attacker who already holds a low-privilege account raise their privileges over a network connection. NVD scores it 8.0 (High) under CVSS 3.1 with vector CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H, scored by Microsoft as a secondary scorer; the record is still Awaiting Analysis. Weakness type: Improper Control of Generation of Code ('Code Injection') (CWE-94).
How severe is CVE-2026-118112?
CVE-2026-118112 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-118112 being exploited?
Not as far as is known: CVE-2026-118112 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-118112?
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-118112?
Inventory every SQL Server instance and record its major version, branch (GDR or CU) and build using a read-only SERVERPROPERTY ProductVersion query, then compare each build with the affected ranges in the record. Identify all logins and role memberships with access to in-scope instances, remove unused logins, and remove unneeded high-privilege role members, because the vector requires a valid low-privilege login. Restrict network reachability of each in-scope listener to approved application and administration hosts with host or network firewall rules, and verify by testing connections from a non-approved host.
Timeline & sources
- Microsoft MSRC: CVE-2026-118112 Microsoft SQL Server Elevation of Privilege Vulnerability
- NVD: CVE-2026-118112 — Microsoft SQL Server 2017 (GDR)
References
Related vulnerabilities & news
- CVE-2026-87867 — MRemoteNG
- Microsoft 365 Outage Linked to Networking Gateway Defect
- Microsoft Investigates SQL Server Stability Concerns After Recent Windows Updates
- CVE-2026-94511: Heap-Based Buffer Overflow in Microsoft SQL Server Enables Authenticated Remote Code Execution
- Microsoft SQL Server heap-based buffer overflow enabling network-reachable privilege escalation (CVE-2026-94513)