MessagePack-CSharp: Unity unsafe blit formatter allocates from unbounded byte length (CVE-2026-48514)
MessagePack-CSharp's UnsafeBlitFormatterBase<T>.Deserialize method in Unity blit resolvers improperly allocates memory based on an attacker-controlled byte length without validating it against the actual payload size. This can lead to excessive memory allocation and potential out-of-memory exceptions or process termination on memory-constrained platforms when deserializing untrusted data. The vulnerability affects the MessagePack.UnityClient package and specific resolvers prior to patched versions. The issue is mitigated by upgrading to patched versions or avoiding use of vulnerable resolvers with untrusted input.
AI Analysis
Technical Summary
The vulnerability in MessagePack-CSharp affects the UnsafeBlitFormatterBase<T>.Deserialize method used by Unity blit resolvers such as UnityBlitResolver and UnityBlitWithPrimitiveArrayResolver. It occurs because the method reads a byteLength value from an extension payload and allocates an array of that size before validating that the byteLength is within the bounds of the actual extension payload. This allows an attacker to specify a large byteLength in a small payload, causing excessive memory allocation. The vulnerability impacts applications that deserialize untrusted payloads using these resolvers, particularly Unity multiplayer clients or servers using MessagePack-CSharp for networked data like vectors or arrays. Fixes are planned to validate byteLength before allocation, rejecting invalid or oversized lengths. Until patched versions are released, users are advised to avoid using vulnerable resolvers on untrusted data or to apply explicit validation and size limits before deserialization.
Potential Impact
An attacker can cause an application using vulnerable Unity blit resolvers to allocate large amounts of memory based on attacker-controlled input, potentially leading to out-of-memory exceptions or process termination, especially on memory-constrained platforms. This impacts the stability and availability of applications deserializing untrusted data with these resolvers.
Mitigation Recommendations
Patching is recommended once the coordinated patched versions of MessagePack.UnityClient and companion packages are released. The fix will validate the byteLength before allocation to prevent excessive memory allocation. Until patches are available, do not use Unity blit resolvers (UnityBlitResolver or UnityBlitWithPrimitiveArrayResolver) on data received from untrusted peers. Instead, use safer resolvers or explicitly validate and size-limit messages before deserialization.
MessagePack-CSharp: Unity unsafe blit formatter allocates from unbounded byte length (CVE-2026-48514)
Description
MessagePack-CSharp's UnsafeBlitFormatterBase<T>.Deserialize method in Unity blit resolvers improperly allocates memory based on an attacker-controlled byte length without validating it against the actual payload size. This can lead to excessive memory allocation and potential out-of-memory exceptions or process termination on memory-constrained platforms when deserializing untrusted data. The vulnerability affects the MessagePack.UnityClient package and specific resolvers prior to patched versions. The issue is mitigated by upgrading to patched versions or avoiding use of vulnerable resolvers with untrusted input.
CVSS v4.0
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in MessagePack-CSharp affects the UnsafeBlitFormatterBase<T>.Deserialize method used by Unity blit resolvers such as UnityBlitResolver and UnityBlitWithPrimitiveArrayResolver. It occurs because the method reads a byteLength value from an extension payload and allocates an array of that size before validating that the byteLength is within the bounds of the actual extension payload. This allows an attacker to specify a large byteLength in a small payload, causing excessive memory allocation. The vulnerability impacts applications that deserialize untrusted payloads using these resolvers, particularly Unity multiplayer clients or servers using MessagePack-CSharp for networked data like vectors or arrays. Fixes are planned to validate byteLength before allocation, rejecting invalid or oversized lengths. Until patched versions are released, users are advised to avoid using vulnerable resolvers on untrusted data or to apply explicit validation and size limits before deserialization.
Potential Impact
An attacker can cause an application using vulnerable Unity blit resolvers to allocate large amounts of memory based on attacker-controlled input, potentially leading to out-of-memory exceptions or process termination, especially on memory-constrained platforms. This impacts the stability and availability of applications deserializing untrusted data with these resolvers.
Mitigation Recommendations
Patching is recommended once the coordinated patched versions of MessagePack.UnityClient and companion packages are released. The fix will validate the byteLength before allocation to prevent excessive memory allocation. Until patches are available, do not use Unity blit resolvers (UnityBlitResolver or UnityBlitWithPrimitiveArrayResolver) on data received from untrusted peers. Instead, use safer resolvers or explicitly validate and size-limit messages before deserialization.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-w567-gjr2-hm5j
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-48514"]
- Ecosystems
- ["NuGet"]
- Database Specific Severity
- MODERATE
- Cvss Version
- 4.0
Threat ID: 6a3ef7f427e9c79719036f9b
Added to database: 06/26/2026, 22:06:44 UTC
Last enriched: 06/26/2026, 22:53:12 UTC
Last updated: 07/31/2026, 19:22:59 UTC
Views: 89
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.