Intel

AIKIDO-2026-475677

msgpack is vulnerable to Integer Overflow or Wraparound

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Jun 17, 2026
June 17, 2026

65

CVE Score

Medium

Integer Overflow or Wraparound

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.

How do I fix this?

Upgrade the msgpack library to the patch version.

Who does this affect?

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

Package

Versions

0.5.0 - 1.8.2

Fixed in 1.8.3

Background info

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

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea