MessagePack for C# Vulnerability in Multi-Dimensional Array Formatters
CVE-2026-48515
6.3MEDIUM
What is CVE-2026-48515?
MessagePack for C# contains a vulnerability related to how multi-dimensional array formatters handle dimension lengths from the payload. The affected versions allocate large multi-dimensional arrays based on declared dimensions without first validating these dimensions against the actual encoded element count. This oversight can lead to excessive heap allocations when a small payload specifies large dimensions, potentially impacting application performance and security. The issue has been addressed in versions 2.5.301 and 3.1.7.
Affected Version(s)
MessagePack-CSharp >= 3.1.7, < 3.1.7 < 3.1.7, 3.1.7
MessagePack-CSharp < 2.5.301 < 2.5.301
