Advisory

RUSTSEC-2017-0006

Also known as: GHSA-mcrf-7hf9-f6q5

Summary

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.

Severity

Not rated by the source.

Dates

Published
2017-11-21 12:00 UTC
Modified
2023-11-08 04:21 UTC

Affected packages and fixes

rmpv

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.4.2 (semver)

Fixed versions

0.4.2

Fix

  • Fixed version 0.4.2
    cargo update -p rmpv --precise 0.4.2

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences