CVE-2026-53937Modelcontextprotocol Io.modelcontextprotocol:kotlin-sdk uncontrolled resource consumption
CVSS score
6.2
Medium
CVSS 3.1 from github.com
Exploit probability (EPSS)
0.19%
0.19% chance of exploitation in the next 30 days, higher than 8.16% of all CVEs.
CISA KEV
Not in KEV
No confirmed exploitation reported by CISA so far.
Official description
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.
Source: NVD · CNA: security-advisories@github.com
How to fix it, step by step
Check whether you're affected
Find every system running modelcontextprotocol Io.modelcontextprotocol:kotlin-sdk-client, modelcontextprotocol Io.modelcontextprotocol:kotlin-sdk-core, modelcontextprotocol Io.modelcontextprotocol:kotlin-sdk-server and compare its version with the affected versions.
Update to a fixed version
- Update Io.modelcontextprotocol:kotlin-sdk-client to 0.13.0 or later.
Confirm the fix
Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.
Was this useful?
How it can be exploited
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Values in red make the vulnerability easier to exploit or more damaging. CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Affected products
| Affected products | 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 |
Weakness
Timeline
- Published:
- Last modified:
Frequently asked questions
Is CVE-2026-53937 being exploited?
There is no confirmed exploitation in CISA's KEV catalog so far. Its EPSS score estimates a 0.2% probability of exploitation in the next 30 days.
What is the CVSS score of CVE-2026-53937?
CVE-2026-53937 has a CVSS 3.1 base score of 6.2 (medium).
Which versions are affected?
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)
Is there a patch for CVE-2026-53937?
The official record links to vendor advisories or patches; see “What to do” above.
References
- github.com/modelcontextprotocol/kotlin-sdk/blob/6d5bac1/kotlin-sdk-core/src/commonMain/kotlin/io/modelcontextprotocol/kotlin/sdk/shared/ReadBuffer.kt
- github.com/modelcontextprotocol/kotlin-sdk/commit/6e6f80512fb8fcc9f3c031cfd693ccbcf9c4aaab
- github.com/modelcontextprotocol/kotlin-sdk/releases/tag/0.13.0
- github.com/modelcontextprotocol/kotlin-sdk/security/advisories/GHSA-74gp-qhv5-v493
Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.