CVE-2026-63119: Unbounded stdio line read DoS in MCP Ruby SDK
CVE-2026-63119 is a denial-of-service vulnerability in the Model Context Protocol Ruby SDK, distributed as the mcp gem, affecting versions prior to 0.23.0. The flaw is caused by use of Ruby IO#gets on stdio transport paths without an explicit byte limit in MCP::Server::Transports::StdioTransport and MCP::Client::Stdio. A connected peer or spawned subprocess can send a continuous stream that never includes a newline delimiter, causing the runtime to continue growing the buffer for a single unterminated line until process memory is exhausted. The issue affects both client and server stdio communication paths and results in uncontrolled resource consumption rather than code execution or data disclosure.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation causes unbounded memory growth in the target Ruby process, potentially exhausting RAM and swap and leading to process termination, including by operating system out-of-memory handling. The primary security impact is loss of availability. The vulnerability does not, based on available information, provide arbitrary code execution, privilege escalation, or memory disclosure.
Mitigation
If you can’t patch tonight, do this now.
If immediate upgrade is not possible, avoid using vulnerable stdio transports with untrusted, sandboxed, or externally influenced peers. Do not expose deployments that bridge remote input into stdio transport streams without independent framing and size enforcement. Apply external limits on incoming stream size before data reaches the SDK, and use process isolation and memory constraints to reduce denial-of-service impact.
Remediation
Patch, then assume compromise.
Upgrade the mcp gem to version 0.23.0 or later. The fix introduces bounded line reads for stdio transports, including a default maximum line length of 4 MiB, passes an explicit byte limit to gets, and rejects frames that exceed the limit without a terminating newline. Where applicable, ensure all deployments and bundled dependencies are updated to the fixed release.
Exploits
No public exploits tracked yet. Mallory keeps watching.
References
Frequently asked questions
- Is CVE-2026-63119 exploited in the wild?
- As of Sep 25, 2026, Mallory has no reports of CVE-2026-63119 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-63119?
- Yes. As of Sep 25, 2026, Mallory has reports of a public exploit for CVE-2026-63119.
- Is there a patch for CVE-2026-63119?
- Upgrade the mcp gem to version 0.23.0 or later. The fix introduces bounded line reads for stdio transports, including a default maximum line length of 4 MiB, passes an explicit byte limit to gets, and rejects frames that exceed the limit without a terminating newline.
- How severe is CVE-2026-63119?
- CVE-2026-63119 has a CVSS v3.1 score of 6.2 (Medium) and an EPSS score of 0.19% (8th percentile) as of Sep 25, 2026.
Recent activity
2 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.