{"id":"CVE-2026-48515","published":"2026-06-22T21:10:39Z","modified":"2026-06-25T15:51:25Z","title":"MessagePack-CSharp: Multi-dimensional array formatters allocate from unchecked dimensions","vendor":"MessagePack-CSharp","product":"MessagePack-CSharp","tier":"tail","description":{"text":"MessagePack for C# is a MessagePack serializer for C#. Prior to 2.5.301 and 3.1.7, MessagePack-CSharp's multi-dimensional array formatters read dimension lengths directly from the payload and allocate T[,], T[,,], or T[,,,] before validating that the dimension product matches the encoded element count. The formatter reads a guarded element array header, but allocation of the target multi-dimensional array happens before the dimensions are checked against that element count. A small payload can therefore declare large dimensions, provide an empty or tiny inner array, and cause a large heap allocation before element data is validated. This vulnerability is fixed in 2.5.301 and 3.1.7.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00405,"percentile":0.35634,"provenance":"source"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"references":[{"url":"https://github.com/MessagePack-CSharp/MessagePack-CSharp/security/advisories/GHSA-cxmj-83gh-fp49","tags":["x_refsource_CONFIRM"]}],"priority":{"score":11.5,"factors":[{"name":"EPSS percentile","points":7.13},{"name":"CVSS severity","points":4.41}]},"vendorSlug":"messagepack-csharp","affectedVersions":[{"vendor":"MessagePack-CSharp","product":"MessagePack-CSharp","versions":[">= 3.0, < 3.1.7","< 2.5.301"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-06-23T12:52:33.325154Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"NuGet","package":"MessagePack","vulnerableRanges":["<2.5.301",">=3.0, <3.1.7"],"patched":["2.5.301","3.1.7"],"from":["GHSA-cxmj-83gh-fp49"],"provenance":"source"}],"summary":{"text":"MessagePack-CSharp, the MessagePack serializer for C#, has a flaw in its multi-dimensional array formatters (T[,], T[,,], T[,,,]) that read dimension lengths from the payload and allocate the target array before checking those dimensions against the encoded element count. An attacker who can supply a crafted serialized payload to an application using the affected versions, with no authentication and no user interaction needed, can send a small message declaring very large dimensions that forces a large heap allocation, causing resource exhaustion (denial of service).","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:56:03Z"},"euvd":{"id":"EUVD-2026-38381","exploited":false,"provenance":"source"}}