Skip to content
Johann Rehberger· @wunderwuzzi23 · X·Indexed by this site · Originally published· Event →

Trailing dot bypasses Visual Studio Copilot protected file checks to achieve code execution (CVE-2026-103572)

AI summary

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/

Full text · Original

Scary dots in NTFS vs Win32 😱

Quoted postHarley Kimball@infinitelogins
In his latest write-up, Johann Rehberger (@wunderwuzzi23) shows how one trailing dot bypassed Copilot's protected-file checks in Visual Studio and SSMS (CVE-2026-103572). Windows treats `settings.json.` as `settings.json`, so Copilot could rewrite its own config, point an MCP server or ripgrepPath at an attacker binary, and get code execution. Microsoft fixed it with path normalization. Full write-up 👇 https://embracethered.com/blog/posts/2026/visual-studio-copilot-remote-code-execution/ #BugBounty
View the quoted post on X

Source: Johann Rehberger · x.com