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

CVE-2020-5234: Untrusted data can lead to DoS attack due to hash collisions and stack overflow in MessagePack

January 31, 2020 (updated October 16, 2024)

When this library is used to deserialize messagepack data from an untrusted source, there is a risk of a denial of service attack by either of two vectors:

  1. hash collisions - leading to large CPU consumption disproportionate to the size of the data being deserialized.
  2. stack overflow - leading to the deserializing process crashing.

References

  • github.com/MessagePack-CSharp/MessagePack-CSharp
  • github.com/MessagePack-CSharp/MessagePack-CSharp/security/advisories/GHSA-7q36-4xx7-xcxf
  • github.com/advisories/GHSA-7q36-4xx7-xcxf
  • github.com/aspnet/Announcements/issues/405
  • github.com/neuecc/MessagePack-CSharp/commit/56fa86219d01d0a183babbbbcb34abbdea588a02
  • github.com/neuecc/MessagePack-CSharp/commit/f88684078698386df02204f13faeff098a61f007
  • github.com/neuecc/MessagePack-CSharp/issues/810
  • github.com/neuecc/MessagePack-CSharp/security/advisories/GHSA-7q36-4xx7-xcxf
  • nvd.nist.gov/vuln/detail/CVE-2020-5234

Code Behaviors & Features

Detect and mitigate CVE-2020-5234 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 1.9.11, all versions starting from 2.0.0 before 2.1.90

Fixed versions

  • 1.9.11
  • 2.1.90

Solution

Upgrade to versions 1.9.11, 2.1.90 or above.

Impact 6.5 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-121: Stack-based Buffer Overflow

Source file

nuget/MessagePack/CVE-2020-5234.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 14 May 2025 12:16:10 +0000.