absolucy/nanorand-rs · Security
Pointer dereference in nanorand
- GHSA ID
- GHSA-r57r-j98g-587f
- CVE ID
- CVE-2021-45705
- Severity
- critical
- Published
- Updated
- CVSS
- 9.8 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CVSS v3
- 9.8 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
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.
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-45705 ↗
- https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/nanorand/RUSTSEC-2021-0114.md ↗
- https://rustsec.org/advisories/RUSTSEC-2021-0114.html ↗
- https://github.com/Absolucy/nanorand-rs/issues/28 ↗
- https://github.com/advisories/GHSA-r57r-j98g-587f ↗