msgpack is vulnerable to Use After Free
83
High Risk
MessagePack::Buffer transfers rmem page ownership incorrectly when carving a new chunk from the unused tail of a page, so a later chunk can keep pointing into memory that has already been returned to the shared pool and handed to another buffer. Reads then return another buffer's bytes and writes corrupt them, which in a per-request packer can leak or mix serialized data across requests. Separately, unpacking deeply nested recursive extensions ignores a failed unpacker stack push and keeps recursing until the Ruby VM crashes with SIGSEGV instead of raising MessagePack::StackError. The fix correctly transfers rmem ownership so released pages are not reused while still referenced, and raises StackError when the recursive-extension stack push fails.
You are affected if you are using a version that falls within the vulnerable range and your application uses MessagePack::Buffer or Packer directly, or unpacks MessagePack data that registers recursive extension types.
msgpack is vulnerable to Use After Free in versions 0.0.1 - 1.8.3.
Upgrade the msgpack library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant