---
id: "CVE-2026-62848"
kind: "vulnerability"
aliases: ["CVE-2026-62848"]
title: "Metalama: Visual Studio pipe deserialization lets a local process run code"
severity: "high"
cvss: 7.3
epss: null
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: [".net", "c#", "metalama", "package", "postsharp", "visual-studio", "windows"]
not_affected_if: ["command-line-build", "msbuild-only", "non-windows", "not-using-visual-studio-extension"]
published_at: "2026-10-30T21:17:13+00:00"
first_seen_at: "2026-10-30T21:25:53+00:00"
updated_at: "2026-10-30T21:26:45+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-62848", "first_seen_at": "2026-10-30T21:25:53+00:00"}]
---

# Metalama: Visual Studio pipe deserialization lets a local process run code

Metalama's Windows Visual Studio integration deserializes messages on a local named pipe without restricting which types it creates. A process running as the same logged-in user that writes to the pipe can send crafted messages and run arbitrary code inside the Visual Studio process.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check whether the Metalama Visual Studio extension (or Metalama + PostSharp extension) is installed in Visual Studio on Windows.
- Check the Metalama framework version in project packages: affected versions run from `2023.0.101-rc` through `2025.1.18`, `2026.0.25` and `2026.1.19`, with `2026.1.0` through `2026.1.18` also affected.
- Check the Metalama + PostSharp extension version: affected from `2024.1` through `2026.1.4`.
- Check whether the retired Metalama or Caravela extensions are installed.

## Fix

- Metalama framework: move to `2025.1.18`, `2026.0.25` or `2026.1.19` depending on the release line.
- Metalama + PostSharp Visual Studio extension: move to `2026.1.5`.
- Retired Metalama and Caravela extensions: remove or migrate, per the sources.

## Timeline

- 2026-10-30T21:25:53+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-62848

## From the sources

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.

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
