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

- Severity: Medium 6.3 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 15% of CVEs (2026-12-01)
- Published: 2026-06-22T21:14:54.127Z
- Modified: 2026-06-25T19:56:40.725Z
- Also known as: GHSA-2x83-8g95-xh59
- Weaknesses: CWE-407
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- MessagePack-CSharp MessagePack-CSharp: >= 3.0, < 3.1.7; < 2.5.301
- MessagePack (NuGet): before 2.5.301; from 3.0 before 3.1.7
- messagepack messagepack: before 2.5.301; from 3.0.3 before 3.1.7

## Every score

- GitHub_M: CVSS:4.0 6.3 Medium `CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N`
- GitHub: CVSS:3.1 7.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/MessagePack-CSharp/MessagePack-CSharp/security/advisories/GHSA-2x83-8g95-xh59> (mitigation, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-48511> (advisory)
- <https://github.com/MessagePack-CSharp/MessagePack-CSharp> (package)

## Sources

- CVE List: [CVE-2026-48511](https://www.cve.org/CVERecord?id=CVE-2026-48511), CVE Terms of Use, modified 2026-06-25
- GitHub Advisory Database: [GHSA-2x83-8g95-xh59](https://github.com/advisories/GHSA-2x83-8g95-xh59), CC-BY-4.0, modified 2026-06-25
- NVD: [CVE-2026-48511](https://nvd.nist.gov/vuln/detail/CVE-2026-48511), Public domain, modified 2026-06-25

---

Page: https://cve.day/CVE-2026-48511 · Whole record: https://cve.day/CVE-2026-48511.json · Rebuilt by cve.day 2026-11-25T22:59:25.422Z
