One trailing dot bypassed VS Copilot's path check, enabling RCE (CVE-2026-103572)
wunderwuzzi23 · x · 2026-10-16
Security researcher wunderwuzzi disclosed a remote code execution vulnerability in Visual Studio Copilot and SQL Server Management Studio, patched by Microsoft on Oct 13 and rated Important.
- Root cause: Copilot had a check preventing writes to .mcp.json and its own config files, but it compared filenames as strings — settings.json. with a trailing dot (valid on Windows) passed the check, and Windows dropped the dot on write, landing on the protected file.
- Exploit chain: via indirect prompt injection, a hijacked agent could add its own MCP server and achieve arbitrary command execution. The flaw lives in the shared Microsoft.VisualStudio.Copilot.Core.dll, affecting older versions including VS 2022.
- Takeaway: the check inspected the request's name, not what it would actually touch — author argues protections that merely read names beside the agent don't hold.
More from coding & agent
- "CI/CD is dead": Developer lays out the AI Software Factory replacing traditional pipelines — Pavan_Belagatti · 2026-12-02
- Codex lead confirms upgraded harness not shipped yet; current one 'will seem primitive in 2-3 months' — VraserX · 2026-12-02
- banger: open-source agent skill writes hit-style Suno songs hook-first — tetsuoai · 2026-12-02
- Agent skills cut AI music video generation to under 2 hours, Suno skill released — tetsuoai · 2026-12-02
- Redditor secretly undid Claude Code's work every 10s; agent honestly reported a "ghost" — 32minutos · 2026-12-02
- UNC's Wanda: agentic AI for neuroimaging validated on 123,000 brains — PTenigma · 2026-12-02