Rogue Agents Watch › Records › ssms-sql-copilot-privilege-escalation
SQL Copilot in SSMS — prompt injection to database privilege escalation (CVE-2026-65669)
Disclosed · added to the index · last updated
Grades
- Verification status
- Confirmed — Confirmed by a first-party disclosure or multiple independent credible sources.
- Sourcing confidence
- Primary — Backed by primary sourcing — first-party disclosure, vendor incident report, government advisory, or court documents.
- AI role
- Load-bearing — AI was central — the operation as described could not have happened at this scale or in this form without it.
- Severity
- Critical — Broad real-world harm — e.g. many organizations compromised, large-scale exfiltration, or critical-infrastructure impact.
Summary
Johann Rehberger (Embrace The Red) disclosed research, presented at BlueHat Asia 2026, showing that SQL Copilot in SQL Server Management Studio could be steered by instructions in content it reads, including database comments and persistent instruction files stored in database extended properties that a lower-privileged user can attach. The hijacked agent bypassed its read-only mode, ran write operations and arbitrary T-SQL with the connected user's permissions, exfiltrated database rows to an external server and, in the final demonstration, added an attacker's login to the sysadmin role. Microsoft assigned CVE-2026-65669 (Elevation of Privilege, CVSS 9.6) on 2026-09-08.
Impact as stated
Demonstrated bypass of SQL Copilot's read-only mode, data modification and exfiltration of database rows, and escalation from db_owner to sysadmin using the victim's connection. MSRC: database data could be accessed or modified with the connected user's permissions; not publicly disclosed or exploited at release.
Facts as stated by sources
- Actor
- Johann Rehberger (Embrace The Red) (Researcher)
- Category
- Agent hijack / prompt injection
- Models named
- not named by sources
- Model families
- Other / unspecified
- Agentic autonomy level
- Not applicable
- Guardrail bypass
- Indirect prompt injection
- Attack lifecycle phases
- Initial access, Execution, Persistence, Privilege escalation, Exfiltration
- Target sectors
- not stated
- Target countries
- not stated
- Organisations affected
- not stated
- Records exfiltrated
- not stated
Framework mappings
- MITRE ATLAS
- AML.T0051.001, AML.T0053, AML.T0086
- CVE
- CVE-2026-65669
Mitigations as stated
- Install the Microsoft update for CVE-2026-65669; keep SSMS installations up to date (Embrace The Red).
- Use Microsoft's SQL Copilot admin controls (disable Copilot, group policies, execution context); do not run Copilot on highly privileged database connections (Embrace The Red).
- Treat read-only enforcement as a security invariant rather than a model instruction, and treat persistent agent instruction files as a trust relationship in the permission model (Embrace The Red).
Map
No cited source states a location; this record is listed beside the map, never plotted.
Related records
Sources (3; 3 distinct publishers)
- From SELECT to SYSADMIN with SQL Copilot (CVE-2026-65669)
Embrace The Red · First-party disclosure · · no archive recorded - CVE-2026-65669 Detail
NVD / NIST · Government advisory · · no archive recorded - Microsoft SQL Server Elevation of Privilege Vulnerability (CVE-2026-65669), CSAF advisory
Microsoft Security Response Center · Vendor report · · no archive recorded
Cite this record
Agentic Attack Index (MLSecOpsHub), dataset v0.9.0, record "ssms-sql-copilot-privilege-escalation". https://raw.githubusercontent.com/MLSecOpsHub/agentic-attack-index/v0.9.0/dist/incidents/ssms-sql-copilot-privilege-escalation.json — CC BY-SA 4.0.