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

CVE-2026-48513: MessagePack-CSharp: DynamicUnionResolver-generated deserializers miss depth enforcement

June 25, 2026

Runtime-generated union deserializers emitted by DynamicUnionResolver do not call MessagePackSecurity.DepthStep(ref reader) and do not decrement reader.Depth around recursive deserialization and skip paths.

This means union deserialization does not consistently participate in the maximum object graph depth enforcement that protects other recursive formatter paths. For unknown union keys, the emitted deserializer calls reader.Skip() on attacker-controlled data without an enclosing depth step.

References

  • github.com/MessagePack-CSharp/MessagePack-CSharp/security/advisories/GHSA-wfr3-xj75-pfwh
  • github.com/advisories/GHSA-wfr3-xj75-pfwh
  • nvd.nist.gov/vuln/detail/CVE-2026-48513

Code Behaviors & Features

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

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.5.301, all versions starting from 3.0.0 before 3.1.7

Fixed versions

  • 2.5.301
  • 3.1.7

Solution

Upgrade to versions 2.5.301, 3.1.7 or above.

Impact 3.7 LOW

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

Learn more about CVSS

Weakness

  • CWE-674: Uncontrolled Recursion

Source file

nuget/MessagePack/CVE-2026-48513.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sat, 27 Jun 2026 00:16:26 +0000.