GitHub Advisoryadvisory · crates.io
GHSA-mcrf-7hf9-f6q5 Unchecked vector pre-allocation
MEDIUM
Official page ↗
- Ecosystem
- crates.io
- Packages
- rmpv
- Severity
- Moderate
- Weaknesses
- CWE-400
- Reviewed
- 2021-08-06
Affected packages
• crates.io rmpv: < 0.4.2 → fixed in 0.4.2
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.
Related
Weakness · CWE (1)
- CWE-400 Uncontrolled Resource Consumption weakness