mcp-cve-project

CVE-2026-45555 | Roslyn CodeLens MCP Server arbitrary DiagnosticAnalyzer load | High | 7.8

CVE Information

Field Value
CVE / NVD CVE-2026-45555
Date (index) 2026-05-29
Affected product (index) Roslyn CodeLens MCP Server arbitrary DiagnosticAnalyzer load
GHSA ID GHSA-552p-8f74-6x7q
OWASP MCP Top 10 (2025) MCP05 — Command Injection & Execution
Published / disclosed 2026-05-29
Ecosystem Application / upstream project
Component Roslyn CodeLens MCP Server arbitrary DiagnosticAnalyzer load
EPSS score 0.001430000 (FIRST EPSS, 2026-06-30)
CVSS score High — 7.8
CWE CWE-94
Affected versions roslyn-codelens-mcp >= 0.0.9, < 1.17.0
Fixed versions 1.17.0
Fix status Patched
Exploit status Public CVE record; do not mirror weaponized payloads
Notes Added during the 2026-06-24 Tier 1 missing-CVE review from NVD MCP keyword results. Re-check NVD before using this entry for compliance reporting.

CVE Breakdown


What is the vulnerability?

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.

Attack prerequisites / exposure

Exposure depends on how the affected MCP server, client, gateway, plugin, or adjacent AI tool is deployed. Prioritize systems reachable by untrusted users or networks, systems that accept attacker-controlled tool arguments, and systems with access to credentials, browsers, cloud APIs, Kubernetes clusters, databases, email, or desktop automation.

CVE is because of what bug?

Primary mapped weakness: MCP05 — Command Injection & Execution. Confirm the exact CWE and affected code path in the NVD record and upstream advisory before adding exploit-specific detail.

MCP-specific impact / why it matters

MCP components bridge model output to privileged tools. Vulnerabilities in authentication, scope enforcement, command execution, SSRF validation, secret handling, or tool registration can turn prompt/tool input into host compromise, credential disclosure, unauthorized cloud/database access, or persistent malicious tool execution.

Where was the bug? (source + snippet)

Add a minimal vulnerable code snippet here only after reviewing the linked upstream commit / advisory. Do not paste weaponized payloads.

Fix / Remediation

Upgrade to the vendor-fixed version where available. If no fixed version is listed, restrict the affected component to trusted users and trusted networks, disable risky tools, validate tool arguments, and run the service with least-privilege credentials until upstream remediation is confirmed.

Upstream fix (open source)

Workarounds / mitigations

Exploit / PoC

If a public PoC exists, prefer vendor advisories and defensive write-ups; do not host weaponized exploit code in this repository.

Detection / verification

Patch

Track NVD references for CVE-2026-45555 and apply the upstream patched release or commit recommended by the vendor/CNA.