CVE catalog

CVE-2020-25576

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.

[CVE catalog]

Severity
Critical · CVSS 9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Published
Updated
Source
[NVD] · [CVE record]
EPSS
1.60% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianrust-rand-coresid0.10.1-1fixed
Debianrust-rand-coreforky0.10.1-1fixed
Debianrust-rand-coretrixie0.6.4-2fixed
Debianrust-rand-corebookworm0.6.3-2fixed
CperandNot reported0.4.2fixed
Ubunturust-rand-core-0.220.040.2.2-1vulnerable
Ubunturust-rand-core-0.220.040.2.2-2vulnerable
Ubunturust-rand-core-0.320.040.3.0-1vulnerable
Ubunturust-rand-core-0.320.040.3.0-2vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianrust-rand-coresourcesid0.5.0-1lowNot reported[969911]
Debianrust-rand-coresourceforky0.5.0-1lowNot reported[969911]
Debianrust-rand-coresourcetrixie0.5.0-1lowNot reported[969911]
Debianrust-rand-coresourcebookworm0.5.0-1lowNot reported[969911]
CperandcpeNot reported0.4.2Not reportedNVD-CVE-2020-25576Not reported

[Debian bug #969911]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Source package: [rust-rand-core]

    Details (2)
    • 0.6.3-2 · amd64 · bookworm

      Fixed · Fixed: 0.5.0-1

      nvd · rust-rand-core · debian · bookworm; nvd · rust-rand-core · debian · 12

    • 0.6.3-2 · arm64 · bookworm

      Fixed · Fixed: 0.5.0-1

      nvd · rust-rand-core · debian · bookworm; nvd · rust-rand-core · debian · 12

  • Source package: [rust-rand-core]

    Details (2)
    • 0.6.3-2 · amd64 · bookworm

      Fixed · Fixed: 0.5.0-1

      nvd · rust-rand-core · debian · bookworm; nvd · rust-rand-core · debian · 12

    • 0.6.3-2 · arm64 · bookworm

      Fixed · Fixed: 0.5.0-1

      nvd · rust-rand-core · debian · bookworm; nvd · rust-rand-core · debian · 12

  • Source package: [rust-rand-core]

    Details (2)
    • 0.6.3-2 · amd64 · bookworm

      Fixed · Fixed: 0.5.0-1

      nvd · rust-rand-core · debian · bookworm; nvd · rust-rand-core · debian · 12

    • 0.6.3-2 · arm64 · bookworm

      Fixed · Fixed: 0.5.0-1

      nvd · rust-rand-core · debian · bookworm; nvd · rust-rand-core · debian · 12

  • Source package: [rust-rand-core]

    Details (2)
    • 0.6.3-2 · amd64 · bookworm

      Fixed · Fixed: 0.5.0-1

      nvd · rust-rand-core · debian · bookworm; nvd · rust-rand-core · debian · 12

    • 0.6.3-2 · arm64 · bookworm

      Fixed · Fixed: 0.5.0-1

      nvd · rust-rand-core · debian · bookworm; nvd · rust-rand-core · debian · 12

[Debian 13 (Trixie)]

  • Source package: [rust-rand-core]

    Details (2)
    • 0.6.4-2 · amd64 · trixie

      Fixed · Fixed: 0.5.0-1

      nvd · rust-rand-core · debian · 13

    • 0.6.4-2 · arm64 · trixie

      Fixed · Fixed: 0.5.0-1

      nvd · rust-rand-core · debian · 13

  • Source package: [rust-rand-core]

    Details (2)
    • 0.6.4-2 · amd64 · trixie

      Fixed · Fixed: 0.5.0-1

      nvd · rust-rand-core · debian · 13

    • 0.6.4-2 · arm64 · trixie

      Fixed · Fixed: 0.5.0-1

      nvd · rust-rand-core · debian · 13

  • Source package: [rust-rand-core]

    Details (2)
    • 0.6.4-2 · amd64 · trixie

      Fixed · Fixed: 0.5.0-1

      nvd · rust-rand-core · debian · 13

    • 0.6.4-2 · arm64 · trixie

      Fixed · Fixed: 0.5.0-1

      nvd · rust-rand-core · debian · 13

  • Source package: [rust-rand-core]

    Details (2)
    • 0.6.4-2 · amd64 · trixie

      Fixed · Fixed: 0.5.0-1

      nvd · rust-rand-core · debian · 13

    • 0.6.4-2 · arm64 · trixie

      Fixed · Fixed: 0.5.0-1

      nvd · rust-rand-core · debian · 13

Observed:

References