msgpack is vulnerable to Use After Free
83
CVE Score
High
Use After Free
MessagePack::Buffer transfers rmem page ownership incorrectly when carving a new chunk from the unused tail of a page, so a later chunk can keep pointing into memory that has already been returned to the shared pool and handed to another buffer. Reads then return another buffer's bytes and writes corrupt them, which in a per-request packer can leak or mix serialized data across requests. Separately, unpacking deeply nested recursive extensions ignores a failed unpacker stack push and keeps recursing until the Ruby VM crashes with SIGSEGV instead of raising MessagePack::StackError. The fix correctly transfers rmem ownership so released pages are not reused while still referenced, and raises StackError when the recursive-extension stack push fails.
Upgrade the msgpack library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and your application uses MessagePack::Buffer or Packer directly, or unpacks MessagePack data that registers recursive extension types.
0.0.1 - 1.8.3
Fixed in 1.8.4msgpack is vulnerable to Use After Free in versions 0.0.1 - 1.8.3.
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.
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.