Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

kvcache-ai/mooncake
main @ fab74ea
17
Fixes
2
CVEs
CRITICAL
Peak severity
Highlights
Denial of Service: 7 prior fixes. Scrutinize any change in this area.
mooncake-store: most-fixed (3 issues). Treat as high-risk during review.
9 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Unsafe Deserialization: The integration of Mooncake exposes critical RCE vulnerabilities via unsafe pickle deserialization over exposed ZeroMQ/TCP sockets. This allows remote attackers with network access to achieve arbitrary code execution.
Heap Out-of-Bounds Write: Integer overflows during offload operations involving large objects (>4 GiB) can trigger a memory allocation mismatch, resulting in severe heap buffer overflow or arena corruption inside BatchOffload.
Use After Free: Dereferencing raw RDMA endpoint pointers within asynchronous background worker threads leads to use-after-free vulnerabilities when endpoints are evicted from the cache while slices remain in-flight.