Advisory

RUSTSEC-2019-0035

Also known as: CVE-2020-25576, GHSA-mmc9-pwm7-qj5w

Summary

Unaligned memory access

Details

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.

Severity

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

Dates

Published
2019-04-19 12:00 UTC
Modified
2023-11-08 04:03 UTC

Affected packages and fixes

rand_core

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.3.1, introduced 0.4.0-0, fixed 0.4.2 (semver)

Fixed versions

0.3.1, 0.4.2

Fix

  • Fixed version 0.3.1
    cargo update -p rand_core --precise 0.3.1
  • Fixed version 0.4.2
    cargo update -p rand_core --precise 0.4.2

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