Live threats

All CVEs / Nanorand Project

CVE-2021-45705Nanorand Project Nanorand

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
1.2%
probability of exploitation in 30 days · percentile 69
Auth required
No
Published
Dec 27, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

An issue was discovered in the nanorand crate before 0.6.1 for Rust. There can be multiple mutable references to the same object because the TlsWyRand Deref implementation dereferences a raw pointer.

Original NVD text.

What to do

  1. Apply the vendor's security update for Nanorand.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
crates.io nanorand ≥ 0.5.0 < 0.6.1 0.6.1 cargo update -p nanorand --precise 0.6.1
crates.io nanorand ≥ 0.5.0 < 0.6.1 0.6.1 cargo update -p nanorand --precise 0.6.1
crates.io nanorand ≥ 0.5.0 < 0.6.1 0.6.1 cargo update -p nanorand --precise 0.6.1

Per OSV / GitHub Advisories (GHSA-p6gj-gpc8-f8xw, GHSA-r57r-j98g-587f, RUSTSEC-2021-0114). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
nanorand_projectnanorand≥ 0.5.0 < 0.6.1

Official sources

References

Links published by the sources. Open them with care.