msgpack is vulnerable to Use-After-Free
48
Medium Risk
The unpackb() function copies non-contiguous input, such as a sliced memoryview, into a temporary contiguous buffer before parsing. When the input contains trailing bytes after a complete object, the trailing ExtraData payload is read from that temporary buffer after it has already been released, so the exception is built from freed memory. This can expose unrelated freed heap contents through the returned extra bytes or crash the interpreter. The fix copies the extra data out before the temporary buffer is released.
You are affected if you are using a version that falls within the vulnerable range and you unpack untrusted or externally influenced data passed as a non-contiguous buffer such as a sliced memoryview that carries trailing bytes after a complete object.
msgpack is vulnerable to Use-After-Free in versions 0.5.0 - 1.2.1.
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
ISO 42001Compliant© All Intel data is openly available and commercially licensed.