# CVE-2021-45705: Aliased mutable references from `tls_rand` & `TlsWyRand`

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.23%, higher than 69% of CVEs (2026-12-02)
- Published: 2021-09-23T12:00:00.000Z
- Modified: 2026-06-17T04:13:59.147Z
- Also known as: GHSA-p6gj-gpc8-f8xw, GHSA-r57r-j98g-587f, RUSTSEC-2021-0114
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- nanorand (crates.io): from 0.5.0 before 0.6.1
- nanorand_project nanorand: from 0.5.0 before 0.6.1

## Every score

- GitHub: rating Medium
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://rustsec.org/advisories/RUSTSEC-2021-0114.html> (advisory, third-party-advisory, web)
- <https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/nanorand/RUSTSEC-2021-0114.md> (third-party-advisory, web)
- <https://github.com/Absolucy/nanorand-rs/issues/28> (report, web)
- <https://github.com/Absolucy/nanorand-rs> (package)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-45705> (advisory)
- <https://crates.io/crates/nanorand> (package)

## Sources

- CVE List: [CVE-2021-45705](https://www.cve.org/CVERecord?id=CVE-2021-45705), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-p6gj-gpc8-f8xw](https://github.com/advisories/GHSA-p6gj-gpc8-f8xw), CC-BY-4.0, modified 2023-11-08
- GitHub Advisory Database: [GHSA-r57r-j98g-587f](https://github.com/advisories/GHSA-r57r-j98g-587f), CC-BY-4.0, modified 2023-11-08
- RustSec Advisory Database: [RUSTSEC-2021-0114](https://rustsec.org/advisories/RUSTSEC-2021-0114.html), CC0-1.0, modified 2023-11-08
- NVD: [CVE-2021-45705](https://nvd.nist.gov/vuln/detail/CVE-2021-45705), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-45705 · Whole record: https://cve.day/CVE-2021-45705.json · Rebuilt by cve.day 2026-11-25T22:58:06.270Z
