Skip to main content

MCP Kotlin SDK CVE-2026-53937

MEDIUM
Uncontrolled Resource Consumption (CWE-400)
2026-09-09 security-advisories@github.com
6.2
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach network-facing proxy or local stdin feed
  2. Delivery
    Stream bytes continuously without newline
  3. Exploit
    Channel.UNLIMITED enqueues raw chunks with no backpressure
  4. Execution
    ReadBuffer.append() accumulates unbounded kotlinx.io.Buffer
  5. Persist
    JVM heap exhausted
  6. Impact
    OOM 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Vendor (github) PRIMARY 6.2 MEDIUM
AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 6.2 MEDIUM

Stdio attack vector is local by design; PR:N because in proxy-forwarding deployments no host credentials are needed; pure availability impact only.

3.1 AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

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

EPSS Score
0.2%
Top 92% exploitable
Prevalence
Low
new protocol SDK, primarily developer/AI-agent tooling, niche footprint
Data Quality
4 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

31
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +31
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy