Description
Mooncake transfer engine before 0.3.13 contains an untrusted pointer dereference in ServerSession::readHeader that allows unauthenticated attackers to read and write arbitrary process memory via the TCP transport data port. Attackers can send a crafted SessionHeader with arbitrary addr and size values using READ or WRITE opcodes to disclose KV cache contents, prompts and secrets or corrupt memory toward code execution.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| kvcache-ai | Mooncake | < 0.3.13 | 0.3.13 |
References
- GitHub Issue #4441 issue-tracking
- https://github.com/kvcache-ai/Mooncake/commit/a2933849417259e562fc9cbad63c618d464dfb2d patch
- Mooncake v0.3.13 Release Notes release-notes
- https://github.com/kvcache-ai/Mooncake/blob/6041a609a8c3af35e778f70db344f145c2914980/mooncake-transfer-engine/src/transport/tcp_transport/tcp_transport.cpp#L209 technical-description
- https://github.com/kvcache-ai/Mooncake product
- VulnCheck Advisory: Mooncake transfer engine before 0.3.13 Unauthenticated Arbitrary Memory Read/Write via TCP Transport third-party-advisory