CVE-2021-45705
highpriority · track · 39EPSS 0.012 · 69 %ileEUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · high–critical · 7.5–9.8
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (3)
Products and version ranges known to be affected.
advisories (3)
Vendor and ecosystem advisories describing this.
- GHSA-p6gj-gpc8-f8xwAliased mutable references from `tls_rand` & `TlsWyRand`2022-06-17ghsa · osvUS
`TlsWyRand`'s implementation of `Deref` unconditionally dereferences a raw pointer, and returns multiple mutable references to the same object, which is undefined behavior.
- GHSA-r57r-j98g-587fPointer dereference in nanorand2022-01-06ghsa · osvUS
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.
- RUSTSEC-2021-0114Aliased mutable references from `tls_rand` & `TlsWyRand`2021-09-23vendor · osvUS
`TlsWyRand`'s implementation of `Deref` unconditionally dereferences a raw pointer, and returns multiple mutable references to the same object, which is undefined behavior.
also known as (6)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (6)
External citations — patches, advisories, analysis.
- https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/nanorand/RUSTSEC-2021-0114.mdcnnvd
- https://rustsec.org/advisories/RUSTSEC-2021-0114.htmlcnnvd
- https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/nanorand/RUSTSEC-2021-0114.mdenisa_euvd
- https://rustsec.org/advisories/RUSTSEC-2021-0114.htmlenisa_euvd
- https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/nanorand/RUSTSEC-2021-0114.mdThird Party Advisorynvd
- https://rustsec.org/advisories/RUSTSEC-2021-0114.htmlThird Party Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan