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

- Priority: **Routine**
- Reason: Not severe (CVSS 6.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-06-22 · Modified: 2026-06-25
- Aliases: GHSA-2x83-8g95-xh59
- Record: https://cvemate.com/vulnerability/CVE-2026-48511 · JSON: https://cvemate.com/vulnerability/CVE-2026-48511/json

## Description

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

## Signals

- CVSS: 7.5 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.232%, percentile 14.969%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- messagepack-csharp messagepack-csharp: ≥ 3.0, \< 3.1.7 \| \< 2.5.301
- messagepack messagepack: \< 2.5.301 \| ≥ 3.0.3, \< 3.1.7
- NuGet MessagePack (NuGet): \< 2.5.301 \| ≥ 3.0, \< 3.1.7

## References

- <https://github.com/MessagePack-CSharp/MessagePack-CSharp/security/advisories/GHSA-2x83-8g95-xh59>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-48511>
- <https://github.com/MessagePack-CSharp/MessagePack-CSharp>

---

Data as of 2026-12-05T04:55:12.439Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
