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

Home › CVE › Microsoft

CVE-2026-118117 — 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.

MicrosoftWebDatabasesVulnerabilities

Research article

CVE-2026-118117: SQL Injection in Microsoft SQL Server Enables Privilege Elevation

CVECVE-2026-118117
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-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

FieldValueSource
CVE IDCVE-2026-118117[1]
VendorMicrosoft[1, 3]
ProductMicrosoft SQL Server[1, 3]
ComponentSQL command processing (SQL injection)[1, 3]
Affected platformSQL Server 2017, 2019, 2022, 2025 (GDR and CU builds)[1]
Published2026-11-10T19:19:30[1]
Last modified2026-11-10T20:18:11[1]
Record statusAwaiting Analysis[1]
CWECWE-89 (SQL Injection)[1]
CVSS 3.1 base8.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 classElevation of Privilege[3]
AdvisoryMSRC 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.

  1. An authenticated principal with low privileges connects to an affected SQL Server instance over the network [1].
  2. The principal supplies input that reaches an SQL statement which does not adequately neutralize special elements (CWE-89) [1].
  3. Because the input alters query structure, operations execute beyond the principal's intended authorization, resulting in elevation of privilege [1, 3].
  4. 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

PrerequisiteValueSource/basis
Attack vectorNetwork (AV:N)CVSS vector [1]
Attack complexityLow (AC:L)CVSS vector [1]
Privileges requiredLow (PR:L)CVSS vector [1]
User interactionRequired (UI:R)CVSS vector [1]
ScopeUnchanged (S:U)CVSS vector [1]
Attacker positionAble to authenticate to the SQL Server instance over the networkAnalyst assessment from vector [1]
Specific interface/inputNot 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

DimensionAssessmentSource
ConfidentialityHighCVSS C:H [1]
IntegrityHighCVSS I:H [1]
AvailabilityHighCVSS A:H [1]
Authentication/authorizationPrivilege boundary bypassed; elevation of privilege[1, 3]
Privilege boundaryAttacker gains privileges beyond assigned level[3]
Data/privacyPlausible exposure/modification of database contentsAnalyst assessment from C:H/I:H [1]
Business operationsPotential disruption of database-dependent servicesAnalyst assessment from A:H [1]
Regulatory/contractualNot established by the reviewed sources[1, 3]

Affected products and versions

ProductAffected rangeFixed buildSource/confidence
SQL Server 2017 (GDR)≥ 14.0.0, < 14.0.2150.214.0.2150.2Vendor via CVE record [1]
SQL Server 2017 x64 (CU31)≥ 14.0.3006.16, < 14.0.3570.214.0.3570.2Vendor via CVE record [1]
SQL Server 2019 (GDR)≥ 15.0.0, < 15.0.2210.415.0.2210.4Vendor via CVE record [1]
SQL Server 2019 x64 (CU32)≥ 15.0.4003.23, < 15.0.4510.215.0.4510.2Vendor via CVE record [1]
SQL Server 2022 (GDR)≥ 16.0.0, < 16.0.1220.316.0.1220.3Vendor via CVE record [1]
SQL Server 2022 x64 (CU27)≥ 16.0.4003.1, < 16.0.4315.216.0.4315.2Vendor via CVE record [1]
SQL Server 2025 CU10≥ 17.0.4006.0, < 17.0.5045.317.0.5045.3Vendor via CVE record [1]
SQL Server 2025 x64 (GDR)≥ 17.0.1050.2, < 17.0.1155.317.0.1155.3Vendor 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

  1. Confirm the installed build matches or exceeds the fixed build for your edition using SELECT SERVERPROPERTY('ProductVersion'); [1].
  2. Confirm the update was applied to the correct branch (GDR vs CU) for every instance in inventory [1].
  3. Confirm compensating network and least-privilege controls remain in place where needed.
  4. Review SQL Server error logs and service health after the restart to confirm normal operation.
  5. Re-run authenticated vulnerability scanning once scanner content covers CVE-2026-118117.
  6. 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

  1. Inventory all SQL Server instances and read the build via SELECT SERVERPROPERTY('ProductVersion'); compare to the fixed builds in the CVE record [1].
  2. 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].
  3. Back up databases and schedule a maintenance window; expect a service restart during update [1].
  4. Until patched, restrict network reachability of SQL Server to required application hosts and enforce least privilege on database logins; verify firewall/role settings [1].
  5. Enable and retain auditing of permission and role changes to detect privilege abuse [3].
  6. After patching, re-verify ProductVersion meets/exceeds the fixed build and review error logs and service health [1].
  7. 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

  1. 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. CVE identity, CWE-89, CVSS 3.1 score/vector, affected ranges and fixed builds, record status and dates, reference URL
  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. Absence from CISA KEV catalog as of 2026-11-12
  3. 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. MSRC advisory confirming SQL injection elevation-of-privilege classification and product (SQL Server)

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 neutralization of special elements used in an sql command ('sql 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-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL 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-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

References

Related vulnerabilities & news