PT-2026-66528 · Rubygems · Messagepack For Ruby

CVE-2026-54522

·

Published

2026-07-30

·

Updated

2026-07-30

CVSS v4.0

2.1

Low

VectorAV:L/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions MessagePack for Ruby versions prior to 1.8.2
Description A use-after-free issue exists in the MessagePack::Buffer#clear function within ext/msgpack/buffer.c. When this function is called, it returns memory pages to a shared pool but fails to reset the buffer's rmem cursor variables rmem last, rmem end, and rmem owner. Consequently, a subsequent call to Buffer#write may reuse a pointer to a page that has already been returned to the pool. If a second MessagePack::Buffer acquires that same page, both buffers will alias the same memory location. This can lead to cross-buffer information disclosure, where one buffer reads data belonging to another, or data corruption, where one buffer overwrites the other's serialized data.
Recommendations Update MessagePack for Ruby to version 1.8.2 or later.

Exploit

Fix

Use After Free

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-54522
GHSA-4MRV-5P47-P938

Affected Products

Messagepack For Ruby