Description
Metalama is a Roslyn-based open-source patterns and architecture toolkit for C#. From 2023.0.101-rc until 2025.1.18, 2026.0.25 and 2026.1.19, the Windows Visual Studio integration deserializes local named-pipe messages without restricting which CLR types can be instantiated. The pipe connects `devenv`, the out-of-process Roslyn code-analysis process and the `CodeLens` process, and has the predictable name `Metalama_{role}_{processId}_{hash(PackageVersion)}`. Releases from the first public 2023.0 line through 2026.0.x use Newtonsoft.Json with `TypeNameHandling.All`; the later `SerializationBinder` only remaps assembly names, and `BindToType` resolves arbitrary wire-supplied types without an allow-list. Releases 2026.1.0 through 2026.1.18 use typeless MessagePack with `TypelessObjectResolver` and likewise instantiate arbitrary types. A same-user local process able to write to the pipe can send crafted messages that lead to arbitrary code execution with confidentiality, integrity and availability impacts inside the affected Visual Studio process. Default Windows pipe ACLs limit writers to the same logged-in user, so this does not escalate privileges or cross a security boundary; command-line and MSBuild-only builds do not use the channel. The maintained Metalama + PostSharp extension is affected from 2024.1 through 2026.1.4, while earlier Metalama-free PostSharp versions are unaffected. The retired Metalama and Caravela extensions remain affected and require removal or migration. The framework issue is fixed in versions 2025.1.18, 2026.0.25 and 2026.1.19; the maintained Metalama + PostSharp Visual Studio extension is fixed in version 2026.1.5. The retired Metalama and Caravela extensions require removal or migration.
Published: 2026-10-30
Score: 7.3 High
EPSS: n/a
KEV: No
Impact: Local code execution
Action: Patch
AI Analysis

Impact

The Metalama Visual Studio integration deserializes messages received over a local named pipe without any type restrictions. The pipe, created with a predictable name, is shared between Visual Studio, the Roslyn code‑analysis process, and CodeLens. Because deserialization libraries such as Newtonsoft.Json and MessagePack are used with TypeNameHandling.All or a typeless resolver, any CLR type supplied by the attacker can be instantiated. This omission allows a local attacker who can write to that pipe to inject a payload that causes arbitrary code to execute inside the Visual Studio process. The vulnerability was present in Metalama releases 2023.0.101‑rc through 2025.1.18, 2026.0.25, and 2026.1.19, as well as the major release series 2026.1.0–2026.1.18 when typeless MessagePack was used. The problem exists in the Metalama + PostSharp extension from 2024.1 through 2026.1.4 and in the retired Metalama and Caravela extensions, which do not have a fix and need removal or migration.

Affected Systems

Affected is Metalama, a Roslyn‑based patterns and architecture toolkit for C#, specifically its Visual Studio integration and associated extensions. The flaw requires the extension to be installed and running inside Visual Studio on Windows; default pipe ACLs allow only the same logged‑in user to write, so privilege escalation does not occur. Fixed releases are Metalama 2025.1.18, 2026.0.25, and 2026.1.19 for the core tool, and Metalama + PostSharp Visual Studio extension 2026.1.5 and later. Earlier Metalama‑free PostSharp versions are not affected.

Risk and Exploitability

The CVSS score is 7.3, indicating a high‑severity flaw. No EPSS score is published, so the exploitation likelihood cannot be quantified from public data, but the local nature of the attack and the absence of privilege escalation mean the threat is limited to the local user context. The vulnerability is not listed in the CISA KEV catalog. An attacker with access to a user account that has Visual Studio with the vulnerable Metalama extension installed can craft a malicious named‑pipe message, causing code execution inside the Visual Studio process, potentially allowing the attacker to influence projects, access source files, or gain persistence within the system. Because the flaw relies on the existence of the named pipe and the open deserialization setting, the attack is relatively straightforward for an attacker who can run a process as the same user.

Generated by OpenCVE AI on October 30, 2026 at 21:55 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Metalama to 2025.1.18, 2026.0.25, or 2026.1.19, or a newer release that includes the fix. For those using the Metalama + PostSharp Visual Studio extension, upgrade to 2026.1.5 or later.
  • Uninstall any retired Metalama or Caravela extensions that remain on the system.
  • If an upgrade cannot be performed immediately, block local access to the "Metalama_*" named pipe by adjusting the ACL or removing the plugin entirely, and confirm that Visual Studio processes are not loaded with Metalama.

Generated by OpenCVE AI on October 30, 2026 at 21:55 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 30 Oct 2026 20:30:00 +0000

Type Values Removed Values Added
Description Metalama is a Roslyn-based open-source patterns and architecture toolkit for C#. From 2023.0.101-rc until 2025.1.18, 2026.0.25 and 2026.1.19, the Windows Visual Studio integration deserializes local named-pipe messages without restricting which CLR types can be instantiated. The pipe connects `devenv`, the out-of-process Roslyn code-analysis process and the `CodeLens` process, and has the predictable name `Metalama_{role}_{processId}_{hash(PackageVersion)}`. Releases from the first public 2023.0 line through 2026.0.x use Newtonsoft.Json with `TypeNameHandling.All`; the later `SerializationBinder` only remaps assembly names, and `BindToType` resolves arbitrary wire-supplied types without an allow-list. Releases 2026.1.0 through 2026.1.18 use typeless MessagePack with `TypelessObjectResolver` and likewise instantiate arbitrary types. A same-user local process able to write to the pipe can send crafted messages that lead to arbitrary code execution with confidentiality, integrity and availability impacts inside the affected Visual Studio process. Default Windows pipe ACLs limit writers to the same logged-in user, so this does not escalate privileges or cross a security boundary; command-line and MSBuild-only builds do not use the channel. The maintained Metalama + PostSharp extension is affected from 2024.1 through 2026.1.4, while earlier Metalama-free PostSharp versions are unaffected. The retired Metalama and Caravela extensions remain affected and require removal or migration. The framework issue is fixed in versions 2025.1.18, 2026.0.25 and 2026.1.19; the maintained Metalama + PostSharp Visual Studio extension is fixed in version 2026.1.5. The retired Metalama and Caravela extensions require removal or migration.
Title Metalama's Visual Studio inter-process named pipe allows unsafe deserialization that enables local code execution
Weaknesses CWE-502
CWE-913
References
Metrics cvssV3_1

{'score': 7.3, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-10-30T20:19:55.876Z

Reserved: 2026-07-14T21:10:50.031Z

Link: CVE-2026-62848

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-30T21:17:13.957

Modified: 2026-10-30T21:17:13.957

Link: CVE-2026-62848

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-30T22:00:15Z

Weaknesses
  • CWE-502

    Deserialization of Untrusted Data

  • CWE-913

    Improper Control of Dynamically-Managed Code Resources