{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-53937","id":"CVE-2026-53937","title":"MCP Kotlin SDK's unbounded line buffer in StdioServerTransport/StdioClientTransport leads to memory exhaustion (DoS)","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 on","descriptionLong":"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.","published":"2026-09-08T23:21:46.554Z","updated":"2026-10-28T02:30:32.327269090Z","reserved":"2026-06-11T15:46:12.318Z","status":"Awaiting Analysis","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":6.2,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":6.2,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":6.2,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"github.com"},{"version":"3.1","score":6.2,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"OSV"}],"rating":"medium","products":["modelcontextprotocol io.modelcontextprotocol:kotlin-sdk","modelcontextprotocol io.modelcontextprotocol:kotlin-sdk-client","modelcontextprotocol io.modelcontextprotocol:kotlin-sdk-core","modelcontextprotocol io.modelcontextprotocol:kotlin-sdk-server"],"affectedProducts":[{"vendor":"modelcontextprotocol","product":"io.modelcontextprotocol:kotlin-sdk","defaultStatus":null,"versions":[{"version":"< 0.13.0","status":"affected"}],"platforms":[]},{"vendor":"modelcontextprotocol","product":"io.modelcontextprotocol:kotlin-sdk-client","defaultStatus":null,"versions":[{"version":">= 0.7.0, < 0.13.0","status":"affected"}],"platforms":[]},{"vendor":"modelcontextprotocol","product":"io.modelcontextprotocol:kotlin-sdk-core","defaultStatus":null,"versions":[{"version":"< 0.13.0","status":"affected"}],"platforms":[]},{"vendor":"modelcontextprotocol","product":"io.modelcontextprotocol:kotlin-sdk-server","defaultStatus":null,"versions":[{"version":">= 0.7.0, < 0.13.0","status":"affected"}],"platforms":[]}],"packages":[],"cwes":["CWE-400","CWE-770"],"aliases":["GHSA-74gp-qhv5-v493"],"references":[{"url":"https://github.com/modelcontextprotocol/kotlin-sdk/security/advisories/GHSA-74gp-qhv5-v493","tags":["x_refsource_CONFIRM","exploit","advisory"]},{"url":"https://github.com/modelcontextprotocol/kotlin-sdk/commit/6e6f80512fb8fcc9f3c031cfd693ccbcf9c4aaab","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/modelcontextprotocol/kotlin-sdk/blob/6d5bac1/kotlin-sdk-core/src/commonMain/kotlin/io/modelcontextprotocol/kotlin/sdk/shared/ReadBuffer.kt","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/modelcontextprotocol/kotlin-sdk/releases/tag/0.13.0","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/53xxx/CVE-2026-53937.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-53937","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.00186,"epssPercentile":0.08363,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-53937","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-53937","ok":true,"note":"Awaiting Analysis"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-53937","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-53937","ok":true,"note":"scored 2026-11-20"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}