{"id":"RUSTSEC-2021-0114","summary":"Aliased mutable references from `tls_rand` & `TlsWyRand`","details":"`TlsWyRand`'s implementation of `Deref` unconditionally dereferences a raw pointer, and returns \nmultiple mutable references to the same object, which is undefined behavior.","aliases":["CVE-2021-45705","GHSA-p6gj-gpc8-f8xw","GHSA-r57r-j98g-587f"],"modified":"2023-11-08T04:07:22.929289Z","published":"2021-09-23T12:00:00Z","database_specific":{"license":"CC0-1.0"},"references":[{"type":"PACKAGE","url":"https://crates.io/crates/nanorand"},{"type":"ADVISORY","url":"https://rustsec.org/advisories/RUSTSEC-2021-0114.html"},{"type":"REPORT","url":"https://github.com/Absolucy/nanorand-rs/issues/28"}],"affected":[{"package":{"name":"nanorand","ecosystem":"crates.io","purl":"pkg:cargo/nanorand"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.5.0"},{"fixed":"0.6.1"}]}],"ecosystem_specific":{"affected_functions":null,"affects":{"functions":["nanorand::tls::tls_rand"],"os":[],"arch":[]}},"database_specific":{"source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2021-0114.json","informational":null,"cvss":null,"categories":[]}}],"schema_version":"1.7.3"}