Vulnerabilities / CVE-2020-25576

critical

CVE-2020-25576

An issue was discovered in the rand_core crate before 0.4.2 for Rust. ...

Published Modified CWE 704
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GHSA9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by NVD, GHSA, Azure Linux. Rated lower by Ubuntu (medium).

Description

An issue was discovered in the rand_core crate before 0.4.2 for Rust. Casting of byte slices to integer slices mishandles alignment constraints.

Affected packages and fixed versions

SourcePackageFixed in
Azure Linux 3.0kata-containers0:3.2.0.azl2-3.azl3
cargo::GitHub Security Advisory Rustrand_core0.4.2, 0.3.1
debian 10rust-rand-core, rust-rand-core-0.2no fix listed
debian 11rust-rand-core0.5.0-1
debian 12rust-rand-core0.5.0-1
debian 13rust-rand-core0.5.0-1
debian 14rust-rand-core0.5.0-1
echorust-rand-core0.5.0-1
ubuntu 20.04-ESMrust-rand-core-0.2, rust-rand-core-0.3no fix listed
Show all 11 entries from 9 sources
SourcePackageFixed in
Azure Linux 3.0kata-containers0:3.2.0.azl2-3.azl3
cargo::GitHub Security Advisory Rustrand_core0.4.2, 0.3.1
debian 10rust-rand-coreno fix listed
debian 10rust-rand-core-0.2no fix listed
debian 11rust-rand-core0.5.0-1
debian 12rust-rand-core0.5.0-1
debian 13rust-rand-core0.5.0-1
debian 14rust-rand-core0.5.0-1
echorust-rand-core0.5.0-1
ubuntu 20.04-ESMrust-rand-core-0.2no fix listed
ubuntu 20.04-ESMrust-rand-core-0.3no fix listed

References

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.