{
  "id": "vs-copilot-trailing-dot-rce-2026-10",
  "name": "Visual Studio / SSMS Copilot trailing-dot RCE (CVE-2026-103572)",
  "date_reported": "2026-10-13",
  "researcher": "Johann Rehberger (wunderwuzzi23)",
  "org": "Embrace The Red",
  "sources": [
    {
      "url": "https://embracethered.com/blog/posts/2026/visual-studio-copilot-remote-code-execution/"
    }
  ],
  "magicsword_coverage": [],
  "borderline": false,
  "borderline_note": null,
  "ai_role": "ai_agent_or_mcp_as_target",
  "ai_role_secondary": null,
  "ai_role_detail": null,
  "technique_summary": "Copilot edit guard blocked writes to .mcp.json via string compare. Writing '.mcp.json.' bypasses check; Win32 strips trailing dot so write lands on real MCP config → RCE via MCP server command or ripgrepPath pointing at arbitrary binary. Chainable via indirect prompt injection from a file or MCP server. Shared Microsoft.VisualStudio.Copilot.Core.dll affects VS 2022/2026 and SSMS. Patched with GetFullPath.",
  "initial_access": "Indirect prompt injection (file content / MCP) into Copilot chat, or misaligned agent",
  "ai_tooling_and_models": [
    "GitHub Copilot in Visual Studio / SSMS",
    "MAI-Code-1-Flash (PoC model)"
  ],
  "other_tooling": [
    "MCP config",
    "ripgrepPath setting"
  ],
  "victims_and_sectors": "Visual Studio and SSMS users",
  "regions": [
    "unknown"
  ],
  "attribution_or_cluster": "Vulnerability research; CVE-2026-103572 CVSS 8.8 Important",
  "scale_and_metrics": "Patched 2026-10-13 Patch Tuesday",
  "prevention_angle": "Patch VS/SSMS; alert on Copilot writes to .mcp.json / settings.VisualStudio.json; watch devenv/Ssms spawning unexpected binaries",
  "related_magicsword_projects": [],
  "source_notes": null,
  "last_reviewed": "2026-10-20",
  "attack_flow": {
    "nodes": [
      {
        "id": "step-1",
        "title": "Untrusted instructions reach Copilot",
        "description": "A file or MCP server supplies indirect instructions.",
        "kind": "access",
        "source_urls": [
          "https://embracethered.com/blog/posts/2026/visual-studio-copilot-remote-code-execution/"
        ]
      },
      {
        "id": "step-2",
        "title": "Agent edits a protected configuration name",
        "description": "Writing .mcp.json. bypasses a string-based edit check.",
        "kind": "ai",
        "source_urls": [
          "https://embracethered.com/blog/posts/2026/visual-studio-copilot-remote-code-execution/"
        ]
      },
      {
        "id": "step-3",
        "title": "Windows normalizes the trailing dot",
        "description": "The write reaches the real MCP configuration or executable-path setting.",
        "kind": "execution",
        "source_urls": [
          "https://embracethered.com/blog/posts/2026/visual-studio-copilot-remote-code-execution/"
        ]
      },
      {
        "id": "step-4",
        "title": "Attacker-chosen command runs",
        "description": "The changed MCP startup command or binary path enables code execution.",
        "kind": "impact",
        "source_urls": [
          "https://embracethered.com/blog/posts/2026/visual-studio-copilot-remote-code-execution/"
        ]
      }
    ],
    "edges": [
      {
        "source": "step-1",
        "target": "step-2"
      },
      {
        "source": "step-2",
        "target": "step-3"
      },
      {
        "source": "step-3",
        "target": "step-4"
      }
    ]
  },
  "atlas_techniques": [
    {
      "id": "AML.T0051.001",
      "rationale": "Files or MCP responses can inject the editing instructions.",
      "source_urls": [
        "https://embracethered.com/blog/posts/2026/visual-studio-copilot-remote-code-execution/"
      ]
    },
    {
      "id": "AML.T0081",
      "rationale": "The resulting edit modifies MCP startup or executable configuration.",
      "source_urls": [
        "https://embracethered.com/blog/posts/2026/visual-studio-copilot-remote-code-execution/"
      ]
    }
  ],
  "category": "attacks-on-ai",
  "attribution": {
    "actor_name": "Vulnerability research"
  },
  "ai_involvement_confidence": "confirmed",
  "detections": [
    {
      "name": "Review attack-specific indicators",
      "format": "guidance",
      "notes": "Monitor for the techniques described in Visual Studio / SSMS Copilot trailing-dot RCE (CVE-2026-103572). Refer to sources for specific IOCs and TTPs."
    }
  ]
}