Skip to content
AI / LLM Advisory Intermediate CVE-2026-65669

Microsoft SQL Server Elevation of Privilege Vulnerability (CVE-2026-65669)

SQL Server's Copilot feature in SQL Server Management Studio did not properly neutralise special elements in output, allowing an injection. An attacker could convince a user to submit crafted instructions to SQL Copilot, potentially bypassing read-only restrictions and accessing or modifying database data with the connected user's permissions.

Johann Rehberger Follow

Originally disclosed on Microsoft

Critical 9.6 View original

Description

Improper neutralization of special elements in output used by a downstream component ('injection') in SQL Server allows an unauthorized attacker to elevate privileges over a network.

FAQ

How could an attacker exploit this vulnerability? An attacker could convince a user to submit specially crafted instructions to SQL Copilot in SQL Server Management Studio. Successful exploitation could bypass intended read-only restrictions and allow database data to be accessed or modified using the connected user's permissions. User interaction is required.

SQL Server

SQL Server

Microsoft

Microsoft

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by Johann Rehberger with https://embracethered.com/. 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 improper neutralisation of special elements in output used by a downstream component, meaning the Copilot's handling of user-supplied instructions allowed injection that bypassed intended read-only restrictions.

Impact

Successful exploitation could bypass intended read-only restrictions and allow database data to be accessed or modified using the connected user's permissions, though user interaction is required.

What the attacker needed

User interaction required; victim uses SQL Copilot in SSMS; attacker convinces victim to submit instructions

How it was found

  1. An attacker crafts special instructions for SQL Copilot.
  2. The attacker convinces a user to submit those instructions to SQL Copilot in SQL Server Management Studio.
  3. The crafted instructions bypass intended read-only restrictions.
  4. Database data can then be accessed or modified using the connected user's permissions.

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.

SQL Copilot is an assistant inside a database tool that takes natural-language instructions and turns them into database actions. The flaw is that it did not properly filter the instructions it received, so a trick instruction could make it do more than the user intended, such as reading or changing data. The attacker needs the victim to paste or submit the malicious instruction themselves.

What is AI / LLM?

Prompt injection, data exfiltration and tool abuse in features built on language models, and the ordinary bugs around them.

More by Johann Rehberger

View all

3 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.

AI and LLM vulnerabilities

The lesson behind this report.

Prompt injection, data exfiltration and tool abuse in features built on language models, and the ordinary bugs around them.