CVE-2026-48511 Details
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.
A performance vulnerability has been identified in MessagePack for C# versions prior to 2.5.301 and 3.1.7. The issue arises in the ExpandoObjectFormatter.Deserialize method, which populates System.Dynamic.ExpandoObject by adding each map entry through the IDictionary<string, object>.Add method. This process can cause significant performance degradation when handling large, attacker-controlled maps, leading to quadratic CPU usage and memory allocation. The vulnerability is particularly concerning because it occurs even when the ExpandoObjectResolver.Options is set to MessagePackSecurity.UntrustedData, as the internal handling of ExpandoObject cannot benefit from collision-resistant dictionary comparers.
Users are advised to upgrade MessagePack to version 2.5.301 or 3.1.7. Additionally, avoid deserializing untrusted data into ExpandoObject. Instead, use strongly typed data transfer objects or dictionaries with security-aware comparers and explicit entry limits. It is also recommended to enforce request size and map entry limits at the application or transport layer.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jun 23, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/MessagePack-CSharp/MessagePack-CSharp/security/advisories/GHSA-2x83-8g95-xh59 | [email protected] | MitigationVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-407 | Inefficient Algorithmic Complexity | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| messagepack messagepack | < 2.5.301 >= 3.0.3, < 3.1.7 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 25, 2026 | CVE Modified | [email protected] |
| Jun 23, 2026 | Initial Analysis | [email protected] |
| Jun 23, 2026 | CVE Modified | CISA-ADP |
| Jun 22, 2026 | New CVE Received | [email protected] |