PT-2020-17582 · Rust · Autorand

Published

2020-12-31

·

Updated

2021-08-25

·

CVE-2020-36210

CVSS v3.1

7.8

High

VectorAV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions autorand crate versions prior to 0.2.3
Description An issue in the autorand crate for Rust can lead to memory corruption due to the dropping of uninitialized memory when a panic occurs. This happens because of the implementation of Random on arrays. The problem arises when a user-provided function, T::random(), panics and drops a partially uninitialized array of T, potentially causing memory corruption or undefined behavior.
Recommendations For versions prior to 0.2.3, update to version 0.2.3 or later to resolve the issue. As a temporary workaround, consider avoiding the use of the random() function in user-provided code until the update is applied.

Exploit

Fix

Use of Uninitialized Resource

Memory Corruption

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

Weakness Enumeration

Related Identifiers

CVE-2020-36210
GHSA-CGMG-2V6M-FJG7
RUSTSEC-2020-0103

Affected Products

Autorand