VDB
Sign up
MEDIUM

GHSA-mcrf-7hf9-f6q5

Unchecked vector pre-allocation

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

crates.io/rmpv
Introduced in: 0Fixed in: 0.4.2

Upgrade rmpv to 0.4.2 or newer (ecosystem crates.io).

References