Advisory Database
  • Advisories
  • Dependency Scanning
  1. nuget
  2. ›
  3. MessagePack
  4. ›
  5. CVE-2026-48502

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

June 25, 2026

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.

References

  • github.com/MessagePack-CSharp/MessagePack-CSharp/security/advisories/GHSA-382j-8mxh-c7x2
  • github.com/advisories/GHSA-382j-8mxh-c7x2
  • nvd.nist.gov/vuln/detail/CVE-2026-48502

Code Behaviors & Features

Detect and mitigate CVE-2026-48502 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 3.0.0 before 3.1.7

Fixed versions

  • 3.1.7

Solution

Upgrade to version 3.1.7 or above.

Impact 5.9 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-1188: Initialization of a Resource with an Insecure Default
  • CWE-125: Out-of-bounds Read
  • CWE-190: Integer Overflow or Wraparound
  • CWE-407: Inefficient Algorithmic Complexity
  • CWE-409: Improper Handling of Highly Compressed Data (Data Amplification)
  • CWE-470: Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')
  • CWE-502: Deserialization of Untrusted Data
  • CWE-674: Uncontrolled Recursion
  • CWE-789: Memory Allocation with Excessive Size Value

Source file

nuget/MessagePack/CVE-2026-48502.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:52 +0000.