# CVE-2026-45555: Roslyn CodeLens MCP Server: Untrusted Roslyn Analyzer Execution via get_diagnostics Leads to Arbitrary Code Execution

- Severity: High 7.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 6% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-29T12:54:59.678Z
- Modified: 2026-07-21T12:10:00.090Z
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- MarcelRoozekrans roslyn-codelens-mcp: >= 0.0.9, < 1.17.0

## References

- <https://github.com/MarcelRoozekrans/roslyn-codelens-mcp/security/advisories/GHSA-552p-8f74-6x7q> (exploit)

## Sources

- CVE List: [CVE-2026-45555](https://www.cve.org/CVERecord?id=CVE-2026-45555), CVE Terms of Use, modified 2026-05-29
- NVD: [CVE-2026-45555](https://nvd.nist.gov/vuln/detail/CVE-2026-45555), Public domain, modified 2026-07-21

---

Page: https://cve.day/CVE-2026-45555 · Whole record: https://cve.day/CVE-2026-45555.json · Rebuilt by cve.day 2026-11-25T22:59:23.313Z
