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

Published May 12, 2026
·
Updated

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

Other sources

SQL Server Remote Code Execution Vulnerability

Microsoft

Affected Software

20 affected componentsFixes available
Microsoft SQL Server 2016>=13.0.6300.2<13.0.6490.1
Microsoft SQL Server 2016>=13.0.7000.253<13.0.7085.1
Microsoft SQL Server 2017>=14.0.1000.169<14.0.2110.2
Microsoft SQL Server 2017>=14.0.3006.16<14.0.3530.2
Microsoft SQL Server 2019>=15.0.2000.5<15.0.2170.1
Microsoft SQL Server 2019>=15.0.4003.23<15.0.4470.1
Microsoft SQL Server 2022>=16.0.1000.6<16.0.1180.1
Microsoft SQL Server 2022>=16.0.4003.1<16.0.4252.3
Microsoft SQL Server 2025>=17.0.1000.7<17.0.1115.1
Microsoft SQL Server 2025>=17.0.4006.2<17.0.4040.1
Microsoft SQL Server 2019 (CU 32)<15.0.4470.1
15.0.4470.1
Microsoft SQL Server 2025<17.0.1115.1
17.0.1115.1
Microsoft SQL Server 2017 (CU 31)<14.0.3530.2
14.0.3530.2
Microsoft SQL Server 2022<16.0.1180.1
16.0.1180.1
Microsoft SQL Server 2025 (CU4)<17.0.4040.1
17.0.4040.1
Microsoft SQL Server 2016<13.0.6490.1
13.0.6490.1
Microsoft SQL Server 2017<14.0.2110.2
14.0.2110.2
Microsoft SQL Server 2019<15.0.2170.1
15.0.2170.1
Microsoft SQL Server 2016 Azure Connect Feature Pack<13.0.7085.1
13.0.7085.1
Microsoft SQL Server 2022 (CU 24)<16.0.4252.3
16.0.4252.3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 17.0.1115.1Patch KB5091223
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 15.0.4470.1Patch KB5090407
  3. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 14.0.3530.2Patch KB5090354
  4. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 17.0.4040.1Patch KB5089899
  5. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 16.0.1180.1Patch KB5091158
  6. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 13.0.6490.1Patch KB5089271
  7. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 14.0.2110.2Patch KB5090347
  8. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 15.0.2170.1Patch KB5090408
  9. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 13.0.7085.1Patch KB5089270
  10. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 16.0.4252.3Patch KB5089900

Event History

May 12, 2026
CVE Published
via Microsoft·02:00 PM
Data Sourced
via Microsoft·02:00 PM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·02:00 PM
Affected Software
Updated
via Microsoft·02:00 PM
Description
CVE Published
via MITRE·04:59 PM
Data Sourced
via MITRE·04:59 PM
DescriptionSeverity
Data Sourced
via NVD·06:17 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-40370?

CVE-2026-40370 has a high severity rating due to its potential to allow remote code execution.

2

How do I fix CVE-2026-40370?

You can fix CVE-2026-40370 by applying the latest security patches provided by Microsoft for the affected SQL Server versions.

3

Which SQL Server versions are affected by CVE-2026-40370?

CVE-2026-40370 affects SQL Server 2016, 2017, 2019, and 2022 in specific cumulative updates.

4

Can CVE-2026-40370 be exploited without authentication?

No, CVE-2026-40370 requires an attacker to be authorized, allowing exploitation only by authenticated users.

5

What type of attack does CVE-2026-40370 enable?

CVE-2026-40370 enables remote code execution attacks, allowing malicious code to be executed over a network.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203