Intel

AIKIDO-2026-360897

msgpack is vulnerable to Use After Free

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

69

Medium Risk

This Affects:

PYTHONmsgpack
0.6.2 - 1.1.2
Fixed in 1.2.0
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.

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

How to fix this

Upgrade the msgpack library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform