Skip to content

CVE-2026-48502 MessagePack-CSharp: Denial of service vulnerabilities can swamp the CPU or crash the process with stack and heap overflows

HighCVSS 8.2 EPSS 0.44%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial

Description

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.

Upgrade path

3 packages: 2 fixed.

PackageAffectedFixed inStatus
messagepack < 2.5.301; >= 3.0.3, < 3.1.7 2.5.301, 3.1.7 Fixed
nuget MessagePack(NuGet) = 3.0.3; = 3.0.54-alpha; = 3.0.111-alpha; = 3.0.129-beta +12 more 3.1.7 Fixed
MessagePack-CSharp = < 2.5.301; = >= 3.1.7, < 3.1.7 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
MessagePack-CSharp = >= 3.1.7, < 3.1.7 No fix listed
MessagePack-CSharp = < 2.5.301 No fix listed
nuget MessagePack(NuGet) >= 3.0, < 3.1.7 3.1.7
nuget MessagePack(NuGet) = 3.0.111-alpha No fix listed
nuget MessagePack(NuGet) = 3.0.129-beta No fix listed
nuget MessagePack(NuGet) = 3.0.134-beta No fix listed
nuget MessagePack(NuGet) = 3.0.208-rc-0001 No fix listed
nuget MessagePack(NuGet) = 3.0.3 No fix listed
nuget MessagePack(NuGet) = 3.0.300 No fix listed
nuget MessagePack(NuGet) = 3.0.308 No fix listed
nuget MessagePack(NuGet) = 3.0.54-alpha No fix listed
nuget MessagePack(NuGet) = 3.1.0 No fix listed
nuget MessagePack(NuGet) = 3.1.1 No fix listed
nuget MessagePack(NuGet) = 3.1.2 No fix listed
nuget MessagePack(NuGet) = 3.1.3 No fix listed
nuget MessagePack(NuGet) = 3.1.4 No fix listed
nuget MessagePack(NuGet) = 3.1.5 No fix listed
nuget MessagePack(NuGet) = 3.1.6 No fix listed
messagepack < 2.5.301 2.5.301
messagepack >= 3.0.3, < 3.1.7 3.1.7

References