Intel

AIKIDO-2026-475677

msgpack is vulnerable to Integer Overflow or Wraparound

Integer Overflow or Wraparound Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published 5 days ago

65

Medium Risk

This Affects:

RUBYmsgpack
0.5.0 - 1.8.2
Fixed in 1.8.3
Are you affected? Scan for Free

TL;DR

The MessagePack Ruby unpacker reads 32-bit map and container length fields when deserializing binary input. Before the fix, length arithmetic such as count*2 could wrap on large declared sizes, so malformed or truncated payloads were handled incorrectly instead of failing safely. An attacker supplying crafted MessagePack data to MessagePack.unpack or an Unpacker could trigger incorrect parse boundaries. The fix uses size_t for native length math and rejects oversized 32-bit sizes on JRuby so underflow and truncation raise errors.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

msgpack is vulnerable to Integer Overflow or Wraparound in versions 0.5.0 - 1.8.2.

How to fix this

Upgrade the msgpack library to the patch version.