Unratedcrates.ioPublished
Unchecked vector pre-allocation
GHSA-mcrf-7hf9-f6q5
- Affected
- crates.io rmpv < 0.4.2
- Fixed in
- 0.4.2· Vendor fix available
- Issue
- 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.
Recommended action: Upgrade to 0.4.2 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.