LiveActive security incident?Get immediate response
CVE Record

CVE-2026-40370: SQL Server Remote Code Execution Vulnerability

External control of file name or path in SQL Server allows an authorized attacker to execute code over a network.

HighCVSS 8.8Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

A user with authorized SQL Server access could remotely abuse attacker-controlled file or path handling to run code on the database host. Successful exploitation could expose data, alter systems, and interrupt database services. The 8.8 score makes this a high-priority vulnerability, especially where affected servers are reachable from less-trusted networks.

Executive priority

Treat this as a high-priority patching and exposure-reduction task. Begin with affected database servers holding sensitive data or reachable from untrusted networks. The need for an authorized account reduces immediate exposure compared with unauthenticated flaws, but compromised credentials or excessive permissions could satisfy that requirement.

Technical view

CVE-2026-40370 is a CWE-73 external file-name or path control vulnerability in listed SQL Server 2016, 2017, 2019, 2022, and 2025 releases. The CVSS vector indicates network access, low complexity, low privileges, no user interaction, unchanged scope, and high confidentiality, integrity, and availability impact.

Likely exposure

Exposure requires an affected SQL Server release, network reachability, and an authorized account. Prioritize internet-accessible systems, broadly reachable internal database services, and environments where low-privilege SQL access is available. The supplied version labels are insufficient alone to determine whether each deployed build has received Microsoft's update.

Exploitation context

The supplied record does not establish active exploitation, and the CVE is not identified as being in CISA's KEV catalog. Exploitation nevertheless appears operationally significant because it is network-accessible, low-complexity, requires only low privileges, and needs no user interaction. No exploit procedure or observed campaign is documented in the bundle.

Researcher notes

The source describes external control of a file name or path but does not identify the vulnerable component, reachable operation, attack artifact, exact fixed builds, or detection indicators. Validate remediation against Microsoft's live advisory. Avoid inferring exploitability for unlisted products or builds from the generic major-version values supplied.

Mitigation direction

  • Review Microsoft's CVE advisory and apply the update appropriate to each affected SQL Server servicing branch.
  • Restrict SQL Server network access to required applications, administrators, and trusted management networks.
  • Remove unnecessary SQL accounts and reduce granted privileges while updates are being deployed.
  • Prioritize externally reachable and business-critical database servers for accelerated remediation.

Validation and detection

  • Inventory SQL Server editions, major releases, servicing branches, architectures, and exact installed build numbers.
  • Compare each installed build with Microsoft's CVE-2026-40370 affected and security-update tables.
  • Confirm the applicable update installed successfully and that services restarted as required by Microsoft.
  • Review authentication and database activity logs for unusual low-privilege access or file-path-related behavior.
  • Retest network access controls to confirm only approved sources can reach SQL Server services.
Prepared
Confidence
medium
Sources
3

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · medium confidence lookup

CWE-73: File access and web shell behavior lookup

File traversal and upload weaknesses can lead teams to review file, web shell, execution, and collection telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
description · low confidence lookup

Execution behavior lookup

The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2026-40370 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
8.8 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
3Timeline events
1ADP providers
2Source links

SSVC decision data

CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: noneAutomatable: noTechnical Impact: total

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
8.8CVSS 3.1HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C2.85.9microsoft

Vulnerability scoring details

Base CVSS 3.1 score

8.8High
CVSS 3.1 vector shape for CVE-2026-40370Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone

Vulnerability timeline

Timeline events are normalized from CVE metadata, CNA source timelines, ADP timelines, and KEV metadata when present.

  1. CVE reservedCVE Program

    The CVE ID was reserved by the assigning CNA.

  2. CVE publishedCVE Program

    The CVE record was published.

  3. CVE updatedCVE Program

    The CVE record metadata indicates this as the latest update time.

ADP provider summaries

CISA-ADPCISA ADP Vulnrichment
other:ssvc

Source materials

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
MicrosoftMicrosoft SQL Server 2016 Service Pack 3 (GDR)13.0.0Listed
MicrosoftMicrosoft SQL Server 2016 Service Pack 3 Azure Connect Feature Pack13.0.0Listed
MicrosoftMicrosoft SQL Server 2017 (CU 31)14.0.0Listed
MicrosoftMicrosoft SQL Server 2017 (GDR)14.0.0Listed
MicrosoftMicrosoft SQL Server 2019 (CU 32)15.0.0.0Listed
MicrosoftMicrosoft SQL Server 2019 (GDR)15.0.0Listed
MicrosoftMicrosoft SQL Server 2022 (GDR)16.0.0Listed
MicrosoftMicrosoft SQL Server 2022 for x64-based Systems (CU 24)16.0.0.0Listed
MicrosoftMicrosoft SQL Server 2025 (CU 4)17.0.4040.1Listed
MicrosoftMicrosoft SQL Server 2025 for x64-based Systems (GDR)17.0.1050.2Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-73 · source CWE mapping

External Control of File Name or Path

External Control of File Name or Path represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.