{"api_version":"1","generated_at":"2026-06-22T08:53:36+00:00","cve":"CVE-2026-40370","urls":{"html":"https://cve.report/CVE-2026-40370","api":"https://cve.report/api/cve/CVE-2026-40370.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-40370","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-40370"},"summary":{"title":"SQL Server Remote Code Execution Vulnerability","description":"External control of file name or path in SQL Server allows an authorized attacker to execute code over a network.","state":"PUBLISHED","assigner":"microsoft","published_at":"2026-05-12 18:17:16","updated_at":"2026-06-18 17:23:30"},"problem_types":["CWE-73","CWE-610","CWE-73 CWE-73: External Control of File Name or Path"],"metrics":[{"version":"3.1","source":"secure@microsoft.com","type":"Secondary","score":"8.8","severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":8.8,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"3.1","source":"CNA","type":"CVSS","score":"8.8","severity":"HIGH","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","data":{"baseScore":8.8,"baseSeverity":"HIGH","vectorString":"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","version":"3.1"}}],"references":[{"url":"https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-40370","name":"https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-40370","refsource":"secure@microsoft.com","tags":["Vendor Advisory"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-40370","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40370","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Microsoft","product":"Microsoft SQL Server 2016 Service Pack 3 (GDR)","version":"affected 13.0.0 13.0.6490.1 custom","platforms":["x64-based Systems"]},{"source":"CNA","vendor":"Microsoft","product":"Microsoft SQL Server 2016 Service Pack 3 Azure Connect Feature Pack","version":"affected 13.0.0 13.0.7085.1 custom","platforms":["x64-based Systems"]},{"source":"CNA","vendor":"Microsoft","product":"Microsoft SQL Server 2017 (CU 31)","version":"affected 14.0.0 14.0.3530.2 custom","platforms":["x64-based Systems"]},{"source":"CNA","vendor":"Microsoft","product":"Microsoft SQL Server 2017 (GDR)","version":"affected 14.0.0 14.0.2110.2 custom","platforms":["x64-based Systems"]},{"source":"CNA","vendor":"Microsoft","product":"Microsoft SQL Server 2019 (CU 32)","version":"affected 15.0.0.0 15.0.4470.1 custom","platforms":["x64-based Systems"]},{"source":"CNA","vendor":"Microsoft","product":"Microsoft SQL Server 2019 (GDR)","version":"affected 15.0.0 15.0.2170.1 custom","platforms":["x64-based Systems"]},{"source":"CNA","vendor":"Microsoft","product":"Microsoft SQL Server 2022 (GDR)","version":"affected 16.0.0 16.0.1180.1 custom","platforms":["x64-based Systems"]},{"source":"CNA","vendor":"Microsoft","product":"Microsoft SQL Server 2022 for x64-based Systems (CU 24)","version":"affected 16.0.0.0 16.0.4252.3 custom","platforms":["x64-based Systems"]},{"source":"CNA","vendor":"Microsoft","product":"Microsoft SQL Server 2025 (CU 4)","version":"affected 17.0.4040.1 17.0.4040.1 custom","platforms":[]},{"source":"CNA","vendor":"Microsoft","product":"Microsoft SQL Server 2025 for x64-based Systems (GDR)","version":"affected 17.0.1050.2 17.0.1115.1 custom","platforms":["x64-based Systems"]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2026","cve_id":"40370","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"microsoft","cpe5":"sql_server_2016","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"x64","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2026","cve_id":"40370","cve":"CVE-2026-40370","epss":"0.000690000","percentile":"0.210610000","score_date":"2026-05-19","updated_at":"2026-05-20 00:11:24"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"adp":[{"metrics":[{"other":{"content":{"id":"CVE-2026-40370","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","timestamp":"2026-05-13T03:57:25.195979Z","version":"2.0.3"},"type":"ssvc"}}],"providerMetadata":{"dateUpdated":"2026-05-13T10:04:10.932Z","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP"},"title":"CISA ADP Vulnrichment"}],"cna":{"affected":[{"platforms":["x64-based Systems"],"product":"Microsoft SQL Server 2016 Service Pack 3 (GDR)","vendor":"Microsoft","versions":[{"lessThan":"13.0.6490.1","status":"affected","version":"13.0.0","versionType":"custom"}]},{"platforms":["x64-based Systems"],"product":"Microsoft SQL Server 2016 Service Pack 3 Azure Connect Feature Pack","vendor":"Microsoft","versions":[{"lessThan":"13.0.7085.1","status":"affected","version":"13.0.0","versionType":"custom"}]},{"platforms":["x64-based Systems"],"product":"Microsoft SQL Server 2017 (CU 31)","vendor":"Microsoft","versions":[{"lessThan":"14.0.3530.2","status":"affected","version":"14.0.0","versionType":"custom"}]},{"platforms":["x64-based Systems"],"product":"Microsoft SQL Server 2017 (GDR)","vendor":"Microsoft","versions":[{"lessThan":"14.0.2110.2","status":"affected","version":"14.0.0","versionType":"custom"}]},{"platforms":["x64-based Systems"],"product":"Microsoft SQL Server 2019 (CU 32)","vendor":"Microsoft","versions":[{"lessThan":"15.0.4470.1","status":"affected","version":"15.0.0.0","versionType":"custom"}]},{"platforms":["x64-based Systems"],"product":"Microsoft SQL Server 2019 (GDR)","vendor":"Microsoft","versions":[{"lessThan":"15.0.2170.1","status":"affected","version":"15.0.0","versionType":"custom"}]},{"platforms":["x64-based Systems"],"product":"Microsoft SQL Server 2022 (GDR)","vendor":"Microsoft","versions":[{"lessThan":"16.0.1180.1","status":"affected","version":"16.0.0","versionType":"custom"}]},{"platforms":["x64-based Systems"],"product":"Microsoft SQL Server 2022 for x64-based Systems (CU 24)","vendor":"Microsoft","versions":[{"lessThan":"16.0.4252.3","status":"affected","version":"16.0.0.0","versionType":"custom"}]},{"product":"Microsoft SQL Server 2025 (CU 4)","vendor":"Microsoft","versions":[{"lessThan":"17.0.4040.1","status":"affected","version":"17.0.4040.1","versionType":"custom"}]},{"platforms":["x64-based Systems"],"product":"Microsoft SQL Server 2025 for x64-based Systems (GDR)","vendor":"Microsoft","versions":[{"lessThan":"17.0.1115.1","status":"affected","version":"17.0.1050.2","versionType":"custom"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:a:microsoft:sql_server_2025:*:*:*:*:*:*:x64:*","versionEndExcluding":"17.0.4040.1","versionStartIncluding":"17.0.4040.1","vulnerable":true},{"criteria":"cpe:2.3:a:microsoft:sql_server_2022:*:*:*:*:*:*:x64:*","versionEndExcluding":"16.0.4252.3","versionStartIncluding":"16.0.0.0","vulnerable":true},{"criteria":"cpe:2.3:a:microsoft:sql_server_2017:*:-:*:*:*:*:x64:*","versionEndExcluding":"14.0.2110.2","versionStartIncluding":"14.0.0","vulnerable":true},{"criteria":"cpe:2.3:a:microsoft:sql_server_2019:*:*:*:*:*:*:x64:*","versionEndExcluding":"15.0.2170.1","versionStartIncluding":"15.0.0","vulnerable":true},{"criteria":"cpe:2.3:a:microsoft:sql_server_2016:*:sp3:*:*:*:*:x64:*","versionEndExcluding":"13.0.6490.1","versionStartIncluding":"13.0.0","vulnerable":true},{"criteria":"cpe:2.3:a:microsoft:sql_server_2016:*:sp3:*:*:*:*:x64:*","versionEndExcluding":"13.0.7085.1","versionStartIncluding":"13.0.0","vulnerable":true},{"criteria":"cpe:2.3:a:microsoft:sql_server_2017:*:-:*:*:*:*:x64:*","versionEndExcluding":"14.0.3530.2","versionStartIncluding":"14.0.0","vulnerable":true},{"criteria":"cpe:2.3:a:microsoft:sql_server_2022:*:*:*:*:*:*:x64:*","versionEndExcluding":"16.0.1180.1","versionStartIncluding":"16.0.0","vulnerable":true},{"criteria":"cpe:2.3:a:microsoft:sql_server_2025:*:*:*:*:*:*:x64:*","versionEndExcluding":"17.0.1115.1","versionStartIncluding":"17.0.1050.2","vulnerable":true},{"criteria":"cpe:2.3:a:microsoft:sql_server_2019:*:*:*:*:*:*:x64:*","versionEndExcluding":"15.0.4470.1","versionStartIncluding":"15.0.0.0","vulnerable":true}],"negate":false,"operator":"OR"}]}],"datePublic":"2026-05-12T14:00:00.000Z","descriptions":[{"lang":"en-US","value":"External control of file name or path in SQL Server allows an authorized attacker to execute code over a network."}],"metrics":[{"cvssV3_1":{"baseScore":8.8,"baseSeverity":"HIGH","vectorString":"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","version":"3.1"},"format":"CVSS","scenarios":[{"lang":"en-US","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-73","description":"CWE-73: External Control of File Name or Path","lang":"en-US","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2026-06-17T19:18:07.925Z","orgId":"f38d906d-7342-40ea-92c1-6c4a2c6478c8","shortName":"microsoft"},"references":[{"name":"SQL Server Remote Code Execution Vulnerability","tags":["vendor-advisory","patch"],"url":"https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-40370"}],"title":"SQL Server Remote Code Execution Vulnerability"}},"cveMetadata":{"assignerOrgId":"f38d906d-7342-40ea-92c1-6c4a2c6478c8","assignerShortName":"microsoft","cveId":"CVE-2026-40370","datePublished":"2026-05-12T16:59:21.097Z","dateReserved":"2026-04-11T23:06:15.615Z","dateUpdated":"2026-06-17T19:18:07.925Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-05-12 18:17:16","lastModifiedDate":"2026-06-18 17:23:30","problem_types":["CWE-73","CWE-610","CWE-73 CWE-73: External Control of File Name or Path"],"metrics":{"cvssMetricV31":[{"source":"secure@microsoft.com","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":8.8,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":2.8,"impactScore":5.9}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2026-05-13T03:57:25.195979Z","id":"CVE-2026-40370","options":[{"exploitation":"none"},{"automatable":"no"},{"technicalImpact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:microsoft:sql_server_2016:*:*:*:*:*:*:x64:*","versionStartIncluding":"13.0.6300.2","versionEndExcluding":"13.0.6490.1","matchCriteriaId":"07504D93-CA3C-49EA-A19E-9FF6E39DA2C2"},{"vulnerable":true,"criteria":"cpe:2.3:a:microsoft:sql_server_2016:*:*:*:*:*:*:x64:*","versionStartIncluding":"13.0.7000.253","versionEndExcluding":"13.0.7085.1","matchCriteriaId":"8788D53F-C70A-4445-A091-0E6F3B3580C2"},{"vulnerable":true,"criteria":"cpe:2.3:a:microsoft:sql_server_2017:*:*:*:*:*:*:x64:*","versionStartIncluding":"14.0.1000.169","versionEndExcluding":"14.0.2110.2","matchCriteriaId":"C57CAA5C-DBA1-4D67-AAE0-C6A140817060"},{"vulnerable":true,"criteria":"cpe:2.3:a:microsoft:sql_server_2017:*:*:*:*:*:*:x64:*","versionStartIncluding":"14.0.3006.16","versionEndExcluding":"14.0.3530.2","matchCriteriaId":"4665DEEC-676A-4569-A186-0CBEC807DB2F"},{"vulnerable":true,"criteria":"cpe:2.3:a:microsoft:sql_server_2019:*:*:*:*:*:*:x64:*","versionStartIncluding":"15.0.2000.5","versionEndExcluding":"15.0.2170.1","matchCriteriaId":"AA2CF0C9-AC74-4170-A3DA-6DBD6B191EE6"},{"vulnerable":true,"criteria":"cpe:2.3:a:microsoft:sql_server_2019:*:*:*:*:*:*:x64:*","versionStartIncluding":"15.0.4003.23","versionEndExcluding":"15.0.4470.1","matchCriteriaId":"8ABD3289-C541-4C60-9F0C-51414D05CCCD"},{"vulnerable":true,"criteria":"cpe:2.3:a:microsoft:sql_server_2022:*:*:*:*:*:*:x64:*","versionStartIncluding":"16.0.1000.6","versionEndExcluding":"16.0.1180.1","matchCriteriaId":"34EB59C6-69B7-4EC2-ABAE-0BD7C8AF0220"},{"vulnerable":true,"criteria":"cpe:2.3:a:microsoft:sql_server_2022:*:*:*:*:*:*:x64:*","versionStartIncluding":"16.0.4003.1","versionEndExcluding":"16.0.4252.3","matchCriteriaId":"AA459F89-6125-4CA4-8376-244CA117BF5D"},{"vulnerable":true,"criteria":"cpe:2.3:a:microsoft:sql_server_2025:*:*:*:*:*:*:x64:*","versionStartIncluding":"17.0.1000.7","versionEndExcluding":"17.0.1115.1","matchCriteriaId":"3354FA6E-48A1-406B-A2CB-DB9B769C7E1B"},{"vulnerable":true,"criteria":"cpe:2.3:a:microsoft:sql_server_2025:*:*:*:*:*:*:x64:*","versionStartIncluding":"17.0.4006.2","versionEndExcluding":"17.0.4040.1","matchCriteriaId":"6440EDCA-2737-425A-9C84-A775C133C581"}]}]}]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"40370","Ordinal":"1","Title":"SQL Server Remote Code Execution Vulnerability","CVE":"CVE-2026-40370","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"40370","Ordinal":"1","NoteData":"External control of file name or path in SQL Server allows an authorized attacker to execute code over a network.","Type":"Description","Title":"SQL Server Remote Code Execution Vulnerability"}]}}}