Skip to content
Memory corruption Advisory Advanced CVE-2026-67638

Microsoft SQL Server Remote Code Execution Vulnerability (CVE-2026-67638)

A heap-based buffer overflow in Microsoft SQL Server lets an authenticated attacker send a crafted query or request over the network to corrupt memory and execute code on the server. No user interaction is needed, but the attacker must already have valid credentials.

Pwnforr777 Follow

Originally disclosed on Microsoft

High 8.8 View original

Description

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

FAQ

How could an attacker exploit this vulnerability? An authenticated attacker could exploit this vulnerability by connecting to an affected SQL Server and submitting a specially crafted query or request that triggers a memory corruption condition, allowing the attacker to execute code on the server. Authentication is required; user interaction is not required.

SQL Server

SQL Server

Microsoft

Microsoft

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by Pwnforr777. Images and videos are our own copies; raw HTML is shown as text. View it on Microsoft Security Response Center.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely a heap-based buffer overflow in SQL Server's handling of a crafted query or request, where the code does not check the size of data before copying it into a heap buffer.

Impact

An authenticated attacker could execute code on the SQL Server over the network; no user interaction is required.

What the attacker needed

Valid SQL Server credentials; network access to the SQL Server

The fix

Microsoft should fix the heap buffer overflow by adding proper bounds checks when processing queries; the text does not state that a patch is available.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

A buffer overflow is when a program writes more data into a fixed-size memory area than it can hold, so it spills into nearby memory. Here, a logged-in user can send a specially crafted database query that causes this spill and lets the attacker run their own code on the database server. The attacker needs a valid account, but no one else has to click anything.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

More by Pwnforr777

View all

105 more disclosed reports, best first.

More from Microsoft

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.