CVE-2026-48502
Published:June 22, 2026
Updated:June 26, 2026
MessagePack for C# is a MessagePack serializer for C#. Prior to 2.5.301 and 3.1.7, MessagePackReader.ReadDateTime() can allocate stack memory based on an attacker-controlled MessagePack extension length. In the slow path for timestamp extension parsing, the computed tokenSize includes the extension body length from the wire and is used in a stackalloc operation before the extension length is validated as one of the valid timestamp sizes. A very small payload can claim a large timestamp extension body and cause a stack allocation large enough to trigger an uncatchable StackOverflowException, terminating the host process. This vulnerability is fixed in 2.5.301 and 3.1.7.
Affected Packages
MessagePack (DOT_NET):
Affected version(s) >=3.0.3.6 <3.1.7Fix Suggestion:
Update to version 3.1.7messagepack (NUGET):
Affected version(s) >=3.0.3 <3.1.7Fix Suggestion:
Update to version 3.1.7Related Resources (1)
Do you need more information?
Contact UsCVSS v4
Base Score:
8.2
Attack Vector
NETWORK
Attack Complexity
HIGH
Attack Requirements
PRESENT
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
NONE
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
5.9
Attack Vector
NETWORK
Attack Complexity
HIGH
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Weakness Type (CWE)
Uncontrolled Recursion
Integer Overflow or Wraparound
Inefficient Algorithmic Complexity
Memory Allocation with Excessive Size Value
Out-of-bounds Read
Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')
Improper Handling of Highly Compressed Data (Data Amplification)
Deserialization of Untrusted Data
Initialization of a Resource with an Insecure Default
EPSS
Base Score:
0.26