SQL Copilot read-only bypass and privilege escalation vulnerability
Start here
Security researcher Johann Rehberger (wunderwuzzi23) disclosed the privilege escalation vulnerability CVE-2026-65669 in SQL Copilot in SQL Server Management Studio (SSMS) at BlueHat Asia 2026, which Microsoft rated as critical. Copilot executes SQL using the query window's database connection, so when a user connects as sysadmin, it has the same privileges; the so-called read-only mode relies only on the system prompt and the LocalSqlExecutionAccessChecker class. The researcher claims privilege escalation from SELECT to SYSADMIN, reminds users to ensure their SSMS installation is updated, and thanks Microsoft for quickly patching the issue. He subsequently posted a video post demonstrating the privilege escalation process, tagged CVE-2026-65669; this is the author's vulnerability disclosure claim, not an independent reproduction or vendor confirmation.
Generated by AI from reports · Updated 4 days ago
Progress timeline
- X @wunderwuzzi23Researcher demonstrates hijacking Copilot in SQL Server Management Studio (CVE-2026-65669)
Researcher wunderwuzzi23 posted a follow-up video post claiming to demonstrate privilege escalation from SELECT to SYSADMIN via Copilot in SQL Server Management Studio, tagged CVE-2026-65669. This is the author's vulnerability disclosure claim, not an independent reproduction or vendor confirmation.
- X @wunderwuzzi23Researcher discloses privilege escalation path in SQL Copilot in SQL Server Management Studio
Security researcher Johann Rehberger published research on SQL Copilot, the AI database assistant in Microsoft SQL Server Management Studio, finding a serious privilege escalation path from SELECT privileges to SYSADMIN. The author reminds users to ensure their SSMS installation is updated, thanks Microsoft for quickly patching the issue, and notes the research was also presented at BlueHat Asia two weeks ago. The author mentions the concept of a database CONSTITUTION.md file; full technical details and video demonstration are in the blog post.
- Embrace The RedSelectedResearchers disclose SQL Copilot privilege escalation vulnerability CVE-2026-65669: from SELECT to SYSADMIN
Security researcher Johann disclosed the privilege escalation vulnerability CVE-2026-65669 in SQL Copilot in SQL Server Management Studio (SSMS) at BlueHat Asia 2026, which Microsoft rated as critical. Copilot executes SQL using the query window's database connection, so when a user connects as sysadmin, it has the same privileges; the so-called read-only mode relies only on the system prompt and a regex blacklist in the LocalSqlExecutionAccessChecker class, with no separate low-privilege connection. The author bypassed the blacklist by indirectly invoking stored procedures, allowing Copilot to execute write operations such as CREATE, INSERT, UPDATE, DELETE, and DROP, and demonstrated data exfiltration. In the full attack chain, a database owner plants malicious instructions in the database, which are triggered via indirect prompt injection when a high-privilege user uses Copilot, ultimately adding the attacker's login to the sysadmin role. The author recommends making the agent's read-only restriction an enforcement at the permission level and reminds users to update promptly.
Related discussion
- Older than 72 hours · Not included in the 72-hour figures
- 公众号Doonsec[Translation] From SELECT to SYSADMIN: Privilege escalation with SQL Copilot (CVE-2026-65669) Worth a look(opens the original post in a new tab)
Attention trend
New sources per day
- Oct 1New3 sources (3 outlets,0 accounts)
- Oct 2New0 sources (0 outlets,0 accounts)
- Oct 3New0 sources (0 outlets,0 accounts)
- Oct 4New0 sources (0 outlets,0 accounts)
- Oct 5New0 sources (0 outlets,0 accounts)
- Oct 6New0 sources (0 outlets,0 accounts)
- Oct 7New0 sources (0 outlets,0 accounts)
- Oct 8New0 sources (0 outlets,0 accounts)
- Oct 9New0 sources (0 outlets,0 accounts)
- Oct 10New0 sources (0 outlets,0 accounts)
- Oct 11New0 sources (0 outlets,0 accounts)
- Oct 12New0 sources (0 outlets,0 accounts)
- Oct 13New0 sources (0 outlets,0 accounts)