Impact
The MCP Ruby SDK’s StreamableHTTPTransport fails to expire sessions, letting repeated initialize requests accumulate ServerSession objects without limit. The result is a memory leak that can deplete process memory, potentially causing crashes or denial of service. The weakness is a classic memory management flaw mapped to CWE‑401 and an allocation size flaw, CWE‑770.
Affected Systems
Vendors: ModelContextProtocol’s Ruby SDK. Product: MCP Ruby SDK. Versions before 0.23.0 are impacted. The issue is fixed in release v0.23.0.
Risk and Exploitability
The CVSS score of 5.3 indicates moderate impact. The EPSS value of <1% means the probability of exploitation is currently very low, and the vulnerability is not recorded in CISA’s KEV catalog. Attackers could trigger the problem by issuing a flood of initialize calls over the HTTP interface, which suggests a remote HTTP-based vector, though the description does not explicitly certify the attack surface.
OpenCVE Enrichment
Github GHSA