Intel

AIKIDO-2026-360897

msgpack is vulnerable to Use After Free

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Jun 16, 2026
June 16, 2026

69

CVE Score

Medium

Use After Free

Are you affected? Scan for Free

TL;DR

The msgpack deserializer unpacks MessagePack from buffer-protocol objects in its C extension and pure-Python fallback. When input is a non-contiguous buffer such as a sliced memoryview, the C path could use freed memory and abort the process, and error or re-init paths could leak parser state on malformed payloads. Before the fix, strict_map_key was not enforced when object_pairs_hook was configured, allowing non-string map keys despite the option. Version 1.2.0 fixes buffer lifetime handling, clears partial unpack state, adds missing C allocation checks, and applies map-key validation in the hook path.

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.6.2 - 1.1.2

Fixed in 1.2.0

Background info

msgpack is vulnerable to Use After Free in versions 0.6.2 - 1.1.2.

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