CVE-2026-62848
Metalama's Visual Studio inter-process named pipe allows unsafe deserialization that enables local code execution
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.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- Required
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
7.3
Metalama's Visual Studio inter-process named pipe allows unsafe deserialization that enables local code execution
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.
- Record
CVE-2026-62848- CVSS 3.1
- 7.3 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H - Weakness
- CWE-502, CWE-913
- Updated
- 2026-11-06
EUVDEUVD-2026-114449
7.3
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.
- Record
EUVD-2026-114449- CVSS 3.1
- 7.3 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-06
GitHub AdvisoriesGHSA-h26j-4vp7-x9w2
7.3
Metalama: Unsafe deserialization over Metalama's Visual Studio inter-process named pipe enables local code execution
Summary
Metalama uses a local named-pipe channel to communicate between its Visual Studio processes — the Visual Studio UI process (devenv), the out-of-process Roslyn code-analysis process, and the CodeLens process. This channel deserialized messages from the pipe without restricting which CLR types could be instantiated. A local process able to write to the pipe can send a crafted message that instantiates arbitrary .NET types — a deserialization primitive in the same class as BinaryFormatter (CWE-502), and a well-known gadget-chain code-execution vector.
The flaw is present, via two successive serializers, in every Metalama release from the first public version (2023.0) up to and including 2026.1.18, and is fixed in 2026.1.19.
The pipe name is predictable: Metalama_{role}_{processId}_{hash(PackageVersion)}, derived from the public package version and a locally-enumerable process id. This channel is used by the Visual Studio integration only (Windows named pipes); it is not used for command-line / MSBuild builds.
Mechanisms
JSON era — Metalama 2023.0 through 2026.0.x (Newtonsoft.Json). The pipe formatter enabled polymorphic type embedding:
formatter.JsonSerializer.TypeNameHandling = TypeNameHandling.All; // ServiceEndpoint.cs (early), later BaseEndpoint.cs
The accompanying SerializationBinder (added later for multi-version assembly support) only remapped assembly names; its BindToType resolved any type name from the wire (assembly.GetType(typeName)) with no type allow-list. TypeNameHandling.All is the canonical unsafe-deserialization setting and has publicly available gadget chains (e.g. ysoserial.net), so this era is at least as exploitable as the later one. (Introduced by commit 0554368737, first shipped in release/2023.0.101-rc.)
MessagePack era — Metalama 2026.1.0 through 2026.1.18. The 2026.1 line migrated the pipe serialization to MessagePack (PR #1299, commit 117b607805, 2026-01-29), using typeless MessagePack (TypelessObjectResolver), which likewise embeds CLR type names on the wire and instantiates arbitrary types on receipt — again with no allow-list.
Both mechanisms share the same channel, the same predictable pipe name, the same impact, and the same access preconditions.
Impact
Potential arbitrary code execution inside the Visual Studio process that hosts the affected component (the UI process, the code-analysis process, or the CodeLens process), with full loss of confidentiality, integrity and availability within that process.
Mitigating factor (limits practical severity to Medium): the pipe is created with the default Windows ACL (no explicit PipeSecurity), which permits only same-user processes to write. All of the Visual Studio processes involved run as the same logged-in developer, so exploitation requires the attacker to already be executing code as that same user. There is no privilege escalation and no crossing of a security boundary; the practical value is code execution inside the developer's Visual Studio session (lateral movement / persistence within an already same-user-compromised context). This is why the practical severity is Medium despite the CVSS base score.
Severity
CVSS v3.1: AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H = 7.3 (High) base score; practical severity Medium, because the attacker gains no privilege beyond what they already had (same user, same Visual Studio session).
CVSS v4.0 cross-check: CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N = 7.0 (High). The Subsequent-System metrics are None because no security boundary is crossed.
Affected products and remediation
All affected products are part of the Visual Studio integration.
| Product | Affected | Remediation |
|---|---|---|
| NuGet Metalama.Framework | all < 2026.1.19 | upgrade to 2026.1.19 (no backports) |
| VS extension PostSharpTechnologies.PostSharp ("Metalama +…
- Record
GHSA-h26j-4vp7-x9w2- CVSS 3.1
- 7.3 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H - Weakness
- CWE-502, CWE-913
- Updated
- 2026-11-03
NVD
7.3
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.
- Record
CVE-2026-62848- CVSS 3.1
- 7.3 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H - Weakness
- CWE-502, CWE-913
- Updated
- 2026-11-06
OSV
7.3
Metalama's Visual Studio inter-process named pipe allows unsafe deserialization that enables local code execution
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.
- Record
CVE-2026-62848- CVSS 3.1
- 7.3 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H - Weakness
- CWE-502, CWE-913
- Updated
- 2026-11-07
OSVGHSA-h26j-4vp7-x9w2
7.3
Metalama: Unsafe deserialization over Metalama's Visual Studio inter-process named pipe enables local code execution
Summary
Metalama uses a local named-pipe channel to communicate between its Visual Studio processes — the Visual Studio UI process (devenv), the out-of-process Roslyn code-analysis process, and the CodeLens process. This channel deserialized messages from the pipe without restricting which CLR types could be instantiated. A local process able to write to the pipe can send a crafted message that instantiates arbitrary .NET types — a deserialization primitive in the same class as BinaryFormatter (CWE-502), and a well-known gadget-chain code-execution vector.
The flaw is present, via two successive serializers, in every Metalama release from the first public version (2023.0) up to and including 2026.1.18, and is fixed in 2026.1.19.
The pipe name is predictable: Metalama_{role}_{processId}_{hash(PackageVersion)}, derived from the public package version and a locally-enumerable process id. This channel is used by the Visual Studio integration only (Windows named pipes); it is not used for command-line / MSBuild builds.
Mechanisms
JSON era — Metalama 2023.0 through 2026.0.x (Newtonsoft.Json). The pipe formatter enabled polymorphic type embedding:
formatter.JsonSerializer.TypeNameHandling = TypeNameHandling.All; // ServiceEndpoint.cs (early), later BaseEndpoint.cs
The accompanying SerializationBinder (added later for multi-version assembly support) only remapped assembly names; its BindToType resolved any type name from the wire (assembly.GetType(typeName)) with no type allow-list. TypeNameHandling.All is the canonical unsafe-deserialization setting and has publicly available gadget chains (e.g. ysoserial.net), so this era is at least as exploitable as the later one. (Introduced by commit 0554368737, first shipped in release/2023.0.101-rc.)
MessagePack era — Metalama 2026.1.0 through 2026.1.18. The 2026.1 line migrated the pipe serialization to MessagePack (PR #1299, commit 117b607805, 2026-01-29), using typeless MessagePack (TypelessObjectResolver), which likewise embeds CLR type names on the wire and instantiates arbitrary types on receipt — again with no allow-list.
Both mechanisms share the same channel, the same predictable pipe name, the same impact, and the same access preconditions.
Impact
Potential arbitrary code execution inside the Visual Studio process that hosts the affected component (the UI process, the code-analysis process, or the CodeLens process), with full loss of confidentiality, integrity and availability within that process.
Mitigating factor (limits practical severity to Medium): the pipe is created with the default Windows ACL (no explicit PipeSecurity), which permits only same-user processes to write. All of the Visual Studio processes involved run as the same logged-in developer, so exploitation requires the attacker to already be executing code as that same user. There is no privilege escalation and no crossing of a security boundary; the practical value is code execution inside the developer's Visual Studio session (lateral movement / persistence within an already same-user-compromised context). This is why the practical severity is Medium despite the CVSS base score.
Severity
CVSS v3.1: AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H = 7.3 (High) base score; practical severity Medium, because the attacker gains no privilege beyond what they already had (same user, same Visual Studio session).
CVSS v4.0 cross-check: CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N = 7.0 (High). The Subsequent-System metrics are None because no security boundary is crossed.
Affected products and remediation
All affected products are part of the Visual Studio integration.
| Product | Affected | Remediation |
|---|---|---|
| NuGet Metalama.Framework | all < 2026.1.19 | upgrade to 2026.1.19 (no backports) |
| VS extension PostSharpTechnologies.PostSharp ("Metalama +…
- Record
GHSA-h26j-4vp7-x9w2- CVSS 3.1
- 7.3 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H - Weakness
- CWE-502, CWE-913
- Updated
- 2026-11-03
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
Metalama.FrameworkNuGet |
2026.1.0-preview up to 2026.1.19 | 2026.1.19 |
Metalama.FrameworkNuGet |
before 2025.1.18 | 2025.1.18 |
Metalama.FrameworkNuGet |
2026.0.1-preview up to 2026.0.25 | 2026.0.25 |
Metalama.FrameworkNuGet |
2026.1.0-preview up to 2026.1.19, plus listed versions 2026.1.1-preview2026.1.10-preview2026.1.11-preview2026.1.12-preview2026.1.13-preview Show 13 moreShow less2026.1.14-rc2026.1.15-rc2026.1.162026.1.172026.1.182026.1.2-preview2026.1.3-preview2026.1.4-preview2026.1.5-preview2026.1.6-preview2026.1.7-preview2026.1.8-preview2026.1.9-preview |
2026.1.19 |
Metalama.FrameworkNuGet |
before 2025.1.18, plus listed versions 0.5.0-preview0.5.1-preview0.5.10-preview0.5.11-preview0.5.12-preview Show 45 moreShow less0.5.13-preview0.5.15-preview0.5.16-preview0.5.17-preview0.5.18-preview0.5.19-preview0.5.2-preview0.5.20-preview0.5.21-preview0.5.22-preview0.5.23-preview0.5.24-preview0.5.25-preview0.5.26-preview0.5.27-preview0.5.28-preview0.5.29-preview0.5.3-preview0.5.30-preview0.5.31-preview0.5.32-preview0.5.33-preview0.5.34-preview0.5.35-preview0.5.36-preview0.5.37-preview0.5.38-preview0.5.39-preview0.5.4-preview0.5.40-preview0.5.41-preview0.5.42-preview0.5.43-preview0.5.44-preview0.5.45-preview0.5.46-preview0.5.47-preview0.5.48-preview0.5.49-preview0.5.5-preview0.5.50-preview0.5.51-preview0.5.52-preview0.5.53-preview0.5.54-preview |
2025.1.18 |
Metalama.FrameworkNuGet |
2026.0.1-preview up to 2026.0.25, plus listed versions 2026.0.10-rc2026.0.112026.0.122026.0.132026.0.14 Show 18 moreShow less2026.0.152026.0.162026.0.172026.0.182026.0.192026.0.2-preview2026.0.202026.0.212026.0.222026.0.232026.0.242026.0.3-preview2026.0.4-preview2026.0.5-preview2026.0.6-rc2026.0.7-rc2026.0.8-rc2026.0.9-rc |
2026.0.25 |
History
| Recorded | Changed | Sources |
|---|---|---|
| published | EUVD | |
| published | EUVD | |
| affected, facts, references | GitHub Advisories, NVD, OSV | |
| first indexed | CVE List, EUVD, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2026-62848 is a high vulnerability (CVSS 7.3) in Metalama, published October 30, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.19%, the 8th percentile. Fixed in Metalama.Framework 2026.1.19.
References
github.com/metalama/Metalama/security/advisories/GHSA-h26j-4vp7-x9w2
github.com/metalama/Metalama/pull/1651
github.com/metalama/Metalama/commit/5b4ced29f2b25631cc2e44d05b0fd5fe838b6cbe
github.com/metalama/Metalama/commit/d97f52e1b53ffe4176b2b05c56ffdf1ccd2f53a9
github.com/metalama/Metalama/releases/tag/release/2025.1.18
github.com/metalama/Metalama/releases/tag/release/2026.0.25
Left out here: 197 versions and the rest of 2 source descriptions. The JSON record has them.