msgpack is vulnerable to Use After Free
69
Medium Risk
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.
You are affected if you are using a version that falls within the vulnerable range.
msgpack is vulnerable to Use After Free in versions 0.6.2 - 1.1.2.
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