PT-2021-24264 · Crates.Io · Messagepack-Rs

Published

2021-01-26

·

Updated

2022-06-17

·

CVE-2021-45690

CVSS v3.1

9.8

Critical

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions: messagepack-rs crate through 2021-01-26
Description: An issue in the messagepack-rs crate allows it to read from uninitialized memory locations during deserialization. This affects functions such as deserialize binary, deserialize string, deserialize extension others, and deserialize string primitive. When an uninitialized buffer is passed to a user-provided Read instance, it can lead to safe Read implementations reading from the uninitialized buffer, resulting in undefined behavior.
Recommendations: For the messagepack-rs crate through 2021-01-26, consider updating to a version released after 2021-01-26 to resolve the issue. As a temporary workaround, consider restricting the use of the affected deserialization functions until a patch is available. Avoid using the affected functions deserialize binary, deserialize string, deserialize extension others, and deserialize string primitive in the affected versions of the messagepack-rs crate until the issue is resolved.

Fix

Use of Uninitialized Resource

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2021-45690
GHSA-HR52-F9VP-582C
GHSA-JQJJ-R4QP-X2GH
GHSA-JWFH-J623-M97H
GHSA-M325-RXJV-PWPH
GHSA-VW5M-QW2R-M923
RUSTSEC-2021-0092

Affected Products

Messagepack-Rs