CVE-2026-103572: Copilot path-validation bypass leading to RCE in Visual Studio and SSMS
- Vendor
- Microsoft Corporation
CVE-2026-103572 is a code injection vulnerability affecting Copilot in Microsoft Visual Studio and SQL Server Management Studio (SSMS). Protected-file validation in EditsFunctionHandler.GetEditConfirmationTypeAsync evaluates destination paths before Windows path normalization. Appending a trailing period can therefore bypass restrictions while the subsequent filesystem operation targets the protected configuration file. Indirect prompt injection through attacker-controlled project content or other Copilot inputs can induce these unauthorized writes. Modifying Model Context Protocol (MCP) server configuration or Visual Studio's search-tool executable setting can subsequently cause arbitrary command execution with the developer's privileges. Microsoft classified the vulnerability as Important, with a CVSS v3.1 base score of 8.8, and released a fix on October 13, 2026.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation compromises the confidentiality and integrity of resources accessible to the developer account by executing attacker-controlled commands within its security context. The vulnerability bypasses Copilot's protected-configuration checks, allowing malicious MCP server activation or substitution of the executable used for Copilot searches. Execution uses the developer's existing privileges; a separate elevation-of-privilege capability is not established.
Mitigation
If you can’t patch tonight, do this now.
Enforce workspace trust before allowing Copilot to process external projects. Disable unprompted tool execution and require explicit approval for MCP commands, reviewing the executable and arguments rather than relying solely on the configured server name. Treat repository content, database schema text, and MCP responses as untrusted inputs. Use AppLocker or Windows Defender Application Control to restrict unauthorized executable launches. Monitor IDE-originated changes to MCP and application configuration, and investigate unexpected command interpreters or other child processes launched by Visual Studio or SSMS. These controls reduce exposure but do not replace patching.
Remediation
Patch, then assume compromise.
Apply the applicable Microsoft security updates released on October 13, 2026, or superseding updates, to affected Visual Studio, Visual Studio Tools for Applications, and SSMS installations. The correction introduces path normalization before filesystem access-policy evaluation. Select the update for each installed product and servicing branch using Microsoft's vulnerability-specific update guidance; a complete, consistently established set of fixed builds is not available.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Frequently asked questions
- Is CVE-2026-103572 exploited in the wild?
- As of Nov 27, 2026, Mallory has no reports of CVE-2026-103572 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-103572?
- As of Nov 27, 2026, Mallory has found no public exploit for CVE-2026-103572.
- Is there a patch for CVE-2026-103572?
- Apply the applicable Microsoft security updates released on October 13, 2026, or superseding updates, to affected Visual Studio, Visual Studio Tools for Applications, and SSMS installations. The correction introduces path normalization before filesystem access-policy evaluation.
- What products are affected by CVE-2026-103572?
- Microsoft Corporation Microsoft Visual Studio 2026 Version 18.10 and Microsoft Corporation Visual Studio 2022.
- How severe is CVE-2026-103572?
- CVE-2026-103572 has a CVSS v3.1 score of 8.8 (High) and an EPSS score of 0.88% (57th percentile) as of Nov 27, 2026.
Recent activity
15 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.