Microsoft fixes Visual Studio Copilot remote code execution vulnerability
Start here
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
- X @wunderwuzzi23Trailing 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/
- Hacker NewsHacker News· DiscussionVisual Studio Copilot and SSMS Remote Code Execution (CVE-2026-103572)(opens the original post in a new tab)
- X @wunderwuzzi23Copilot 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.
- Embrace The RedSelectedVisual 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
- Older than 72 hours · Not included in the 72-hour figures
- X@infinitelogins · Harley KimballIn his latest write-up, Johann Rehberger (@wunderwuzzi23) shows how one trailing dot bypassed Copilot's protected-file…(opens the original post in a new tab)
39 likes · 5 comments·Oct 25 05:44Collect
- X@ptdbugs · dbugsRCE in Visual Studio Copilot and SSMS Read on dbugs: https://dbu.gs/news/rce-in-visual-studio-copilot-and-ssms-2026102…(opens the original post in a new tab)
2 likes·Oct 24 19:44Collect
- X@avkashk · Avkash K@wunderwuzzi23 just showed how one trailing dot let Copilot in Visual Studio rewrite its own config. Copilot wasn't su…(opens the original post in a new tab)
10 likes · 7 comments·Oct 25 05:44Collect
- X@aihaberr · Ai HaberVisual Studio Copilot ve SSMS RCE: CVE-2026-103572 https://aihaber.org/vs-copilot-ssms-rce-cve/(opens the original post in a new tab)
- X@securityLab_jp · セキュリティ対策LabRCE vulnerability "CVE-2026-103572" in Visual Studio and SSMS Copilot — researchers publish PoC, Microsoft fixes https://rocket-boys.co.jp/security-measures…(opens the original post in a new tab)
2 likes·Oct 25 05:44Collect
- X@verseRXe · verseIf you use Visual Studio or SSMS, update first; the October patch has been released for CVE-2026-103572: Copilot blocks agents from modifying .mcp.json, but it compares strings, so writing ".mcp.json." can get through. Window…(opens the original post in a new tab)
- X@santhosh_patell · Santhosh PatelVisual Studio Copilot was blocked from writing `.mcp.json`. So the agent asked for `.mcp.json.` instead. Windows strip…(opens the original post in a new tab)
2 likes · 1 comments·Oct 25 05:44Collect
- X@ontoiq · พี่เอก | AI & Lifestyleอ่านรายละเอียด: https://embracethered.com/blog/posts/2026/visual-studio-copilot-remote-code-execution/(opens the original post in a new tab)
- X@ontoiq · พี่เอก | AI & LifestyleCopilot ใน Visual Studio อาจถูก prompt injection ให้แก้ config ของตัวเอง แล้วรันคำสั่งบนเครื่องได้ 🛡 CVSS 8.8 แพตช์แล้…(opens the original post in a new tab)
1 comments·Oct 17 21:34Collect
- X@moton · motonCVE-2026-103572: Visual Studio Copilot RCE Disclosed - https://securityonline.info/cve-2026-103572-visual-studio-copilo…(opens the original post in a new tab)
- X@maga_musk · Maga MuskFull chain: SSMS leaks install ID via isolation.ini → overwrite .mcp. config via path traversal → indirect prompt injec…(opens the original post in a new tab)
1 likes · 1 comments·Oct 17 09:34Collect
- X@maga_musk · Maga MuskWindows silently strips trailing dots from filenames. Writing to `settings.json.` → actually writes to `settings.json`…(opens the original post in a new tab)
1 comments·Oct 17 09:34Collect