Skip to content

CVE-2026-103572: Microsoft Visual Studio Copilot & SSMS Trailing Dot Path Traversal to RCE

Density:
C-Level Executive Briefing CVE-2026-103572 CRITICAL SCORE 92/100

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.

HYBRID

HERMES THREAT SCORE & AGENTIC CONTAINER ESCAPE EVALUATION

Target: Microsoft Visual Studio Copilot & SSMS Shared Core Subsystem
Confidence: 98%
92 / 100
CRITICAL

Measures real-world operational relevance, exploit weaponization, and active threat posture.

Dimension Breakdown
Exploitability 19 / 20
Threat Activity 17 / 20
Weaponization 18 / 20
Exposure 18 / 20
Prevalence 19 / 20
Impact 19 / 20
Exploit Maturity 18 / 20
Attack Chain Potential 20 / 20
โš–๏ธ Divergence & Operational Rationale

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.

๐Ÿ•ธ๏ธ Connected Knowledge Graph & Provenance

CVE-2026-103572: Microsoft Visual Studio Copilot & SSMS Trailing Dot Path Traversal to RCEVULNERABILITY

Connected Nodes: 1
Active Relationships (Outgoing)
→ affectsPRODUCTMicrosoft Windows & Windows Server
98% VERY_HIGH

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.”

Supporting Verified Evidence:

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โ€

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:#ffffff

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 Write
id: 5a9b71e2-b183-4a12-9c3f-cve2026103572
status: experimental
description: 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 Engineering
date: 2026-10-18
logsource:
category: file_event
product: windows
detection:
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_file
falsepositives:
- None observed in legitimate engineering pipelines
level: critical
tags:
- attack.initial_access
- attack.t1190
- attack.execution
- attack.t1059

  1. 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, or 17.11.3. Upgrade SSMS to version 20.2 or later.
  2. 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.
  3. Enforce Workspace Trust & Autonomous Agent Sandboxing Ensure Visual Studio โ€œTrust Settingsโ€ are configured to prompt before enabling agent tool execution on cloned untrusted repositories.