CVE-2026-48511 MessagePack-CSharp: ExpandoObject formatter can perform quadratic insertion work on untrusted maps

Medium 6.3 Published Updated

Attackers can cause excessive CPU and memory consumption in MessagePack-CSharp by sending large maps to the ExpandoObject formatter, leading to denial of service.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-48511?

CVE-2026-48511 is a medium-severity denial of service vulnerability in MessagePack-CSharp, published on 22 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

MessagePack for C# is a MessagePack serializer for C#. Prior to 2.5.301 and 3.1.7, ExpandoObjectFormatter.Deserialize populates System.Dynamic.ExpandoObject by calling IDictionary<string, object>.Add for each map entry. ExpandoObject internally maintains member names in array-like structures, so inserting many distinct keys can require repeated linear scans and array copies. For large attacker-controlled maps, this produces quadratic CPU and allocation behavior. The issue is especially surprising because ExpandoObjectResolver.Options is configured with MessagePackSecurity.UntrustedData, but collision-resistant dictionary comparers cannot protect ExpandoObject insertion internals. This vulnerability is fixed in 2.5.301 and 3.1.7.

Weakness: CWE-407

Which versions are affected by CVE-2026-48511?

4 open source packages ship an affected version, including MessagePack. It affects 1 product.

PackageAffectedFixed in
MessagePack NuGetAll versions2.5.301
MessagePack NuGetAll versions2.5.301
MessagePack NuGetFrom 3.03.1.7
MessagePack NuGetFrom 3.03.1.7

Products include Messagepack Messagepack.

How do I fix CVE-2026-48511?

Upgrade MessagePack to a fixed version for your release line: 2.5.301 or 3.1.7.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2026-48511 being exploited?

There is no known exploitation of CVE-2026-48511 in the wild and no public exploit code.

Sources

Also known as ECHO-7cdd-58b9-b940, GHSA-2x83-8g95-xh59.

Is CVE-2026-48511 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free