A trailing period in a filename was enough to defeat a protection intended to stop Copilot from rewriting its own configuration. According to security researcher Johann Rehberger, that file-validation failure could turn an indirect prompt injection into arbitrary command execution in Visual Studio and SQL Server Management Studio.
Microsoft shipped a fix on October 13, 2026, following Rehberger’s August report. In his technical disclosure, Rehberger says Microsoft classified CVE-2026-103572 as an Important remote code execution vulnerability with a CVSS score of 8.8.
Affected Visual Studio and SQL Server Management Studio installations should be updated. The attack crossed a security boundary because the software enforcing Copilot’s file-access restrictions misunderstood which file Windows would actually write. A hijacked agent could then change configuration that caused its host application to launch an attacker-selected command.
Windows Resolved a Different Filename Than Copilot Checked
Copilot had checks intended to prevent it from modifying sensitive settings and configuration files. Those checks examined the supplied filename, but ordinary Windows file operations could interpret that name differently.
For example, settings.json and settings.json. are different strings. Under normal Win32 path processing, however, a trailing period can be removed, causing both names to address the same file. The underlying filesystem and the Windows APIs above it do not always treat filenames identically.
Rehberger found that a trailing-dot variation could pass Copilot’s protected-filename check. When the subsequent write reached the Windows file APIs, normalization removed the distinction that had allowed it through. The agent could therefore overwrite a file that the application was supposed to protect.
The failure came down to the order of operations: the application made its security decision using one representation of a path, then performed the operation using another. A restriction on the first representation did not reliably protect the actual destination.
Rehberger also reported related path-traversal problems. A path could appear to begin in a trusted extensions directory while relative directory components caused it to resolve somewhere else. In those cases, too, the path’s textual appearance did not reliably identify its destination.
For developers, the rule is to resolve and normalize a path before using it to make an access-control decision. Validation must apply to the destination the file operation will actually reach.
How Prompt Injection Reached a Process-Launch Boundary
The filename bug provided the escape route. Indirect prompt injection gave an outside attacker a way to steer the agent toward it.
In an indirect prompt injection, instructions arrive inside material the assistant is supposed to read as data, rather than through a legitimate user request. Rehberger demonstrated malicious instructions embedded in a file that Copilot encountered. He also noted that content returned by an MCP server could provide another route into the conversation.
The reported chain depended on attacker-controlled material reaching a Copilot workflow and influencing the agent’s actions. It was not an unauthenticated network service executing any command sent to it.
Once influenced, the agent could exploit the path-validation defect to modify protected configuration. Rehberger described two routes from those edits to code execution:
- MCP configuration changes: The agent could alter server definitions and related enablement settings so that the IDE launched an attacker-selected command as an MCP server.
- Visual Studio search configuration changes: The agent could change the executable used for a search operation, causing a later search to launch a different program.
In both cases, the host application treated particular settings as instructions about which processes to start. These were configuration-based execution paths, not merely edits to ordinary project source files.
The protected files were therefore part of a process-launch security boundary. If an agent can rewrite them despite restrictions, denying it a direct command-execution tool is insufficient to contain it. A permitted file operation can become an execution mechanism when the destination controls executable behavior, so “the assistant can edit files” and “the assistant can execute commands” are not always separate capabilities.
The disclosure does not, by itself, establish privilege escalation beyond the permissions available to the host application. The demonstrated consequence is arbitrary command execution through the affected application’s workflow, not proof of administrator-level control in every installation.
Visual Studio and SSMS Share the Affected Component
Rehberger identified the vulnerable component as Microsoft.VisualStudio.Copilot.Core.dll, shared by Visual Studio and SQL Server Management Studio, or SSMS.
His disclosure describes demonstrations involving Visual Studio 2026 and SSMS, and says older versions, including Visual Studio 2022, are also affected. The shared component explains why the issue extends beyond a single development environment.
Updating Visual Studio does not establish that a separately installed SSMS instance has been remediated. Organizations need to check both product inventories and apply the updates relevant to each affected installation.
The exact affected and fixed releases should come from Microsoft’s CVE-2026-103572 advisory, rather than from an assumed version cutoff. The supplied advisory page did not expose its product-version table, so this article does not reproduce one.
The disclosure concerns the shared Copilot component in these applications. It does not establish that every Microsoft product using the Copilot name, or every editor offering GitHub Copilot, contains this vulnerability. Although the component name is useful context for security teams, remediation remains product-specific: identify affected Visual Studio and SSMS installations and verify that their applicable security updates have been installed.
The Fix Moves Normalization Ahead of Validation
Rehberger’s disclosure records an initial report on August 4, additional Visual Studio findings shared that week, Microsoft’s confirmation on September 16, and the patch shipping on October 13.
In his analysis of the fix, Rehberger says Microsoft added a GetFullPath call to normalize the path before validation. In the Windows behavior he examined, that removed the trailing period and resolved relative path components.

The security check can now evaluate the normalized destination before Windows reinterprets the supplied spelling. Rehberger says the change addresses the trailing-dot bypass and should also prevent some of the traversal variants he reported.
That finding does not establish that every possible filesystem bypass has been eliminated. The researcher examined a specific fix for specific reported behaviors. Repairing path validation also does not establish that the underlying model can no longer be manipulated through untrusted content. The patch strengthens the enforcement layer that must remain effective even when the model follows malicious instructions.
Developers and administrators should prioritize three checks:
- Identify installations of both Visual Studio and SSMS, including older supported product lines.
- Consult Microsoft’s advisory for the applicable affected releases and security updates.
- Confirm the updates were actually applied, rather than assuming that updating one application also updated the other.
The supplied public evidence does not establish whether this vulnerability was exploited in the wild. Rehberger’s demonstrations establish a working attack chain, but a proof of concept is not evidence of attacks against other users. The absence of documented exploitation in these sources is no reason to defer an available fix.
Agent Containment Must Survive a Hijacked Model
For the AI industry, the most consequential part of this disclosure is where the defense failed. The agent was supposed to be unable to modify certain files regardless of what instructions the model produced. A conventional Windows path-handling mistake undermined that restriction.
Improving a model’s resistance to prompt injection remains useful, but it cannot substitute for enforcing permissions in the surrounding application. The safe assumption is that an agent may eventually request an operation it should not perform. The file-access layer then has to reject that operation reliably.
Configuration deserves particular attention because it can bridge capabilities. A settings file may look like passive data while actually determining which executable starts next. Protecting direct shell access without equally protecting process-launch configuration leaves an alternative route to the same outcome.
Microsoft’s patch addresses the reported path-normalization failure. Developers should install it, then apply the same scrutiny to their own agent integrations: evaluate resolved destinations, protect execution-related settings, and test controls with an agent that is already following hostile instructions. Those controls need to hold even when the model does not cooperate.