CVE-2026-103572
Visual Studio and SSMS GitHub Copilot code injection RCE
Microsoft scores CVE-2026-103572 CVSS 3.1 8.8 (Important). A prompt-injected GitHub Copilot in Visual Studio or SQL Server Management Studio could bypass a file path check, rewrite its own settings and run code. User interaction with Copilot is required. Fixed in Visual Studio 2022 17.14.42 and Visual Studio 2026 18.10.4 on 13 October 2026. Researcher PoC write-up public. Not exploited, not in CISA KEV.
- CVSS
- 8.8
- Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Class
- RCE
- Status
- PoC Available
- KEV
- Not in CISA KEV
- 0-day
- No
- Vendor
- Microsoft
- Products
- Visual Studio 2022, Visual Studio 2026, SQL Server Management Studio
- Affected
- Visual Studio 2022 version 17.14 from 17.14.0 before 17.14.42. Visual Studio 2026 version 18.10 from 18.10.0 before 18.10.4. Microsoft names SQL Server Management Studio in the title but lists no SSMS build.
- Fixed
- Visual Studio 2022 17.14.42 and Visual Studio 2026 18.10.4, released 13 October 2026. No SSMS fixed build is named by Microsoft for this CVE.
- CWE
- CWE-94
- Published
- 13 Oct 2026
- Updated
- 14 Oct 2026
The status above is the claim. Links do not upgrade it.
CVE-2026-103572 is a code injection flaw (CWE-94) in the GitHub Copilot integration of Visual Studio and SQL Server Management Studio (SSMS). Microsoft fixed it in the 13 October 2026 Patch Tuesday release.
Microsoft scores it CVSS 3.1 8.8 and rates it Important, with impact Remote Code Execution. NVD shows the Microsoft score and is still awaiting analysis. Microsoft marks it not publicly disclosed and not exploited, with exploitability "Exploitation Less Likely".
Microsoft's FAQ says an attacker can deliver a malicious prompt over the network without prior access. A user must interact with Copilot. Prompt injection can then make Copilot run attacker-controlled instructions.
Fixed builds are Visual Studio 2022 17.14.42 and Visual Studio 2026 18.10.4. Microsoft's title names SSMS, but its affected list has no SSMS build. SSMS 22.11.0 shipped the same day; its release notes do not name this CVE.
Microsoft credits Johann Rehberger (Embrace The Red). His write-up says the flaw lets Copilot bypass a file path check and edit its own protected configuration. That leads to command execution. He reports SSMS shares the vulnerable Copilot component.
The CVE is not in the CISA KEV catalog. CISA's SSVC entry says exploitation: none. No exploitation in the wild is reported.
Researcher Johann Rehberger published a technical write-up with proof-of-concept demonstrations. In them, prompt injection leads Copilot to modify its protected config and launch a rogue MCP server. ThreatWire has not reproduced them. He says a trailing dot in a file name bypassed the protected-file check. He says Microsoft's fix normalizes paths (GetFullPath). The PoC link field points to the write-up.