RUSTSEC-2019-0035

Unaligned memory access

Issued
Package
rand_core (crates.io)
Type
Unsound
Aliases
Details
https://github.com/rust-random/rand/blob/master/rand_core/CHANGELOG.md#050---2019-06-06
CVSS
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Patched
  • ^0.3.1
  • >=0.4.2
Affected Functions
Version
rand_core::BlockRng::fill_bytes
  • <0.4.2
rand_core::BlockRng::next_u64
  • <0.4.2

Description

Affected versions of this crate violated alignment when casting byte slices to integer slices, resulting in undefined behavior.

The flaw was corrected by Ralf Jung and Diggory Hardy.

More