Skip to main content

CVE-2026-62847 — Vulnerability in Metalama.Tool — CVE Details

MEDIUM

Metalama allows local code execution through DLL planting in shared temporary directories

Published October 14, 2026Updated October 14, 2026Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (0.17%). Schedule for your next planned update.

Does your project use an affected Metalama.Tool version?

Paste your packages.lock.json to check it for CVE-2026-62847 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my packages.lock.json

Summary

Summary

Metalama loaded and executed compile-time assemblies, auxiliary executable tools, and embedded helper assemblies from predictable temporary directories. On Linux and macOS the default cache location was the world-writable system temporary directory (Path.GetTempPath(), i.e. /tmp), and previously-generated artifacts were trusted based on the presence of a sentinel/.completed marker file rather than on any integrity verification.

A local, unprivileged user on a shared machine or CI/build agent can pre-create the deterministic cache directory structure and plant a malicious DLL together with the matching sentinel file. When a higher-privileged user (or build/service account) subsequently runs a build, Metalama finds the sentinel, skips regeneration, and loads and executes the attacker-supplied assembly inside the compiler / IDE / MSBuild process.

Affected load-and-execute paths:

  • the cache of compile-time assemblies that Metalama generates from your aspects;
  • auxiliary executable tools that Metalama extracts to a local directory and then launches;
  • embedded .NET helper assemblies that Metalama extracts to a local directory and loads into the build / IDE process.

Impact

Arbitrary code execution in the security context of the building user — i.e. a local privilege escalation across user accounts on shared POSIX systems (multi-user developer machines, CI/build agents). The attacker obtains code execution as the victim without holding the victim's privileges, and can read source/secrets, tamper with build output (supply-chain injection), or disrupt builds.

Affected configurations

  • Linux and macOS, default configuration — affected. The shipped default uses the world-writable system temp directory.
  • Windows, default configuration — not affected. The default per-user temporary directory is protected by OS ACLs, so cross-user planting is not possible.
  • The METALAMA_TEMP environment variable is a deployer-controlled override and is out of scope: pointing it at an insecure (e.g. world-writable or attacker-owned) location is a deployment misconfiguration, not a defect in the product.

Severity

CVSS v3.1: AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H = 8.2 (High) for the affected POSIX default configuration (Scope:Changed reflects the cross-user privilege escalation).

CVSS v4.0 cross-check: CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:L/VI:H/VA:L/SC:L/SI:H/SA:H = 6.0 (Medium), which more granularly attributes low impact to the cache itself and high impact to the subsequent build process. The honest range is therefore Medium-High depending on the scoring model and platform.

Fix

Caches and extraction directories were relocated from the world-writable system temp directory to per-user application-data locations ($XDG_CACHE_HOME / ~/.cache/Metalama on POSIX), relying on OS-enforced per-user ownership as the trust boundary. Fixed in 2026.1.19.

Weaknesses

  • CWE-377: Insecure Temporary File
  • CWE-427: Uncontrolled Search Path Element

Affected packages

  • Metalama.Framework < 2026.1.19,
  • Metalama.Tool < 2026.1.19

Internal tracking: metalama/Metalama#1650.

Advisory Timeline

  • First published October 14, 2026 (43 days ago).
  • Last revised October 14, 2026 — 0 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

NuGet
Update Metalama.Tool to 2026.1.19 or later
dotnet add package Metalama.Tool --version 2026.1.19
NuGet
Update Metalama.Framework to 2026.1.19 or later
dotnet add package Metalama.Framework --version 2026.1.19
NuGet
Update Metalama.Tool to 2026.0.25 or later
dotnet add package Metalama.Tool --version 2026.0.25
NuGet
Update Metalama.Tool to 2025.1.18 or later
dotnet add package Metalama.Tool --version 2025.1.18
NuGet
Update Metalama.Framework to 2026.0.25 or later
dotnet add package Metalama.Framework --version 2026.0.25
NuGet
Update Metalama.Framework to 2025.1.18 or later
dotnet add package Metalama.Framework --version 2025.1.18

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (6)

Affects 1 ecosystem: NuGet (2).

PackageFixed In
Metalama.Tool NuGet · Affected: 2026.1.0-preview, 2026.1.1-preview, 2026.1.10-preview, 2026.1.11-preview (+15 more)2026.1.19
Metalama.Framework NuGet · Affected: 2026.1.0-preview, 2026.1.1-preview, 2026.1.10-preview, 2026.1.11-preview (+15 more)2026.1.19
Metalama.Tool NuGet · Affected: 2026.0.1-preview, 2026.0.10-rc, 2026.0.11, 2026.0.12 (+20 more)2026.0.25
Metalama.Tool NuGet · Affected: 0.5.77-preview, 0.5.78-preview, 0.5.79-preview, 0.5.80-preview (+167 more)2025.1.18
Metalama.Framework NuGet · Affected: 2026.0.1-preview, 2026.0.10-rc, 2026.0.11, 2026.0.12 (+20 more)2026.0.25
Metalama.Framework NuGet · Affected: 0.5.0-preview, 0.5.1-preview, 0.5.10-preview, 0.5.11-preview (+243 more)2025.1.18

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 8.2 score means for each attack dimension.

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H

Frequently Asked Questions

What is CVE-2026-62847?
Metalama allows local code execution through DLL planting in shared temporary directories. This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 8.2/10).
How do I check if my project is affected by CVE-2026-62847?
CVE-2026-62847 affects Metalama.Tool and Metalama.Framework. It has a 0.2% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-62847 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
8.2

Significant impact if exploited, or exploitable with modest effort.

EPSS Score (30-day exploit probability)
0.17%
EPSS percentile: 3.6

This is a below-median EPSS score — only 3.6% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.

Also Known As

GHSA-m6wq-39m7-9xpp

Related CVEs

  • CVE-2026-62848
    HIGH

    Metalama: Unsafe deserialization over Metalama's Visual Studio inter-process named pipe enables local code execution

  • CVE-2026-114154
    MEDIUM

    Microsoft Security Advisory CVE-2026-114154 - ASP.NET Core Denial of Service Vulnerability

  • GHSA-6856-87hx-p5x7
    MEDIUM

    Microsoft Security Advisory CVE-2026-105544 - .NET Elevation of Privilege Vulnerability

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my packages.lock.json