mcp-cve-project

CVE-2026-53937 | MCP Kotlin SDK’s unbounded line buffer in StdioServerTransport/StdioClientTransport leads to memory exhaustion | Medium |

CVE Information

Field Value
CVE / NVD CVE-2026-53937
Date (index) 2026-09-08
Affected product (index) MCP Kotlin SDK’s unbounded line buffer in StdioServerTransport/StdioClientTransport leads to memory exhaustion
GHSA ID GHSA-74gp-qhv5-v493
OWASP MCP Top 10 (2025) MCP07 — Insufficient Authentication & Authorization
Published / disclosed 2026-09-08
Ecosystem Source repository
Component modelcontextprotocol/io.modelcontextprotocol:kotlin-sdk; modelcontextprotocol/io.modelcontextprotocol:kotlin-sdk-client; modelcontextprotocol/io.modelcontextprotocol:kotlin-sdk-core; modelcontextprotocol/io.modelcontextprotocol:kotlin-sdk-server
EPSS score 0.001860000 (FIRST EPSS, 2026-11-09)
CVSS score 6.2 MEDIUM CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CWE CWE-400, CWE-770
Affected versions modelcontextprotocol/io.modelcontextprotocol:kotlin-sdk: < 0.13.0; modelcontextprotocol/io.modelcontextprotocol:kotlin-sdk-client: >= 0.7.0, < 0.13.0; modelcontextprotocol/io.modelcontextprotocol:kotlin-sdk-core: < 0.13.0; modelcontextprotocol/io.modelcontextprotocol:kotlin-sdk-server: >= 0.7.0, < 0.13.0
Fixed versions modelcontextprotocol/io.modelcontextprotocol:kotlin-sdk: none named; modelcontextprotocol/io.modelcontextprotocol:kotlin-sdk-client: none named; modelcontextprotocol/io.modelcontextprotocol:kotlin-sdk-core: none named; modelcontextprotocol/io.modelcontextprotocol:kotlin-sdk-server: none named
Fix status No fixed version in the published CVE record
Exploit status Public advisory. This note does not include exploit steps.
Notes Updated on 2026-11-09 from the published CVE record and FIRST EPSS.

CVE Breakdown


What is the vulnerability?

MCP Kotlin SDK is the Kotlin Multiplatform software development kit for the Model Context Protocol. In versions 0.7.0 through 0.12.0, ReadBuffer.append in kotlin-sdk-core/src/commonMain/kotlin/io/modelcontextprotocol/kotlin/sdk/shared/ReadBuffer.kt writes every chunk of bytes received from the stdio transport into a kotlinx.io.Buffer with no size cap. Frames are extracted from that buffer only when a \n (0x0a) byte is observed. A peer that streams bytes without ever sending a newline causes the internal buffer to grow indefinitely until the JVM (or the surrounding host process) is OOM-killed. The leak is amplified by StdioServerTransport and StdioClientTransport, which both queue raw chunks through a kotlinx.coroutines.channels.Channel<ByteArray>(Channel.UNLIMITED) and then call readBuffer.append(chunk) without backpressure or size guard. This is a remote-pre-auth denial of service whenever an SDK stdio server’s stdin is fed by an untrusted or attacker-controlled producer (for example: a host program that exec’s the MCP server as a subprocess and pipes through bytes received from a network peer, or a sidecar wrapper that proxies bytes from an HTTP endpoint to the stdio transport). Version 0.13.0 fixes the issue.

Attack prerequisites / exposure

Depends on deployment. Typical MCP cases are a reachable HTTP or SSE listener, a malicious remote MCP server, a poisoned project configuration, or a person opening attacker-influenced content. Developer workstations and shared runners are high-value when the server runs with host access.

CVE is because of what bug?

The published weakness mapping is CWE-400, CWE-770. Use the linked advisory for the upstream root cause.

MCP-specific impact / why it matters

MCP connects a model to tools, files, and credentials on a host or network. A flaw in transport checks, path checks, command handling, or token binding can become code execution, credential exposure, or access to another user’s session.

Where was the bug? (source + snippet)

File and function names belong in the linked upstream advisory and patch. This index does not repeat exploit inputs.

Fix / Remediation

Apply the vendor’s patched release or commit. Until then, keep the affected MCP listener off untrusted networks and require authentication on HTTP transports.

Upstream fix (open source)

Workarounds / mitigations

Detection / verification