Technical impact
Improper control of code generation allows an authorized attacker to inject malicious code that runs with higher privileges on the database host, thereby granting administrative authority over the server.
Affected Systems
Microsoft SQL Server 2017 (GDR) and 2017 for x64-based Systems (CU31), Microsoft SQL Server 2019 (GDR) and 2019 for x64-based Systems (CU32), Microsoft SQL Server 2022 (GDR) and 2022 for x64-based Systems (CU27), Microsoft SQL Server 2025 CU10 and 2025 for x64-based Systems (GDR).
Risk and Exploitability
The CVSS score of 8.0 indicates high severity, but the EPSS score of less than 1% suggests a low likelihood of exploitation at present. The flaw is not listed in the CISA KEV catalog, meaning no confirmed active exploits are known. The most probable attack requires an authenticated user with network access to the vulnerable SQL Server instance; the attacker would then inject code that escalates privileges on the host.