Skip to content
Heist/ feed
Medium

MessagePack: Nested arrays can blow past buffer length limits

Type: advisorySource: Official CVE List1 source record

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.

Announced Source revision 1
Original source ↗

CVE-2026-92707

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-92707

MessagePack-CSharp

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "vendor": "MessagePack-CSharp",
    "product": "MessagePack-CSharp",
    "versions": [
      {
        "status": "affected",
        "version": "< 2.5.303"
      },
      {
        "status": "affected",
        "version": ">= 3.0.0, < 3.1.9"
      }
    ]
  }
]
Related CVEs
CVE-2026-92707

Source reference: /cveMetadata/cveId

Publisher severity

medium

Source reference: /containers/cna/metrics

Event
#30167 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement