Skip to content
OpenAdvisories
Medium GHSA-mcrf-7hf9-f6q5 RUSTSEC-2017-0006

Unchecked vector pre-allocation

Published Aug 25, 2021 · Updated Nov 8, 2023 · Assigned by GHSA

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.

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io rmpv < 0.4.2 0.4.2 GHSA-mcrf-7hf9-f6q5
crates.io rmpv >= 0.0.0-0, < 0.4.2 0.4.2 RUSTSEC-2017-0006

References