{"id":"CVE-2026-63119","published":"2026-07-29T19:12:07Z","modified":"2026-07-29T19:28:41Z","title":"MCP Ruby SDK: Unbounded line buffer in stdio transports leads to memory exhaustion (DoS)","vendor":"modelcontextprotocol","product":"ruby-sdk","tier":"tail","description":{"text":"MCP Ruby SDK is the official Ruby SDK for Model Context Protocol servers and clients. Prior to 0.23.0, MCP::Server::Transports::StdioTransport and MCP::Client::Stdio in the mcp gem use IO#gets without a byte limit, allowing a peer that sends data without a newline to exhaust process memory. This issue is fixed in version 0.23.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.2,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00184,"percentile":0.04636,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"},{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"references":[{"url":"https://github.com/modelcontextprotocol/ruby-sdk/security/advisories/GHSA-7683-3w9x-ch42","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/modelcontextprotocol/ruby-sdk/commit/267b8fa6285453525c81ce43db6b7dcd7a8a8c2f","tags":["x_refsource_MISC"]},{"url":"https://github.com/modelcontextprotocol/ruby-sdk/releases/tag/v0.23.0","tags":["x_refsource_MISC"]}],"priority":{"score":5.3,"factors":[{"name":"EPSS percentile","points":0.93},{"name":"CVSS severity","points":4.34}]},"vendorSlug":"modelcontextprotocol","affectedVersions":[{"vendor":"modelcontextprotocol","product":"ruby-sdk","versions":["< 0.23.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-29T19:28:33.562204Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"mcp","vulnerableRanges":["<0.23.0"],"patched":["0.23.0"],"from":["GHSA-7683-3w9x-ch42"],"provenance":"source"}],"summary":{"text":"The MCP Ruby SDK (the mcp gem, prior to 0.23.0) has an unbounded line buffer in its stdio transports, MCP::Server::Transports::StdioTransport and MCP::Client::Stdio, which read input with IO#gets and no byte limit. An attacker who can act as the peer on that stdio channel, with no authentication or user interaction required, can send data without a newline to exhaust the process's memory and cause a denial of service.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:17:46Z"},"euvd":{"id":"EUVD-2026-50500","exploited":false,"provenance":"source"}}