MessagePack for Ruby is an implementation of the MessagePack binary serialization format. Prior to 1.8.2, MessagePack::Buffer#clear in ext/msgpack/buffer.c leaves rmemlast, rmemend, and rmemowner stale after msgpackbuffershift_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.
{
"cwe_ids": [
"CWE-416"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54522.json",
"cna_assigner": "GitHub_M"
}{
"cpe": "cpe:2.3:a:msgpack:messagepack:*:*:*:*:*:ruby:*:*",
"extracted_events": [
{
"introduced": "0"
},
{
"fixed": "1.8.2"
}
],
"source": [
"CPE_RANGE",
"REFERENCES"
]
}
"2026-08-12T16:41:18Z"
[
{
"id": "CVE-2026-54522-0c48a748",
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"62515399619151110189481082912345304106",
"157328647613235767233816264595413167422",
"82844948022617087820993061839250164793",
"82217288161328941814490663109635154035"
]
},
"source": "https://github.com/msgpack/msgpack-ruby/commit/5627d71606b565641d2dd501b82aae862f4abe90",
"target": {
"file": "ext/msgpack/buffer.c"
}
},
{
"id": "CVE-2026-54522-4de75f32",
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1",
"digest": {
"length": 382.0,
"function_hash": "111911793690646822479415364421376939223"
},
"source": "https://github.com/msgpack/msgpack-ruby/commit/5627d71606b565641d2dd501b82aae862f4abe90",
"target": {
"function": "_msgpack_buffer_shift_chunk",
"file": "ext/msgpack/buffer.c"
}
}
]
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-54522.json"