Intel

AIKIDO-2026-11117

msgpack is vulnerable to Use After Free

Use After FreeGHSA-4mrv-5p47-p938 Published 3 days ago

36

Low Risk

This Affects:

RUBYmsgpack
0.0.1 - 1.8.1
Fixed in 1.8.2
Are you affected? Scan for Free

TL;DR

The MessagePack::Buffer#clear method returns chunk memory pages to a shared pool without resetting the buffer's rmem cursor pointers. Reusing the cleared buffer for writing then hands back a slice of an already-freed page, and a later buffer allocating from the same pool can alias the same physical memory. This lets one buffer read or corrupt another buffer's data within the same process, but only when application code uses the MessagePack::Buffer API directly with a clear-and-reuse pattern. The fix resets the rmem pointers when the buffer is fully emptied so freed pages are no longer referenced.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

msgpack is vulnerable to Use After Free in versions 0.0.1 - 1.8.1.

How to fix this

Upgrade the msgpack library to the patch version.