Skip to content

Unchecked vector pre-allocation

Moderate severity GitHub Reviewed Published Aug 25, 2021 to the GitHub Advisory Database • Updated Jun 13, 2023

Package

cargo rmpv (Rust)

Affected versions

< 0.4.2

Patched versions

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.

References

Reviewed Aug 6, 2021
Published to the GitHub Advisory Database Aug 25, 2021
Last updated Jun 13, 2023

Severity

Moderate

Weaknesses

CVE ID

No known CVE

GHSA ID

GHSA-mcrf-7hf9-f6q5

Source code

Checking history
See something to contribute? Suggest improvements for this vulnerability.