Intel

AIKIDO-2026-388295

MessagePack is vulnerable to Denial of Service (DoS)

Denial of Service (DoS)CVE-2026-48511 Published 4 days ago

63

Medium Risk

This Affects:

DOTNETMessagePack
0.0.1 - 2.5.300
Fixed in 2.5.301
3.0.0 - 3.1.6
Fixed in 3.1.7
Are you affected? Scan for Free

TL;DR

ExpandoObjectFormatter inserts each map entry with IDictionary.Add, and ExpandoObject performs repeated linear scans as keys grow. Large attacker-controlled maps can therefore cause quadratic CPU and allocation work even when MessagePackSecurity.UntrustedData is enabled. The fix applies untrusted-data map entry limits and rejects oversized maps before quadratic insertion work begins.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and deserialize untrusted MessagePack maps into ExpandoObject.

Background info

MessagePack is vulnerable to Denial of Service (DoS) in versions 0.0.1 - 2.5.300 and 3.0.0 - 3.1.6.

How to fix this

Upgrade the MessagePack library to the patch version.