OSV 1.4.0 · github-reviewed · 修改于 2026-06-26 05:25
发布时间
2026-06-26 05:25
GitHub 审查时间
2026-06-26 05:25
NVD 发布时间
2026-06-23 06:16
源文件
advisories/github-reviewed/2026/06/GHSA-w567-gjr2-hm5j/GHSA-w567-gjr2-hm5j.json
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.
Applications are affected when they deserialize untrusted payloads using Unity blit resolvers such as UnityBlitResolver or UnityBlitWithPrimitiveArrayResolver.
This is especially relevant to Unity multiplayer clients or servers that use MessagePack-CSharp for networked values such as vectors, matrices, or primitive arrays. A hostile peer can send an extension payload with a large declared byte length and cause an out-of-memory exception or process termination on memory-constrained platforms.
The resolver is opt-in, but the vulnerable value is pure wire input and the allocation happens before the formatter verifies that the declared bytes are actually present in the extension body.
MessagePack.UnityClientUnityBlitResolver, UnityBlitWithPrimitiveArrayResolverUnsafeBlitFormatterBase<T>.DeserializeMESSAGEPACKCSHARP-080, duplicate/open variant MESSAGEPACKCSHARP-OPEN-010Fixes are prepared and will be released in coordinated patch versions.
Upgrade guidance:
MessagePack.UnityClient to the patched version for your release line.The fix should validate byteLength before allocation. It should reject negative lengths, lengths greater than the extension body length after metadata, and lengths that are not a valid multiple of the element size.
Patching is recommended.
Until a patched version is available, do not use Unity blit resolvers on data received from untrusted peers. Use safer resolvers or explicitly validate and size-limit messages before deserialization.
MESSAGEPACKCSHARP-080: unsafe blit formatter allocation from unbounded byte lengthMESSAGEPACKCSHARP-OPEN-010: duplicate/open finding for the same root cause