Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessPublish malicious .NET repository
-
DeliveryVictim clones or opens solution
-
ExploitMCP client invokes get_diagnostics
-
ExecutionServer loads attacker DiagnosticAnalyzer DLL
-
PersistAnalyzer constructor executes arbitrary code
-
ImpactAttacker gains developer-level OS access
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that the victim open a solution controlled by the attacker (a .csproj plus an attacker-controlled DiagnosticAnalyzer DLL reachable from the project) with a vulnerable Roslyn CodeLens MCP Server (0.0.9 to <1.17.0), and that the get_diagnostics MCP tool be invoked against that solution - which happens by default because includeAnalyzers is true. Limiting factors per CVSS AV:L/UI:R: the attacker needs local file system reach (typically achieved by getting the victim to clone, download, or open a repository) and the get_diagnostics tool must actually be called, so a developer who never opens untrusted solutions or who has disabled analyzer loading is not exposed. No authentication is required of the attacker (PR:N) and attack complexity is low (AC:L). |
| Impact | The CVSS 7.8 vector (AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H) reflects that exploitation requires the victim to open a malicious solution locally - not a network-reachable RCE - but yields full confidentiality, integrity, and availability impact in the server process context. There is no EPSS score, no CISA KEV listing, and no public POC referenced, so this is best characterized as no public exploit identified at time of analysis rather than an actively exploited issue. Real-world risk is meaningful despite the local vector: MCP servers are increasingly attached to AI coding assistants that routinely open arbitrary repositories from the internet (GitHub clones, code review, dependency audits), which collapses the social-engineering barrier implied by UI:R into something close to drive-by code execution for developers using this tool. SSVC data is not provided; based on the description the technical impact is total within the server process and exploitation is automatable via a poisoned repository. |
| Exploit ScenarioDerived | An attacker publishes a repository (or submits a pull request) containing a .csproj that references a malicious DiagnosticAnalyzer DLL bundled in the repo. A developer using an AI assistant backed by Roslyn CodeLens MCP opens or clones the repo and the assistant calls get_diagnostics on the solution; the analyzer DLL is loaded and its constructor runs arbitrary code in the MCP server process, giving the attacker code execution as the developer. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 29, 2026
Arbitrary code execution in Roslyn CodeLens MCP Server versions 0.0.9 through 1.17.0 allows attackers to run code in the MCP server process by tricking a victim into opening a malicious .NET solution. The get_diagnostics tool automatically loads and executes any DiagnosticAnalyzer DLL referenced by a .csproj without allowlist, signature validation, or user prompt, and includeAnalyzers defaults to true. No public exploit identified at time of analysis, but the attack pattern (malicious project file + attacker-controlled DLL) is well understood and trivial to weaponize.
RemediationAI
Vendor-released patch: upgrade to Roslyn CodeLens MCP Server 1.17.0 or later, per the GitHub Security Advisory at https://github.com/MarcelRoozekrans/roslyn-codelens-mcp/security/advisories/GHSA-552p-8f74-6x7q. If an immediate upgrade is not possible, invoke get_diagnostics with includeAnalyzers explicitly set to false to suppress analyzer loading (trade-off: you lose custom analyzer diagnostics from the response). As a structural workaround, only point the MCP server at solutions from trusted sources and avoid opening freshly cloned third-party repositories until upgraded; running the MCP server under a least-privileged OS account or inside a sandbox/container limits the blast radius of any analyzer DLL execution but does not prevent it.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Roslyn is Microsoft's open-source .NET compiler platform; it allows third-party DiagnosticAnalyzer assemblies to be referenced from a project (.csproj) and loaded into the compilation pipeline to surface custom warnings and code intelligence. The Model Context Protocol (MCP) is an emerging standard for exposing tools and data to LLM-driven agents, and this server bridges Roslyn diagnostics into that ecosystem. The vulnerability is rooted in CWE-94 (Improper Control of Generation of Code) because the get_diagnostics tool treats analyzer DLL references in untrusted .csproj files as trusted code to execute in-process. CPE cpe:2.3:a:marcelroozekrans:roslyn-codelens-mcp identifies the single affected implementation.
Know when Roslyn Codelens Mcp gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Primary rating from Vendor (GitHub_M) · only source for this CVE.
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
Roslyn CodeLens MCP Server is a Roslyn-based MCP server providing semantic code intelligence for .NET codebases. From 0.0.9 to 1.17.0, the get_diagnostics MCP tool loads and executes all DiagnosticAnalyzer assemblies referenced by the target solution without any allowlist, signature check, or user confirmation; includeAnalyzers defaults to true, so no explicit opt-in is required. An attacker who can place a malicious .csproj referencing an attacker-controlled DLL in a location the victim opens with the MCP server will achieve arbitrary code execution in the server process with the server's OS privileges. This vulnerability is fixed in 1.17.0.
Executive ViewAI
Roslyn CodeLens MCP Server (versions 0.0.9-1.17.0) is vulnerable to arbitrary code execution when developers open specially crafted .NET solution files, with no public exploit identified at time of analysis. However, the vulnerability exposes development environments to potential compromise and creates supply chain risk through source code tampering or credential theft.
No vendor-released patch identified at time of analysis. Interim mitigations: disable MCP server if not critical to workflows; implement controls restricting .NET solution file execution from untrusted sources; enforce code review and change tracking for developers; implement application whitelisting on development systems; maintain network segmentation between development and production environments; monitor development systems for suspicious process execution and unauthorized credential usage.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
EUVD-2026-33302
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB