CVE-2026-103572: Microsoft Visual Studio Copilot & SSMS Trailing Dot Path Traversal to RCE
Critical remote code execution and agent sandbox breakout flaw fixed in Microsoft Patch Tuesday (October 13, 2026). Win32 trailing dot canonicalization discrepancies allow untrusted repository markdown files to overwrite protected agent configuration files (.vsconfig), escaping Copilot boundaries.
HERMES THREAT SCORE & AGENTIC CONTAINER ESCAPE EVALUATION
Target:Microsoft Visual Studio Copilot & SSMS Shared Core Subsystem While CVSS v3.1 rates this vulnerability at 8.8 (User Interaction Required), the Hermes Threat Score elevates it to 92 (CRITICAL) with a Hermes Agentic Security Score (HASS) of 96 (EXTREME). Because Copilot agents autonomously read repository context, pull requests, and commit logs without requiring explicit user clicks on malicious files, indirect prompt injection combined with filesystem canonicalization flaws transforms passive code browsing into autonomous, zero-click developer workstation compromise.
CVE-2026-103572: Microsoft Visual Studio Copilot & SSMS Trailing Dot Path Traversal to RCEVULNERABILITY
Software platform affected by security vulnerabilities and agentic attack patterns.
๐ Why is this related? (Evidence & Provenance)
“Confirmed security vulnerability in Microsoft Windows & Windows Server documented in Hermes dossier.”
- [vulnerability_report]
- [government_confirmation]CISA verified active exploitation in the wild and mandated federal remediation deadline in KEV entry. — Source: Cybersecurity & Infrastructure Security Agency (CISA): CISA Adds CVE-2026-59822 to Known Exploited Vulnerabilities Catalog (Reliability: VERY_HIGH)
Executive Summary
Section titled โExecutive SummaryโDisclosed during Microsoftโs October 13, 2026 Patch Tuesday and discovered by AI security researcher Johann Rehberger (Embrace The Red), CVE-2026-103572 is a critical Remote Code Execution (RCE) and Agent Sandbox Breakout vulnerability in Microsoft Visual Studio 2022 and SQL Server Management Studio (SSMS).
The flaw stems from an impedance mismatch between userland path integrity checks and kernel/Win32 path normalization. When Copilot operates inside a developer repository, strict path filters prevent the agent from writing to protected configuration files (such as .vsconfig or extension manifests). However, when a malicious repository supplies instructions to write to a path ending in a dot (e.g., .vsconfig.), the application-level validator considers the target distinct from the protected filename. When passed to underlying Windows filesystem APIs (CreateFileW), the Windows Object Manager and NTFS automatically strip trailing dots, silently overwriting the protected configuration file.
Combined with indirect prompt injection embedded in documentation or source code, an attacker can coerce the local Copilot instance into generating malicious configuration manifests that execute arbitrary commands when Visual Studio loads the workspace.
Technical Root Cause: The Win32 Trailing Dot Normalization Primitive
Section titled โTechnical Root Cause: The Win32 Trailing Dot Normalization PrimitiveโThe Canonicalization Mismatch (CWE-22 / CWE-73)
Section titled โThe Canonicalization Mismatch (CWE-22 / CWE-73)โUnder the Win32 subsystem, filenames containing trailing spaces or trailing periods (.) are canonically stripped to maintain compatibility with legacy CP/M and MS-DOS 8.3 naming conventions. While modern NT native APIs (\?\ prefix) can preserve trailing periods, standard Win32 file creation routines resolve:
CreateFileW(L"C:\repo\.vsconfig.", GENERIC_WRITE, ...)// Resolves on NTFS to:"C:\repo\.vsconfig"In Visual Studio Copilot, the agent sandbox maintains a deny-list of sensitive workspace configuration files:
// Vulnerable Path Validation in Copilot Agent Core (Shared with SSMS)public bool IsRestrictedConfigFile(string targetPath) { string fileName = Path.GetFileName(targetPath); // Exact string comparison without Win32 canonicalization! return string.Equals(fileName, ".vsconfig", StringComparison.OrdinalIgnoreCase) || string.Equals(fileName, "Directory.Build.props", StringComparison.OrdinalIgnoreCase);}Because string.Equals(".vsconfig.", ".vsconfig") evaluates to false, the check passes. The agent writes the attackerโs payload to .vsconfig., and Windows commits it to disk as .vsconfig.
flowchart TD subgraph Attacker["Adversary / Malicious Git Repository"] Readme["README.md / Issues / PR<br/>Indirect Prompt Injection"] end
subgraph Host["Developer Workstation (Visual Studio Copilot / SSMS)"] Copilot["Copilot Agent Autonomous Context Scan"] Readme --> Copilot Copilot --> Action["Agent executes Tool Call:<br/>writeFile('.vsconfig.', payload)"] Action --> Validator{"IsRestrictedConfigFile?<br/>target = '.vsconfig.'"} Validator -- "Does NOT equal '.vsconfig' (PASS)" --> Win32["Win32 CreateFileW('.vsconfig.')"] Win32 --> NTFS["NTFS Strips Trailing Dot<br/>Writes to '.vsconfig'"] NTFS --> Hijack["VS Engine loads malicious payload<br/>Spawns child shell / RCE"] end
style Validator fill:#ff4d4d,stroke:#990000,color:#ffffff style Hijack fill:#ff1a1a,stroke:#800000,color:#ffffffDetection Engineering & SOC Playbook
Section titled โDetection Engineering & SOC PlaybookโSigma Rule: Suspicious Workspace Configuration File Write with Trailing Dot
Section titled โSigma Rule: Suspicious Workspace Configuration File Write with Trailing Dotโtitle: Visual Studio Copilot Trailing Dot Path Traversal Writeid: 5a9b71e2-b183-4a12-9c3f-cve2026103572status: experimentaldescription: Detects file creation events where IDE or agent worker processes create workspace configuration files using trailing dots or spaces.references: - https://embracethered.com/blog/posts/2026/visual-studio-copilot-remote-code-execution/author: Hermes Codex Detection Engineeringdate: 2026-10-18logsource: category: file_event product: windowsdetection: selection_process: Image|endswith: - '\devenv.exe' - '\Ssms.exe' - '\Code.exe' - '\CopilotWorker.exe' selection_file: TargetFilename|endswith: - '.vsconfig.' - 'Directory.Build.props.' - 'Directory.Build.targets.' condition: selection_process and selection_filefalsepositives: - None observed in legitimate engineering pipelineslevel: criticaltags: - attack.initial_access - attack.t1190 - attack.execution - attack.t1059Remediation & Mitigation
Section titled โRemediation & Mitigationโ- Apply Microsoft October 2026 Updates Immediately
Upgrade Visual Studio 2022 to versions
17.0.26,17.2.22,17.4.18,17.6.15,17.8.9,17.10.4, or17.11.3. Upgrade SSMS to version20.2or later. - Normalize Filenames Prior to Deny-List Evaluation
The patch normalizes file paths using
Path.GetFullPath()and strips trailing dots/spaces before applying security boundary policy checks. - Enforce Workspace Trust & Autonomous Agent Sandboxing Ensure Visual Studio โTrust Settingsโ are configured to prompt before enabling agent tool execution on cloned untrusted repositories.