Vulnerabilities

CVE-2026-40370

High 8.8 CVSS 3.1

Description

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

Description as published by the source, in English.

Key facts

Published
2026-05-12
Last modified
2026-10-26
Assigned by
secure@microsoft.com
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scored by
secure@microsoft.com
Probability of exploitation
0.6 % higher than 43 % of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15
Fix available
Not registered in the sources

Affected products

Vendor Product Versions Status
Microsoft Sql Server 2016 ≥ 13.0.6300.2, < 13.0.6490.1 Affected
Microsoft Sql Server 2016 ≥ 13.0.7000.253, < 13.0.7085.1 Affected
Microsoft Sql Server 2017 ≥ 14.0.1000.169, < 14.0.2110.2 Affected
Microsoft Sql Server 2017 ≥ 14.0.3006.16, < 14.0.3530.2 Affected
Microsoft Sql Server 2019 ≥ 15.0.2000.5, < 15.0.2170.1 Affected
Microsoft Sql Server 2019 ≥ 15.0.4003.23, < 15.0.4470.1 Affected
Microsoft Sql Server 2022 ≥ 16.0.1000.6, < 16.0.1180.1 Affected
Microsoft Sql Server 2022 ≥ 16.0.4003.1, < 16.0.4252.3 Affected
Microsoft Sql Server 2025 ≥ 17.0.1000.7, < 17.0.1115.1 Affected
Microsoft Sql Server 2025 ≥ 17.0.4006.2, < 17.0.4040.1 Affected

Weakness type

Attack techniques

Derived through the weakness type: CVE to CWE to CAPEC to ATT&CK. This shows which techniques the weakness class is historically used for. It does not assert that this vulnerability has been exploited that way.

  • T1027: Obfuscated Files or Information stealth
  • T1574.006: Dynamic Linker Hijacking stealth, execution
  • T1574.007: Path Interception by PATH Environment Variable stealth, execution

References

Related at Berigo

Articles

Does this affect you?

A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.

Check your asset list Browse all vulnerabilities