{"id":"CVE-2026-48502","published":"2026-06-22T21:18:29Z","modified":"2026-06-23T15:05:33Z","title":"MessagePack-CSharp: Denial of service vulnerabilities can swamp the CPU or crash the process with stack and heap…","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, 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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.2,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00437,"percentile":0.38892,"provenance":"source"},"cwes":[{"id":"CWE-125","name":"Out-of-bounds Read"},{"id":"CWE-190","name":"Integer Overflow or Wraparound"},{"id":"CWE-407","name":"Inefficient Algorithmic Complexity"},{"id":"CWE-409","name":"Improper Handling of Highly Compressed Data (Data Amplification)"},{"id":"CWE-470","name":"Use of Externally-Controlled Input to Select Classes or Code"},{"id":"CWE-502","name":"Deserialization of Untrusted Data"},{"id":"CWE-674","name":"Uncontrolled Recursion"},{"id":"CWE-789","name":"Memory Allocation with Excessive Size Value"},{"id":"CWE-1188","name":"Initialization of a Resource with an Insecure Default"}],"references":[{"url":"https://github.com/MessagePack-CSharp/MessagePack-CSharp/security/advisories/GHSA-382j-8mxh-c7x2","tags":["x_refsource_CONFIRM"]}],"priority":{"score":13.5,"factors":[{"name":"EPSS percentile","points":7.78},{"name":"CVSS severity","points":5.74}]},"vendorSlug":"messagepack-csharp","affectedVersions":[{"vendor":"MessagePack-CSharp","product":"MessagePack-CSharp","versions":[">= 3.1.7, < 3.1.7","< 2.5.301"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-06-23T14:58:22.893152Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"NuGet","package":"MessagePack","vulnerableRanges":[">=3.0, <3.1.7"],"patched":["3.1.7"],"from":["GHSA-382j-8mxh-c7x2"],"provenance":"source"}],"summary":{"text":"MessagePack-CSharp, the MessagePack serializer for C#, contains a flaw in MessagePackReader.ReadDateTime(), where the slow timestamp-extension parsing path uses an attacker-controlled extension length in a stack allocation before validating it. An attacker can send a very small payload that claims a large timestamp extension body, which triggers a stack allocation big enough to cause an uncatchable StackOverflowException and terminate the host process, with the attack requiring high attack complexity and only network access.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:39:49Z"},"euvd":{"id":"EUVD-2026-38389","exploited":false,"provenance":"source"}}