CVE-2026-48514 Details
Description
MessagePack for C# is a MessagePack serializer for C#. Prior to 2.5.301 and 3.1.7, UnsafeBlitFormatterBase<T>.Deserialize reads an attacker-controlled byteLength from an extension payload and allocates an array based on that value before validating it against the extension header length or remaining payload bytes. The outer extension header is bounded by available input, but that bound is not used to constrain the inner byteLength before allocation. A very small payload can therefore request a very large T[] allocation. This vulnerability is fixed in 2.5.301 and 3.1.7.
A vulnerability exists in MessagePack for C# versions prior to 2.5.301 and 3.1.7, within the 'UnsafeBlitFormatterBase<T>.Deserialize' method. This issue arises because the deserialization process reads an attacker-controlled byte length from an extension payload and allocates an array based on that value, without first validating it against the extension header length or the remaining payload bytes. While the outer extension header is limited by available input, this constraint does not apply to the inner byte length, allowing a small payload to request a disproportionately large array allocation. The vulnerability is particularly concerning in Unity applications that use MessagePack-CSharp for networked data, as it can lead to out-of-memory exceptions or process termination on memory-constrained platforms.
Users are advised to upgrade to MessagePack for C# versions 2.5.301 or 3.1.7. For Unity projects, upgrade the 'MessagePack.UnityClient' package to the patched version and coordinate with other MessagePack packages in the same dependency graph. Until the patch is applied, avoid using Unity blit resolvers on data from untrusted peers.
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-w567-gjr2-hm5j | [email protected] | MitigationVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-770 | Allocation of Resources Without Limits or Throttling | [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] |