CVE-2026-62847: Metalama allows local code execution through DLL planting in shared temporary directories
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.
References
- github.com/advisories/GHSA-m6wq-39m7-9xpp
- github.com/metalama/Metalama/commit/09911349a916e82194b1cfaa6d0a38acad928fc9
- github.com/metalama/Metalama/commit/92c4feecfce86d18fcb007ab6d3a1b4383326a2e
- github.com/metalama/Metalama/commit/ab9407263203c66d7c5680a34c28dba31f9951c9
- github.com/metalama/Metalama/pull/1719
- github.com/metalama/Metalama/security/advisories/GHSA-m6wq-39m7-9xpp
- nvd.nist.gov/vuln/detail/CVE-2026-62847
Code Behaviors & Features
Detect and mitigate CVE-2026-62847 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →