MCP Kotlin SDK CVE-2026-53937
MEDIUMAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach network-facing proxy or local stdin feed
-
DeliveryStream bytes continuously without newline
-
ExploitChannel.UNLIMITED enqueues raw chunks with no backpressure
-
ExecutionReadBuffer.append() accumulates unbounded kotlinx.io.Buffer
-
PersistJVM heap exhausted
-
ImpactOOM kill, service denied
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource consumption limits
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the ability to feed an arbitrary byte stream to the stdin of a process using MCP Kotlin SDK 0.7.0-0.12.0 with StdioServerTransport or StdioClientTransport. For direct local exploitation, an attacker needs write access to the target process's stdin pipe. In the more impactful network scenario - the primary concern per the advisory - exploitation requires only the ability to send data through any intermediate host program, sidecar, or proxy that reads from a network endpoint and forwards bytes to the SDK's stdio transport without its own per-connection size guards. Deployments where stdin is fed exclusively from trusted local processes with no network-exposed forwarding layer are not remotely exploitable. The vulnerability affects both the server and client stdio transports equally. No authentication on the target system is required if a network-forwarding proxy is present. |
| Impact | The provided CVSS 6.2 with AV:L reflects direct stdio access as the attack surface, which is the conservative and technically correct baseline. However, the GHSA advisory explicitly enumerates network-reachable amplification paths: host programs that exec the MCP server as a subprocess and pipe network-originated bytes to its stdin, or sidecar/proxy wrappers bridging HTTP to stdio. In those deployment patterns - which are common in AI agent infrastructure - the effective attack vector is network-adjacent or network-facing, substantially elevating practical risk beyond what AV:L implies. No EPSS score was provided. No KEV listing. No public exploit code identified. The impact is purely an availability-only OOM crash with no confidentiality or integrity component. Real-world risk is moderate-to-high specifically for deployments where any untrusted network traffic is proxied into the SDK's stdio transport without an independent size guard upstream. |
| Exploit ScenarioDerived | An attacker with access to a network-facing HTTP-to-stdio proxy sends a continuous stream of arbitrary bytes to the MCP server's stdin, deliberately omitting any newline character. The ReadBuffer accumulates each appended chunk into its kotlinx.io.Buffer without any size check, while the Channel.UNLIMITED queue in StdioServerTransport continues to enqueue raw chunks with no backpressure; the JVM heap is exhausted and the MCP server process is OOM-killed, denying service to all legitimate clients. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 09, 2026
Unbounded heap growth in MCP Kotlin SDK versions 0.7.0-0.12.0 allows an attacker-controlled byte-stream producer to OOM-kill the hosting JVM process via the stdio transport. The ReadBuffer.append() method writes all incoming data into a kotlinx.io.Buffer with no size cap, and frame extraction only triggers on newline arrival - a peer that never sends a newline causes indefinite accumulation. Both StdioServerTransport and StdioClientTransport compound the exposure by using Channel.UNLIMITED queues with no backpressure, amplifying heap consumption before any size guard could intervene. No public exploit identified at time of analysis; vendor-released patch available in version 0.13.0.
RemediationAI
Upgrade to MCP Kotlin SDK version 0.13.0, which is confirmed fixed via GitHub release tag https://github.com/modelcontextprotocol/kotlin-sdk/releases/tag/0.13.0 and commit 6e6f80512fb8fcc9f3c031cfd693ccbcf9c4aaab. The fix adds a 16 MiB default frame-size cap to ReadBuffer and throws TooLongFrameException when the limit is exceeded, causing the transport to close the connection rather than accumulate data. For teams unable to upgrade immediately, a concrete compensating control is to place an upstream byte-count guard in any host or proxy that feeds stdin to the SDK: reject or drop any connection that sends more than a defined number of bytes without a newline before the data reaches the SDK. Note that this guard must live in the process or proxy feeding stdin, not inside the SDK itself. Additionally, network-isolating any sidecar or proxy that bridges external traffic to an MCP stdio server reduces the attacker pool to local actors only.
Affected ProductsAI
MCP Kotlin SDK (modelcontextprotocol/kotlin-sdk) versions 0.7.0 through 0.12.0 are affected, including both the kotlin-sdk-core ReadBuffer and the StdioServerTransport and StdioClientTransport implementations. No NVD CPE strings were provided in the input data. The authoritative GitHub Security Advisory is GHSA-74gp-qhv5-v493 at https://github.com/modelcontextprotocol/kotlin-sdk/security/advisories/GHSA-74gp-qhv5-v493.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The affected component is ReadBuffer in kotlin-sdk-core (io.modelcontextprotocol.kotlin.sdk.shared.ReadBuffer), which implements newline-delimited JSON-RPC framing over stdio for the Model Context Protocol. Internally it accumulates incoming chunks into a kotlinx.io.Buffer and only extracts a frame when a 0x0a (newline) byte is located. CWE-400 (Uncontrolled Resource Consumption) is the root cause: there is no maximum frame size enforced on the backing buffer, and the transport layer (StdioServerTransport, StdioClientTransport) enqueues raw byte chunks via Channel.UNLIMITED - an unbounded coroutines channel - before calling readBuffer.append(), meaning the queue itself can grow without limit before the buffer-growth issue is even reached. The vulnerability is confirmed by source code in ReadBuffer.kt at commit 6d5bac1 and fixed in commit 6e6f80512fb8fcc9f3c031cfd693ccbcf9c4aaab by introducing a configurable maxFrameSize (default 16 MiB) and a TooLongFrameException that causes the transport to close the connection on breach.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Stdio attack vector is local by design; PR:N because in proxy-forwarding deployments no host credentials are needed; pure availability impact only.
Primary rating from Vendor (github).
CVSS VectorVendor: github
DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
NVD
CVE.org
EPSS
GitHub
Exploit-DB