# CVE-2026-48502: MessagePack-CSharp: Denial of service vulnerabilities can swamp the CPU or crash the process with stack and heap overflows

- Severity: High 8.2 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 18% of CVEs (2026-12-01)
- Published: 2026-06-22T21:18:29.190Z
- Modified: 2026-06-25T18:56:39.155Z
- Also known as: GHSA-382j-8mxh-c7x2
- Weaknesses: CWE-125, CWE-190, CWE-407, CWE-409, CWE-470, CWE-502, CWE-674, CWE-789, CWE-1188
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- MessagePack-CSharp MessagePack-CSharp: >= 3.1.7, < 3.1.7; < 2.5.301
- MessagePack (NuGet): from 3.0 before 3.1.7
- messagepack messagepack: before 2.5.301; from 3.0.3 before 3.1.7

## Every score

- GitHub_M: CVSS:4.0 8.2 High `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`
- GitHub: CVSS:4.0 High `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`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/MessagePack-CSharp/MessagePack-CSharp/security/advisories/GHSA-382j-8mxh-c7x2> (mitigation, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-48502> (advisory)
- <https://github.com/MessagePack-CSharp/MessagePack-CSharp> (package)

## Sources

- CVE List: [CVE-2026-48502](https://www.cve.org/CVERecord?id=CVE-2026-48502), CVE Terms of Use, modified 2026-06-23
- GitHub Advisory Database: [GHSA-382j-8mxh-c7x2](https://github.com/advisories/GHSA-382j-8mxh-c7x2), CC-BY-4.0, modified 2026-06-25
- NVD: [CVE-2026-48502](https://nvd.nist.gov/vuln/detail/CVE-2026-48502), Public domain, modified 2026-06-23

---

Page: https://cve.day/CVE-2026-48502 · Whole record: https://cve.day/CVE-2026-48502.json · Rebuilt by cve.day 2026-11-25T22:59:25.420Z
