Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. rmpv
  4. ›
  5. GHSA-mcrf-7hf9-f6q5

GHSA-mcrf-7hf9-f6q5: Unchecked vector pre-allocation

August 25, 2021 (updated June 13, 2023)

Affected versions of this crate pre-allocate memory on deserializing raw buffers without checking whether there is sufficient data available. This allows an attacker to do denial-of-service attacks by sending small msgpack messages that allocate gigabytes of memory.

References

  • github.com/3Hren/msgpack-rust
  • github.com/3Hren/msgpack-rust/issues/151
  • github.com/advisories/GHSA-mcrf-7hf9-f6q5
  • rustsec.org/advisories/RUSTSEC-2017-0006.html

Code Behaviors & Features

Detect and mitigate GHSA-mcrf-7hf9-f6q5 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 0.4.2

Fixed versions

  • 0.4.2

Solution

Upgrade to version 0.4.2 or above.

Weakness

  • CWE-400: Uncontrolled Resource Consumption

Source file

cargo/rmpv/GHSA-mcrf-7hf9-f6q5.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 14 May 2025 12:15:23 +0000.