Rogue Agents Watch › Records › visual-studio-copilot-ssms-rce
Visual Studio and SSMS Copilot — prompt injection to remote code execution (CVE-2026-103572)
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
- High — Significant confirmed harm to one or more organizations.
Summary
Johann Rehberger (Embrace The Red) disclosed that the Copilot agent shared by Visual Studio and SQL Server Management Studio could be hijacked by indirect prompt injection in content the user later worked with, and could then write to its own settings and configuration files despite a path validation check. Changing that configuration let the agent register a new tool server or redirect a configured binary, leading to code execution on the developer's machine, and read settings files without the expected confirmation. Microsoft confirmed it and shipped a fix on 2026-10-13 as CVE-2026-103572 (Remote Code Execution, CVSS 8.8).
Impact as stated
Demonstrated code execution on a developer workstation via the IDE's Copilot agent rewriting its own configuration, plus reading settings files without confirmation. Affected Visual Studio 2022 17.14 and Visual Studio 2026 18.10 per the CVE record, and SSMS per Microsoft and Embrace The Red. Not publicly disclosed or exploited at release per MSRC.
Facts as stated by sources
- Actor
- Johann Rehberger (Embrace The Red) (Researcher)
- Category
- Agent hijack / prompt injection
- Models named
- MAI-Code-1-Flash
- Model families
- Other / unspecified
- Agentic autonomy level
- Not applicable
- Guardrail bypass
- Indirect prompt injection
- Attack lifecycle phases
- Initial access, Execution, Persistence
- Target sectors
- Technology
- Target countries
- not stated
- Organisations affected
- not stated
- Records exfiltrated
- not stated
Framework mappings
- MITRE ATLAS
- AML.T0051.001, AML.T0053, AML.T0081
- CVE
- CVE-2026-103572
Mitigations as stated
- Install the October 2026 Microsoft update for Visual Studio and SSMS (CVE-2026-103572); per Embrace The Red the fix normalises file paths before validation.
- Embrace The Red: security controls around agents must hold even when the agent itself is compromised or misaligned.
Map
No cited source states a location; this record is listed beside the map, never plotted.
Related records
Sources (3; 3 distinct publishers)
- Visual Studio Copilot and SSMS Remote Code Execution (CVE-2026-103572)
Embrace The Red · First-party disclosure · · no archive recorded - CVE-2026-103572 Detail
NVD / NIST · Government advisory · · no archive recorded - Visual Studio Tools for Applications and SQL Server Management Studio Remote Code Execution Vulnerability (CVE-2026-103572), CSAF advisory
Microsoft Security Response Center · Vendor report · · no archive recorded
Cite this record
Agentic Attack Index (MLSecOpsHub), dataset v0.9.0, record "visual-studio-copilot-ssms-rce". https://raw.githubusercontent.com/MLSecOpsHub/agentic-attack-index/v0.9.0/dist/incidents/visual-studio-copilot-ssms-rce.json — CC BY-SA 4.0.