CVE-2026-40370
Full vulnerability record from the local CVENow database.
Description
External control of file name or path in SQL Server allows an authorized attacker to execute code over a network.
Severity
HIGH
CVSS score
8.8
(v3.1)
Vulnerability status
Analyzed
Source identifier
Published
2026-05-12 18:17:16.147000
Last modified
2026-10-26 18:10:00.173000
View original CVE JSON
{
"id": "CVE-2026-40370",
"sourceIdentifier": "[email protected]",
"published": "2026-05-12T18:17:16.147",
"lastModified": "2026-10-26T18:10:00.173",
"vulnStatus": "Analyzed",
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "External control of file name or path in SQL Server allows an authorized attacker to execute code over a network."
},
{
"lang": "es",
"value": "Control externo del nombre o la ruta del archivo en SQL Server permite a un atacante autorizado ejecutar código a través de una red."
}
],
"affected": [
{
"source": "[email protected]",
"affectedData": [
{
"vendor": "Microsoft",
"product": "Microsoft SQL Server 2016 Service Pack 3 (GDR)",
"platforms": [
"x64-based Systems"
],
"versions": [
{
"version": "13.0.0",
"lessThan": "13.0.6490.1",
"versionType": "custom",
"status": "affected"
}
]
},
{
"vendor": "Microsoft",
"product": "Microsoft SQL Server 2016 Service Pack 3 Azure Connect Feature Pack",
"platforms": [
"x64-based Systems"
],
"versions": [
{
"version": "13.0.0",
"lessThan": "13.0.7085.1",
"versionType": "custom",
"status": "affected"
}
]
},
{
"vendor": "Microsoft",
"product": "Microsoft SQL Server 2017 (CU 31)",
"platforms": [
"x64-based Systems"
],
"versions": [
{
"version": "14.0.0",
"lessThan": "14.0.3530.2",
"versionType": "custom",
"status": "affected"
}
]
},
{
"vendor": "Microsoft",
"product": "Microsoft SQL Server 2017 (GDR)",
"platforms": [
"x64-based Systems"
],
"versions": [
{
"version": "14.0.0",
"lessThan": "14.0.2110.2",
"versionType": "custom",
"status": "affected"
}
]
},
{
"vendor": "Microsoft",
"product": "Microsoft SQL Server 2019 (CU 32)",
"platforms": [
"x64-based Systems"
],
"versions": [
{
"version": "15.0.0.0",
"lessThan": "15.0.4470.1",
"versionType": "custom",
"status": "affected"
}
]
},
{
"vendor": "Microsoft",
"product": "Microsoft SQL Server 2019 (GDR)",
"platforms": [
"x64-based Systems"
],
"versions": [
{
"version": "15.0.0",
"lessThan": "15.0.2170.1",
"versionType": "custom",
"status": "affected"
}
]
},
{
"vendor": "Microsoft",
"product": "Microsoft SQL Server 2022 (GDR)",
"platforms": [
"x64-based Systems"
],
"versions": [
{
"version": "16.0.0",
"lessThan": "16.0.1180.1",
"versionType": "custom",
"status": "affected"
}
]
},
{
"vendor": "Microsoft",
"product": "Microsoft SQL Server 2022 for x64-based Systems (CU 24)",
"platforms": [
"x64-based Systems"
],
"versions": [
{
"version": "16.0.0.0",
"lessThan": "16.0.4252.3",
"versionType": "custom",
"status": "affected"
}
]
},
{
"vendor": "Microsoft",
"product": "Microsoft SQL Server 2025 (CU 4)",
"versions": [
{
"version": "17.0.4040.1",
"lessThan": "17.0.4040.1",
"versionType": "custom",
"status": "affected"
}
]
},
{
"vendor": "Microsoft",
"product": "Microsoft SQL Server 2025 for x64-based Systems (GDR)",
"platforms": [
"x64-based Systems"
],
"versions": [
{
"version": "17.0.1050.2",
"lessThan": "17.0.1115.1",
"versionType": "custom",
"status": "affected"
}
]
}
]
}
],
"metrics": {
"cvssMetricV31": [
{
"source": "[email protected]",
"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"
}
}
]
},
"weaknesses": [
{
"source": "[email protected]",
"type": "Secondary",
"description": [
{
"lang": "en",
"value": "CWE-73"
}
]
},
{
"source": "[email protected]",
"type": "Primary",
"description": [
{
"lang": "en",
"value": "CWE-610"
}
]
}
],
"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"
}
]
}
]
}
],
"references": [
{
"url": "https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-40370",
"source": "[email protected]",
"tags": [
"Vendor Advisory"
]
}
]
}