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.
Originally disclosed on Microsoft
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
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
- An attacker crafts special instructions for SQL Copilot.
- The attacker convinces a user to submit those instructions to SQL Copilot in SQL Server Management Studio.
- The crafted instructions bypass intended read-only restrictions.
- 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.