All reports
Medium

Unchecked vector pre-allocation

Affected versions

Version ranges need review.

Rust / Cargormpv
Affected versions
< 0.4.2
Fixed version
0.4.2
Rust / Cargormpv
Affected versions
>=0.0.0-0 <0.4.2
Fixed version
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.

Links