HistoryEditJSON (OSV)

RUSTSEC-2019-0035

Unaligned memory access

Reported
Issued
Package
rand_core (crates.io)
Type
INFO Unsound
Aliases
References
CVSS Score
9.8 CRITICAL
CVSS Details
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality Impact
High
Integrity Impact
High
Availability Impact
High
CVSS Vector
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.

Advisory available under CC0-1.0 license.