Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › CVE › Microsoft

CVE-2026-118112 — Microsoft SQL Server 2017 (GDR)

High · CVSS 8.0EPSS 0.8% First seen November 10, 2026

One of 40 Microsoft SQL Server 2017 (GDR) vulnerabilities published together by NVD: our article covers all of them.

MicrosoftDatabasesVulnerabilities

Research article

SQL Server code-injection flaw allows network privilege escalation by authenticated users (CVE-2026-118112)

CVECVE-2026-118112
Vendor and productMicrosoft SQL Server 2017 (GDR); Microsoft SQL Server 2017 for x64-based Systems (CU31); Microsoft SQL Server 2019 (GDR)
PublishedNovember 12, 2026 07:20 UTC
Research cut-offNovember 12, 2026 07:12 UTC
Sources reviewed3: 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

FieldValueSource
CVE IDCVE-2026-118112S1
VendorMicrosoftS1, S3
ProductMicrosoft SQL Server, multiple GDR and CU branchesS1
ComponentNot established by the reviewed sources beyond a general reference to SQL Server code generationS1
PlatformListed branches include x64-based systems and a 2025 CU; other platforms not establishedS1
Published2026-11-10T19:19:29S1
Last modified2026-11-10T20:18:10S1
Record statusAwaiting AnalysisS1
CWECWE-94S1
CVSS 3.1 base score8.0 (High)S1
CVSS 3.1 vectorCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:HS1
Scoring version and scorerCVSS 3.1, scored by secure@microsoft.com, labelled SecondaryS1
Other CVSS versionsNone present in the packS1
Vendor referenceMicrosoft Security Response Center (MSRC) update guide entry for the CVES1, S3
Related CVEs, bug IDs, KB or patch identifiersNot established by the reviewed sourcesS1, 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.

  1. A login with low privileges authenticates to the SQL Server instance over the network [1].
  2. The user submits a request that includes input the engine uses when generating code (Illustrative).
  3. The engine constructs code from that input without fully neutralizing it (Illustrative; consistent with CWE-94 [1]).
  4. 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]).
  5. 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

PrerequisiteRequirementBasis
Network accessRequired; the attack vector is networkVector AV:N [1]
Adjacent networkNot indicated by the vectorVector [1]
Local accessNot indicated by the vectorVector [1]
Physical accessNot indicated by the sourcesNot established
AuthenticationRequiredVector PR:L and record wording [1]
Privilege levelLow privilege; the exact role or permission set is not establishedVector PR:L [1]
User interactionRequired per the vector; the reason is not establishedVector UI:R [1]
Required configuration or featureNot established by the reviewed sourcesS1, S3
Attacker positionAn authenticated session that can reach the SQL Server listener over the network (Analyst assessment from AV:N and PR:L)S1
Environmental dependenciesNot established by the reviewed sourcesS1, 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

AreaTechnically indicated by the sourcesPlausible downstream consequence (Analyst assessment)
ConfidentialityHigh, per vector C:H [1]Reading data beyond the attacker's permitted scope, subject to what the elevated context can access
IntegrityHigh, per vector I:H [1]Altering data or configuration beyond the attacker's permitted scope
AvailabilityHigh, per vector A:H [1]Disrupting the instance or dependent applications
Authentication and authorizationPrivilege elevation is the stated outcome [1]Persistent higher-privilege access if the attacker creates or alters logins; no source documents this
Privilege boundariesCrossed from a low-privilege login to higher rights [1]Escalation toward host or domain resources is not established by the sources
Data and privacyNot establishedDepends on the data stored; personal data exposure would require an organizational assessment
Business operationsNot establishedDepends on the criticality of the instance
Regulatory or contractual obligationsNot establishedDepends 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 branchAffected rangeFixed versionSource and qualification
SQL Server 2017 (GDR)14.0.0 up to but not including 14.0.2150.214.0.2150.2S1, CNA record
SQL Server 2017 for x64-based Systems (CU31)14.0.3006.16 up to but not including 14.0.3570.214.0.3570.2S1, CNA record
SQL Server 2019 (GDR)15.0.0 up to but not including 15.0.2210.415.0.2210.4S1, CNA record
SQL Server 2019 for x64-based Systems (CU32)15.0.4003.23 up to but not including 15.0.4510.215.0.4510.2S1, CNA record
SQL Server 2022 (GDR)16.0.0 up to but not including 16.0.1220.316.0.1220.3S1, CNA record
SQL Server 2022 for x64-based Systems (CU27)16.0.4003.1 up to but not including 16.0.4315.216.0.4315.2S1, CNA record
SQL Server 2025 CU1017.0.4006.0 up to but not including 17.0.5045.317.0.5045.3S1, CNA record
SQL Server 2025 for x64-based Systems (GDR)17.0.1050.2 up to but not including 17.0.1155.317.0.1155.3S1, 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

MeasureWhat it protects againstLimitationsOperational side effectsHow to verifyOrigin
Remove or disable unused logins and accounts with no current needReduces the population able to start the attack (PR:L [1])Does not remove the flaw; active accounts still exposedPossible application or service disruption if a login is still usedLogin list reviewed and signed off by the ownerAnalyst assessment following from PR:L
Restrict network access to each instance to known application and administration hosts, using host or network firewall rulesReduces the reachable attacker population (AV:N [1])Does not stop attackers already on permitted hostsMay break unlisted clients; requires an application owner listConnection tests from a non-permitted host fail; firewall rule export reviewedAnalyst assessment following from AV:N
Review membership of high-privilege server and database roles and remove unneeded membersLimits what an elevated context could reach if the flaw is usedDoes not address the code-generation flawChanges may affect administrative tasksRole membership report compared with approved listAnalyst assessment
Increase monitoring of login creation and permission changes through SQL Server auditImproves detection of privilege changesDoes not stop exploitation; depends on audit retentionAudit overhead and storageAudit specification active and events visible in the audit targetAnalyst assessment
Patch to the fixed build for each branch as soon as the change window allowsRemoves the vulnerable code path, per the vendor-published fixed version [1]Requires a maintenance window and a tested rollbackRestart and downtime (see permanent remediation)Version check after patchingVendor-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:

  1. 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].
  2. 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.
  3. Take a verified full backup of each database and the master and msdb databases before installation, as a standard precaution (Analyst assessment).
  4. Apply the fix in a non-production environment first and test the critical application paths.
  5. Install the fixed build in the production maintenance window.
  6. Restart requirements: not established by the reviewed sources; plan for a service restart and confirm the vendor's restart guidance.
  7. Post-update configuration changes: none documented in the pack.
  8. 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

  1. 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].
  2. 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].
  3. Confirm the login and role review was completed and the approved list matches the current state.
  4. Confirm network restriction rules are active by testing connections from a permitted host and a non-permitted host.
  5. Confirm audit specifications are active and that test events for login and permission changes are captured in the audit target.
  6. Review SQL Server error logs and service health after restart for unexpected errors.
  7. 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.
  8. 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.

  1. 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.
  2. Scope: list every login used on the affected instances in the suspected period and every host connecting to them.
  3. 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.
  4. Evidence preservation: export SQL Server error logs, audit logs and relevant host logs before any cleanup, and hash the copies.
  5. Log and endpoint investigation: correlate the audit records with the host logs and network records for the suspected period.
  6. Credential rotation: rotate passwords for any login or service account whose exposure the evidence supports, following the organization's rotation procedure.
  7. Eradication and patching: install the fixed build for each affected branch and remove any unauthorized logins or role memberships found in the investigation.
  8. Recovery and monitoring: restore normal access with reduced privileges, and keep enhanced audit monitoring in place for a defined period.
  9. Notification: determine whether any regulatory or contractual notification applies, based on the data involved. The pack does not establish the data involved.
  10. 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

  1. 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].
  2. 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].
  3. 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].
  4. 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].
  5. 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].
  6. 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].
  7. 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].
  8. After patching, re-run the ProductVersion query on each instance and confirm the build equals or exceeds the fixed version for its branch [1].
  9. Review SQL Server error logs and service health after patching and restart, and retain the results with the owner, date and any exceptions [1].
  10. 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

  1. 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. CVE identity, record status and dates, official description, CVSS 3.1 score, vector and secondary scorer, CWE-94 mapping, CNA affected and fixed build ranges for each SQL Server branch, the vector-based prerequisites and impacts, and the MSRC reference.
  2. 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. CISA KEV status as of 2026-11-12 (not listed) and the statement that absence from KEV is not evidence of no exploitation.
  3. 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. Vendor (Microsoft MSRC) bulletin title and summary, confirming the vendor published an entry for the CVE and that its summary repeats the record description without technical detail.

Written with AI assistance from the 3 sources listed above, as of the research cut-off; each fact is cited to its source. Check the vendor's advisory before acting.

Summary

Improper control of generation of code ('code injection') in SQL Server allows an authorized attacker to elevate privileges over a network.

Description: NIST National Vulnerability Database (public domain)

Severity breakdown

High · 8.0 CVSS 3.1 base score 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.

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

Vector CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H

Weakness

  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Affected and fixed versions

ProductAffected versionsFixed in
Microsoft SQL Server 2017 (GDR)≥ 14.0.0, < 14.0.2150.214.0.2150.2
Microsoft SQL Server 2017 for x64-based Systems (CU31)≥ 14.0.3006.16, < 14.0.3570.214.0.3570.2
Microsoft SQL Server 2019 (GDR)≥ 15.0.0, < 15.0.2210.415.0.2210.4
Microsoft SQL Server 2019 for x64-based Systems (CU32)≥ 15.0.4003.23, < 15.0.4510.215.0.4510.2
Microsoft SQL Server 2022 (GDR)≥ 16.0.0, < 16.0.1220.316.0.1220.3
Microsoft SQL Server 2022 for x64-based Systems (CU27)≥ 16.0.4003.1, < 16.0.4315.216.0.4315.2
Microsoft SQL Server 2025 CU10≥ 17.0.4006.0, < 17.0.5045.317.0.5045.3
Microsoft SQL Server 2025 for x64-based Systems (GDR)≥ 17.0.1050.2, < 17.0.1155.317.0.1155.3

From the vendor's CVE record; confirm with the vendor advisory before relying on a version number.

References by type

Other references

Details from NVD (public domain).

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

References

Related vulnerabilities & news