Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsLearn about Missing Release of Memory after Effective Lifetime vulnerabilities in an interactive lesson.
Start learningUpgrade msgpack to version 1.2.3 or higher.
msgpack is an efficient binary serialization format.
Affected versions of this package are vulnerable to Missing Release of Memory after Effective Lifetime via a use-after-free condition in the unpackb function and the Unpacker streaming class in msgpack/_unpacker.pyx. The fix reveals that unpack_data() returned a borrowed reference to a result object stored inside the unpack context, while unpack_clear() was called after the reference was already used - or, in the unpackb path, only outside the finally block, meaning an exception raised by ExtraData could cause the context to be cleared while the result object was still live. An attacker supplying a malformed or oversized msgpack payload can trigger this condition, causing a crash.