Modelcontextprotocol ruby-sdk
MCP Ruby SDK: Unbounded JSON-RPC request body causes uncontrolled memory allocation in StreamableHTTPTransport
MCP Ruby SDK is the official Ruby SDK for Model Context Protocol servers and clients. Prior to 0.23.0, MCP::Server::Transports::StreamableHTTPTransport in the mcp gem reads and parses an entire JSON-RPC POST body without a size limit, allowing an unauthenticated remote attacker to exhaust process memory. This issue is fixed in version 0.23.0.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.5high · scored by CNA · CWE-770
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
modelcontextprotocol ruby-sdk
- < 0.23.0
Fixed in 0.23.0
Mitigation
Upgrade ruby-sdk to 0.23.0 or later.
References
- Vendor advisory github.com/modelcontextprotocol/ruby-sdk/secur…
- Patch github.com/modelcontextprotocol/ruby-sdk/commi…
- Release notes github.com/modelcontextprotocol/ruby-sdk/relea…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.