CVE-2026-48514
Received Received - Intake
Heap Overflow in MessagePack for C#

Publication date: 2026-06-22

Last updated on: 2026-06-22

Assigner: GitHub, Inc.

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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-06-22
Last Modified
2026-06-22
Generated
2026-06-23
AI Q&A
2026-06-23
EPSS Evaluated
N/A
NVD
Affected Vendors & Products
Showing 2 associated CPEs
Vendor Product Version / Range
neuecc messagepack_for_csharp 2.5.301
neuecc messagepack_for_csharp 3.1.7
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-770 The product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated.
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

This vulnerability exists in MessagePack for C#, specifically in versions prior to 2.5.301 and 3.1.7. The issue is in the UnsafeBlitFormatterBase<T>.Deserialize method, which reads a byteLength value controlled by an attacker from an extension payload. It then allocates an array based on this byteLength without properly validating it against the extension header length or the remaining payload bytes.

Although the outer extension header is bounded by the available input, this bound is not used to constrain the inner byteLength before allocation. As a result, an attacker can send a very small payload that requests a very large array allocation, potentially causing resource exhaustion or other issues.

This vulnerability has been fixed in versions 2.5.301 and 3.1.7.

Impact Analysis

The vulnerability allows an attacker to control the size of an array allocation during deserialization, which can lead to excessive memory allocation.

This can cause denial of service (DoS) conditions by exhausting system memory or causing application crashes.

Mitigation Strategies

To mitigate this vulnerability, you should update MessagePack for C# to version 2.5.301 or later, or 3.1.7 or later, where the issue has been fixed.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-48514. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart