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

- Severity: Medium (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2017-11-21T12:00:00.000Z
- Modified: 2023-11-08T04:21:02.280Z
- Also known as: RUSTSEC-2017-0006
- Weaknesses: CWE-400

## Description

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.

(As written by GitHub Advisory Database.)

## Affected

- rmpv (crates.io): before 0.4.2; from 0.0.0-0 before 0.4.2

## References

- <https://github.com/3Hren/msgpack-rust/issues/151> (report, web)
- <https://github.com/3Hren/msgpack-rust> (package)
- <https://rustsec.org/advisories/RUSTSEC-2017-0006.html> (advisory, web)
- <https://crates.io/crates/rmpv> (package)

## Sources

- GitHub Advisory Database: [GHSA-mcrf-7hf9-f6q5](https://github.com/advisories/GHSA-mcrf-7hf9-f6q5), CC-BY-4.0, modified 2023-11-08
- RustSec Advisory Database: [RUSTSEC-2017-0006](https://rustsec.org/advisories/RUSTSEC-2017-0006.html), CC0-1.0, modified 2023-11-08

---

Page: https://cve.day/GHSA-mcrf-7hf9-f6q5 · Whole record: https://cve.day/GHSA-mcrf-7hf9-f6q5.json · Rebuilt by cve.day 2026-11-25T22:56:42.915Z
