Skip to content
OpenAdvisories

Description

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 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.

Affected products

VendorProductAffectedFixed
msgpack msgpack-ruby < 1.8.2 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 ruby-msgpack 1.8.3-1 —
Debian 13 ruby-msgpack No fix yet —
Debian 12 ruby-msgpack No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.04 LTS ruby-msgpack No fix yet —
Ubuntu 24.04 LTS ruby-msgpack No fix yet —
Ubuntu 22.04 LTS ruby-msgpack No fix yet —
Ubuntu 20.04 LTS ruby-msgpack No fix yet —
Ubuntu 18.04 LTS ruby-msgpack No fix yet —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS ruby-msgpack No fix yet —

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 python-msgpack No fix yet —
Azure Linux 3 rubygem-msgpack 1.8.4-1 —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling ruby3.2-fluentd-kubernetes-daemonset-1.19-kinesis 1.19.2.1.1-r7 —
Wolfi rolling ruby3.2-kube-logging-operator-fluentd-outputs +1 6.8.0-r0 —

Affected packages

EcosystemPackageAffectedFixedRecord
RubyGems msgpack < 1.8.2 1.8.2 GHSA-4mrv-5p47-p938

References