CVE-2025-49717 Microsoft SQL Server Remote Code Execution Vulnerability

High 8.5 Published Updated

An authorized attacker can execute arbitrary code remotely via a heap-based buffer overflow in Microsoft SQL Server.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2025-49717?

CVE-2025-49717 is a high-severity memory corruption vulnerability in Microsoft Sql Server 2019, published on 8 Jul 2025. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Heap-based buffer overflow in SQL Server allows an authorized attacker to execute code over a network.

Weakness: CWE-122

Which versions are affected by CVE-2025-49717?

It affects 2 products.

Products include Microsoft Sql Server 2019, Microsoft Sql Server 2022.

How do I fix CVE-2025-49717?

No fix has been published for CVE-2025-49717 yet. Limit exposure of the affected software until one is available.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2025-49717 being exploited?

There is no known exploitation of CVE-2025-49717 in the wild and no public exploit code.

All Microsoft Sql Server 2019 vulnerabilities

Sources

Also known as GHSA-9397-6r66-qmgq.

Is CVE-2025-49717 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free