Skip to content
NewA calmer, faster ZeroHour

CVE-2026-92707

Memory-exhaustion DoS in MessagePack for C#

CVSS 3.1
5.3 medium
EPSS
—
Published
·
Modified
Analyze CVE-2026-92707 with Vani AIImpact, affected versions, exploitation status, mitigations and detection

MessagePack for C# before 2.5.303 and 3.1.9 can be driven into excessive memory use when PrimitiveObjectFormatter deserializes attacker-controlled MessagePack as System.Object. The formatter allocates an object array from each declared array length before the object-graph depth limit rejects the input, and nested array headers can reuse the same unread trailing bytes so a small payload keeps many large arrays alive at once. Repeated submissions can exhaust the managed heap, force heavy garbage collection, terminate the process, or deny service; there is no confidentiality or integrity impact. Only applications that deserialize untrusted MessagePack on this path are affected, such as a reachable ASP.NET Core SignalR hub method with an object parameter and AddMessagePackProtocol() enabled. There is no known public proof of concept and the issue is not listed in CISA KEV; fixes are in 2.5.303 and 3.1.9.

What to do: Upgrade MessagePack for C# to 2.5.303 or 3.1.9 (or later on that line). Until then, do not deserialize untrusted MessagePack as System.Object through PrimitiveObjectFormatter; review ASP.NET Core SignalR hubs that use AddMessagePackProtocol() with object parameters, and limit message size and request rate on any endpoint that accepts attacker-controlled MessagePack.

ProductAffected
MessagePack-CSharp MessagePack for C#prior to 2.5.303 and prior to 3.1.9
Estimated exposure
No basis for an estimate.

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description · NVD

MessagePack for C# is a MessagePack serializer for C#. Prior to 2.5.303 and 3.1.9, deserializing attacker-controlled MessagePack data as System.Object through PrimitiveObjectFormatter can cause excessive memory allocation. The formatter allocates an object[] from each declared array length before the configured object-graph depth limit rejects the input, while nested array headers can reuse the same trailing unread bytes to satisfy per-header length validation. A comparatively small payload can therefore keep many large arrays alive at once. When an attacker can submit such data repeatedly, the allocations can cause severe managed-heap pressure, excessive garbage collection, process termination, or loss of service. Exposure requires an application to deserialize untrusted data through the affected formatter path and permit repeated attacker-controlled submissions, such as a reachable ASP.NET Core SignalR hub method with an object parameter and AddMessagePackProtocol() enabled. This issue is fixed in versions 2.5.303 and 3.1.9.

Ecosystems
nuget
Weakness
CWE-1325
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
GHSA
GHSA-qhrr-8q5h-9q3h (medium)

In the news

3 stories