mcp-cve-project

CVE-2026-63119 | MCP Ruby SDK stdio unbounded line buffer DoS | Moderate | 6.2

CVE Information

Field Value
CVE / NVD CVE-2026-63119
Date (index) 2026-07-08
Affected product (index) MCP Ruby SDK (modelcontextprotocol/ruby-sdk): stdio IO#gets without line limit
GHSA ID GHSA-7683-3w9x-ch42
OWASP MCP Top 10 (2025) MCP07 — Insufficient Authentication & Authorization
Published / disclosed 2026-07-08
Ecosystem RubyGems
Component MCP::Server::Transports::StdioTransport, MCP::Client::Stdio
EPSS score Not yet scored (FIRST EPSS as of 2026-07-17)
CVSS score 6.2 (v3.1)
CWE CWE-400 / CWE-770
Affected versions <= 0.22.0
Fixed versions 0.23.0
Fix status Patched
Exploit status Public advisory
Notes Added during 2026-07-17 gap review. Cross-SDK stdio unbounded-buffer class (see also Kotlin/TS/Python advisories).

CVE Breakdown

What is the vulnerability?

Stdio transports read newline-delimited JSON-RPC frames with IO#gets and no limit argument. A peer streaming bytes without \n causes unbounded String growth until OOM.

Attack prerequisites / exposure

Primary concern: sandboxed MCP server subprocess with unsandboxed host reader, or HTTP-to-stdio bridges forwarding remote bytes. Default stdio peer is often a trusted parent process.

CVE is because of what bug?

Uncontrolled resource consumption (CWE-400, CWE-770).

MCP-specific impact / why it matters

A memory-capped sandboxed MCP server can exhaust the host process managing multiple MCP sessions.

Where was the bug? (source + snippet)

Fix / Remediation

Upgrade to mcp gem >= 0.23.0, which applies a configurable maximum line length to all stdio read sites.