Skip to content
EventPast event

Microsoft fixes Visual Studio Copilot remote code execution vulnerability

3 reports2 reporting sourcesLatest report

Start here

AI overview

Security researcher Johann Rehberger disclosed a remote code execution vulnerability, CVE-2026-103572, in Copilot for Visual Studio and SQL Server Management Studio. The root cause is that Windows ignores a trailing period in file names, so when the Agent writes to names such as settings.json. it can bypass checks on protected configuration files. Microsoft rated it Important and released a fix on the October 13 Patch Tuesday. Rehberger explained on X that simply adding a period to the end of a configuration file name bypasses Copilot's security controls, and linked to a detailed analysis on embracethered.com. A subsequent article he published further showed that this discrepancy can let Copilot rewrite its own configuration, pointing the MCP server or ripgrepPath to an attacker's binary.

Generated by AI from reports · Updated 2026-10-23

Progress timeline

Oct 23
  1. X @wunderwuzzi23
    Trailing dot bypasses Visual Studio Copilot protected file checks to achieve code execution (CVE-2026-103572)

    Johann Rehberger's latest article shows that an extra trailing dot on a filename can bypass Copilot's protected file checks in Visual Studio and SSMS, vulnerability CVE-2026-103572. This exploits the difference between NTFS and Win32 handling of trailing dots: Windows treats settings.json. the same as settings.json, so Copilot can rewrite its own configuration, pointing the MCP server or ripgrepPath at an attacker binary, thereby achieving code execution. Microsoft has fixed it through path normalization; full analysis at https://embracethered.com/blog/posts/2026/visual-studio-copilot-remote-code-execution/

Oct 15
Oct 14
  1. X @wunderwuzzi23
    Copilot for Visual Studio and SSMS have an RCE vulnerability; adding a period at the end of a configuration file name can bypass security controls

    Johann Rehberger disclosed a remote code execution vulnerability in Copilot for Visual Studio and SQL Server Management Studio, where adding a period at the end of a configuration file name can bypass Copilot's security controls, leading to RCE. He provided this explanation on X and linked to a detailed analysis on embracethered.com.

  2. Embrace The RedSelected
    Visual Studio Copilot and SSMS remote code execution vulnerability (CVE-2026-103572)

    Security researcher Johann Rehberger disclosed a path validation bypass vulnerability in Visual Studio Copilot, CVE-2026-103572. Microsoft rated it Important-level remote code execution and released a fix in the October 13 Patch Tuesday. The root cause is that Windows ignores trailing dots in file names, so an Agent can bypass checks on protected configuration files by writing names such as settings.json. The flaw is in Microsoft.VisualStudio.Copilot.Core.dll, shared by Visual Studio and SSMS, and older versions such as Visual Studio 2022 are also affected. The vulnerability was reported to MSRC on August 4, confirmed by Microsoft on September 16, has a CVSS of 8.8 but a bounty of $0. The fix adds a GetFullPath call to strip trailing dots and normalize paths.

Related discussion

Total 25 items

Related events