mcp-cve-project

CVE-2026-81097 | The executeruby tool is documented as a read-only Ruby sandbox and is enforced by a pattern denylist together with repla | High / 8.6

CVE Information

Field Value
CVE / NVD CVE-2026-81097
Date (index) 2026-08-27
Affected product (index) The execute_ruby tool is documented as a read-only Ruby sandbox and is enforced by a pattern denylist together with replacements for the process-spawning methods on Kernel.
GHSA ID None — no GitHub advisory published (search)
OWASP MCP Top 10 (2025) MCP05 - Command Injection & Execution
Published / disclosed 2026-08-27
Ecosystem Application / upstream project
Component The execute_ruby tool is documented as a read-only Ruby sandbox and is enforced by a pattern denylis
EPSS score 0.002350000 (FIRST EPSS, 2026-09-26)
CVSS score High / 8.6
CWE CWE-78
Affected versions 1.4.0, <= 1.6.0, v1.5.1, v1.5.0, v1.4.1, v1.4.0
Fixed versions 1.6.0
Fix status Patched
Exploit status Public advisory / public CVE record
Notes Added during 2026-09-07 gap review against NVD, GitHub Advisory Database, OSV, OpenCVE, and related MCP advisory searches.

CVE Breakdown

What is the vulnerability?

The execute_ruby tool is documented as a read-only Ruby sandbox and is enforced by a pattern denylist together with replacements for the process-spawning methods on Kernel. The pseudo-terminal library’s spawn entry points are neither in the denylist nor replaced, so a normal tool call could reach them and start a shell, executing commands as the account running the server and outside the guarded methods. The denylist was introduced with the tool in 1.4.0 and never covered those entry points through 1.6.0. Version 1.6.1 restricts the requires the sandbox permits to a data-only list and blocks dynamic dispatch to execution entry points; 2.0.0 removes the tool.

Attack prerequisites / exposure

Exposure depends on deployment: reachable MCP transports, enabled MCP tools, local listeners without robust Host/Origin/authentication checks, or trusted workspace/project MCP configuration treated as safe input.

CVE is because of what bug?

The issue maps to CWE-78; review the upstream advisory for the exact vulnerable code path and patched implementation.

MCP-specific impact / why it matters

This issue affects an MCP server, SDK, gateway, client, integration, or MCP-enabled workflow where tool execution, transport exposure, secrets, files, or authorization boundaries are part of the risk surface.

Where was the bug? (source + snippet)

Add a minimal vulnerable code snippet here only after reviewing the linked upstream commit / advisory.

Fix / Remediation

Upgrade to the vendor-fixed version where available. Restrict MCP listeners to trusted networks, require authentication for HTTP/SSE/Streamable HTTP transports, validate Host and Origin headers, constrain filesystem and command-execution tools, and treat project/workspace MCP configuration as untrusted input.

Exploit / PoC

Prefer vendor advisories and defensive write-ups; do not host weaponized exploit code in this repository.

Detection / verification