Intel

AIKIDO-2026-11117

msgpack is vulnerable to Use After Free

CVE-2026-54522Published Jun 9, 2026
June 9, 2026

36

CVE Score

Low

Use After Free

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.

How do I fix this?

Upgrade the msgpack library to the patch version.

Who does this affect?

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

Package

Versions

0.0.1 - 1.8.1

Fixed in 1.8.2

Background info

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

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea