Skip to main content

Use After Free

CVE-2026-54522

Severity Low
Score 2.1/10

Summary

MessagePack for Ruby is an implementation of the MessagePack binary serialization format. Prior to version 1.8.2, `MessagePack::Buffer#clear` in `ext/msgpack/buffer.c` leaves `rmem_last`, `rmem_end`, and `rmem_owner` stale after `_msgpack_buffer_shift_chunk` returns an `rmem` page to the shared pool, allowing a subsequent `Buffer#write` and a second `MessagePack::Buffer` to alias the page and disclose or corrupt cross-buffer data. This issue is fixed in version 1.8.2.

  • LOW
  • NETWORK
  • LOW
  • UNCHANGED
  • NONE
  • LOW
  • LOW
  • NONE

CWE-416 - Use After Free

Use-after-free (UaF) vulnerability occurs when the application is using a pointer to memory that has been freed. Any attempt to read/write to a buffer after it is de-allocated allows memory corruption, sensitive information exposure, and can potentially lead to arbitrary code execution.

References

Advisory Timeline

  • Published