CVE-2026-62848: 
C# vulnerability analysis and mitigation

Overview

CVE-2026-62848 is an unsafe deserialization vulnerability in Metalama's Windows Visual Studio integration that allows a same-user local process with write access to a predictable named pipe to execute arbitrary code within the affected Visual Studio process. It affects Metalama.Framework NuGet versions from 2023.0.101-rc through 2026.1.18 (with specific ranges: < 2025.1.18, 2025.2.0-preview through 2025.2.5-rc, < 2026.0.25, and < 2026.1.19), as well as the PostSharpTechnologies.PostSharp Visual Studio extension from versions 2024.1 through 2026.1.4. The vulnerability was disclosed on October 30, 2026, with the GitHub Security Advisory (GHSA-h26j-4vp7-x9w2) published on November 3, 2026. It carries a CVSS v3.1 base score of 7.3 (High), though the practical severity is assessed as Medium due to the same-user access constraint (GitHub Advisory).

Technical details

The vulnerability is classified as CWE-502 (Deserialization of Untrusted Data) and CWE-913 (Improper Control of Dynamically-Managed Code Resources). Two successive serialization mechanisms are affected: the JSON era (Metalama 2023.0 through 2026.0.x) used Newtonsoft.Json with TypeNameHandling.All, where the accompanying SerializationBinder only remapped assembly names but resolved arbitrary wire-supplied types via assembly.GetType(typeName) without an allow-list; the MessagePack era (Metalama 2026.1.0 through 2026.1.18) used typeless MessagePack with TypelessObjectResolver, which likewise embeds CLR type names on the wire and instantiates arbitrary types on receipt. The named pipe connecting devenv, the out-of-process Roslyn code-analysis process, and the CodeLens process has a predictable name (Metalama_{role}_{processId}_{hash(PackageVersion)}), derived from the public package version and a locally-enumerable process ID, and was created with no explicit PipeSecurity. Both mechanisms are analogous to BinaryFormatter and are susceptible to known gadget-chain attacks (e.g., ysoserial.net for the JSON era) (GitHub Advisory, Fix PR #1651).

Impact

Successful exploitation results in arbitrary code execution inside the targeted Visual Studio process (the UI process, the Roslyn code-analysis process, or the CodeLens process), with full loss of confidentiality, integrity, and availability within that process. Because the Windows named pipe default ACL restricts writers to the same logged-in user, exploitation does not cross a security boundary or escalate privileges — the attacker gains no more access than they already possess. The practical risk is code execution within the developer's Visual Studio session, enabling persistence or lateral movement within an already same-user-compromised context; command-line and MSBuild-only builds are not affected as they do not use the named pipe channel (GitHub Advisory).

Exploitability

There is no public proof-of-concept exploit and no evidence of in-the-wild exploitation as of the disclosure date (GitHub Advisory). The EPSS score is approximately 0.00186 (low probability of exploitation in the near term). The vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog. The NVD SSVC assessment marks it as non-automatable with no known exploitation. However, the JSON-era variant is theoretically exploitable using publicly available gadget chains (e.g., ysoserial.net) against the Newtonsoft.Json TypeNameHandling.All configuration, making weaponization feasible for a motivated same-user attacker (GitHub Advisory).

Exploitation steps

  1. Reconnaissance: Identify a target machine running Visual Studio with a vulnerable version of the Metalama extension (Metalama.Framework < 2025.1.18, < 2026.0.25, or < 2026.1.19). Confirm the target user is logged in and Visual Studio is running.
  2. Enumerate the pipe name: Determine the predictable named pipe name using the formula Metalama_{role}_{processId}_{hash(PackageVersion)}. The package version is public, and the target process ID can be enumerated locally (e.g., via Get-Process devenv in PowerShell).
  3. Connect to the pipe: As a same-user process, open a read+write connection to the named pipe (e.g., using NamedPipeClientStream with PipeDirection.InOut). Default Windows ACLs permit same-user write access.
  4. Craft a malicious payload (JSON era): For Metalama 2023.0–2026.0.x, craft a Newtonsoft.Json payload using TypeNameHandling.All with a known gadget chain (e.g., from ysoserial.net) that embeds a malicious $type field referencing a dangerous CLR type (e.g., from System.Private.CoreLib).
  5. Craft a malicious payload (MessagePack era): For Metalama 2026.1.0–2026.1.18, craft a typeless MessagePack message using TypelessObjectResolver format that embeds an arbitrary CLR type name in the wire format.
  6. Send the payload: Write the crafted message to the named pipe. The deserializer on the receiving Visual Studio process instantiates the attacker-specified type before any application logic runs.
  7. Achieve code execution: The gadget chain triggers arbitrary code execution within the Visual Studio process (devenv, Roslyn analyzer, or CodeLens), enabling persistence, credential theft, or further lateral movement within the developer's session (GitHub Advisory, Fix PR #1651).

Indicators of compromise

  • Process: Unexpected child processes spawned by devenv.exe, the Roslyn code-analysis process, or the CodeLens process (e.g., cmd.exe, powershell.exe, curl.exe) that are not typical for normal IDE operation.
  • Network: Unusual outbound network connections originating from devenv.exe or associated Metalama processes to unknown external IP addresses.
  • Logs: Windows Event Log entries showing unexpected process creation events with devenv.exe or Roslyn analyzer processes as the parent; application crash logs or unhandled exception traces referencing InvalidOperationException with messages containing #1651 or RPC type allow-list (post-patch detection of exploitation attempts).
  • File System: Unexpected files written to the user's profile, temp directories, or Visual Studio extension directories by devenv.exe or Roslyn processes; new scheduled tasks or startup entries created under the current user account.
  • Named Pipe Activity: Unusual processes (other than known Metalama/Visual Studio components) connecting to named pipes matching the pattern Metalama_* as observed via tools like Sysinternals Process Monitor or PipeList (GitHub Advisory).

Mitigation and workarounds

Upgrade to the following patched versions of Metalama.Framework (NuGet): 2025.1.18 or later (for the 2025.1.x line), 2026.0.25 or later (for the 2026.0.x line), or 2026.1.19 or later (for the 2026.1.x line). For the Visual Studio extension, update PostSharpTechnologies.PostSharp to version 2026.1.5 or later, which bundles Metalama 2026.1.19. The retired PostSharpTechnologies.Metalama and PostSharpTechnologies.caravela extensions will not receive fixes and should be uninstalled and migrated to PostSharpTechnologies.PostSharp >= 2026.1.5. The fix enforces a closed [RpcContract] type allow-list on the deserialization path (both JSON and MessagePack eras) and restricts pipe access to the current user on Windows. As a workaround where patching is not immediately possible, avoid using Visual Studio in shared or multi-user environments where untrusted same-user processes may be present (GitHub Advisory, Release 2025.1.18).

Community reactions

The vulnerability was reported and fixed by the Metalama maintainer Gaël Fraiteur (gfraiteur), who authored the GitHub Security Advisory and coordinated the fix via PR #1651. The advisory explicitly notes that the practical severity is Medium despite the CVSS High score, because exploitation requires same-user access and does not cross a security boundary. No significant broader media coverage or notable external researcher commentary has been identified for this vulnerability (GitHub Advisory, Fix PR #1651).

Additional resources


Source: This report was generated using AI

Related C# vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-59975HIGH7.5
  • C# logoC#
  • SharpIppNext
NoYesNov 18, 2026
CVE-2026-102529HIGH7.5
  • C# logoC#
  • HtmlSanitizer
NoYesNov 17, 2026
CVE-2026-128082HIGH7.5
  • C# logoC#
  • AutoMapper
NoYesNov 13, 2026
CVE-2026-128081HIGH7.5
  • C# logoC#
  • AutoMapper
NoYesNov 13, 2026
CVE-2026-120796MEDIUM5.3
  • C# logoC#
  • Microsoft.NETCore.App.Runtime.linux-arm64
NoYesNov 10, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management