CVE-2021-45705Nanorand Project Nanorand
Critical 9.8 No auth needed
Follow: this CVE · Nanorand Project · Nanorand Project Nanorand We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Nanorand.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| nanorand_project | nanorand | ≥ 0.5.0 < 0.6.1 |
Official sources
References
Links published by the sources. Open them with care.
- raw.githubusercontent.com Third Party Advisory
- rustsec.org Third Party Advisory