Advisory

RUSTSEC-2020-0103

Also known as: CVE-2020-36210, GHSA-cgmg-2v6m-fjg7

Summary

impl Random on arrays can lead to dropping uninitialized memory

Details

Affected versions of this crate had a panic safety issue to drop partially uninitialized array of T upon panic in a user provided function T::random(). Dropping uninitialized T can potentially cause memory corruption or undefined behavior.

The flaw was corrected in commit 565d508 by using MaybeUninit<T> to avoid possible dropping of uninitialized memory upon panic.

Severity

High Basis: CVSS v3 score 7.8, vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Dates

Published
2020-12-31 12:00 UTC
Modified
2023-11-08 04:03 UTC

Affected packages and fixes

autorand

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.2.3 (semver)

Fixed versions

0.2.3

Fix

  • Fixed version 0.2.3
    cargo update -p autorand --precise 0.2.3

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