Featured image of post Microsoft Copilot Hit by CVSS 8.8 Vulnerability: Trailing Period Bypasses Write Protection, Patched on October 13

Microsoft Copilot Hit by CVSS 8.8 Vulnerability: Trailing Period Bypasses Write Protection, Patched on October 13

Microsoft Copilot and SSMS Hit by CVSS 8.8 Remote Code Execution Vulnerability CVE-2026-103572. Windows silently strips trailing periods from filenames, so "settings.json." bypasses write protection and writes to settings.json. Patched on October 13 (Patch Tuesday), $0 bounty. Source: 稀土掘金 Developer Community

A Trailing Dot Bypassed Copilot’s Write Protection

A Trailing Dot Bypassed Copilot’s Write Protection
A Trailing Dot Bypassed Copilot’s Write Protection|News screenshot

Microsoft security researcher Johann Rehberger used a trailing dot to trick Visual Studio Copilot’s write protection. The vulnerability is CVE-2026-103572, with a CVSS score of 8.8, and is a remote code execution (RCE) issue—attackers can execute arbitrary code on your machine.

  • Scope of impact: Visual Studio Copilot and SQL Server Management Studio (SSMS); affected versions include Visual Studio 2022 and related SSMS versions; refer to Microsoft’s October 2026 Patch Tuesday update for specifics.
  • Timeline: Reported on August 4, followed up on August 30, Microsoft confirmed the vulnerability on September 16, and a fix was released on October 13 via Patch Tuesday.
  • Fix status: The patch has been released, and upgrading is sufficient to apply it. Microsoft rated the severity as Important, but assigned it a CVSS score of 8.8, close to the high-severity range.
  • Bounty: $0.

The Security Check Sees a String, but the System Writes to a Different Path

The Security Check Sees a String, but the System Writes to a Different Path
The Security Check Sees a String, but the System Writes to a Different Path|News screenshot

Windows silently truncates a trailing dot in a filename when parsing paths. This is a compatibility behavior inherited from the DOS era: early short filename rules did not allow names to end with a dot, so the kernel layer simply handled it uniformly for all applications, entirely transparently to the application layer.

The problem is an inconsistency between the two layers. Copilot’s security check happens before the file system API is called and only performs allowlist matching on the path string in the request: seeing that the trailing-dot path settings.json. is not on the protected list, it lets it through. The actual write is performed by Windows, the trailing dot is truncated, and what ultimately lands on disk is settings.json—a strictly protected configuration file.

StageCopilot security check layerWindows file system layer
Path seensettings.json.settings.json.
HandlingString allowlist matching; the trailing-dot path is not on the protected listSilently truncates the trailing dot in the filename
ResultNot a protected file, so it is allowed throughWrites to the protected file settings.json
Net effectThe check is bypassedMalicious configuration lands on disk

In one sentence: the security check thinks it is writing to A, but it actually writes to B. The source material classifies it as a variant of CWE-94 (code injection); more accurately, it is a security feature bypass caused by missing path normalization.

From Prompt Injection to Remote Code Execution

From Prompt Injection to Remote Code Execution
From Prompt Injection to Remote Code Execution|News screenshot

The attack chain has only two steps:

  1. Plant a malicious prompt in any context Copilot can read—a PR description, issue comment, or code comment will do. No special privileges are required, and the attack can be triggered simply by the user viewing that content.
  2. Induce Copilot to generate a configuration write whose target path has a trailing dot, using the discrepancy between the security check and Windows path parsing to overwrite settings.json.

settings.json is read by some plugins and execution frameworks in Visual Studio and SSMS. Malicious content can inject custom task definitions or code execution instructions, which are then loaded and executed by subsequent operations, completing the remote code execution. The entire chain involves no memory corruption and no zero-day; it works for one reason only: one system’s assumption is broken by another system’s compatibility behavior.

Who Should Upgrade Immediately, and Who Can Wait

Who Should Upgrade Immediately, and Who Can Wait
Who Should Upgrade Immediately, and Who Can Wait|News screenshot

  • Teams using Visual Studio 2022 or SSMS with Copilot: apply the October Patch Tuesday patch immediately—this is the most direct action.
  • Users who only use Copilot for code completion and do not allow it to write configuration files: the risk surface is much smaller, but staying current is still recommended.
  • There are two longer-term measures: sandbox AI agent tools and restrict their ability to write production configuration files; for an agent’s write activity, log the actual on-disk path rather than the requested path, and block anything anomalous.

Final Thoughts

The fix is simple: before the security check performs allowlist matching, it should first call the same path normalization function as the operating system. The real takeaway is that when an AI tool is granted file write permissions, security validation must align with the actual outcome of its behavior, not the input string it sees.