MCP Kotlin SDK 是用于模型上下文协议(Model Context Protocol, MCP)的 Kotlin 多平台软件开发工具包。在 0.7.0 至 0.12.0 版本中,位于 中的 方法会将来自 stdio 传输层接收到的每一块字节无上限地写入 。帧数据只有当检测到换行符 (0x0a)字节时才会从该缓冲区中提取。若对端持续流式发送字节但始终不发送换行符,内部缓冲区将无限增长,直至 JVM(或宿主进程)因内存溢出(OOM)被强制终止。 该内存泄漏问题在 和 中被进一步放大:二者均通过 队列接收原始
Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.
| Vendor | Product | Affected Versions | CPE | Subscribe |
|---|---|---|---|---|
| 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 | - |
|
| # | POC Description | Source Link | Shenlong Link |
|---|
No public POC found.
Login to generate AI POCNo comments yet