{"id":"RUSTSEC-2019-0017","summary":"Panic during initialization of Lazy\u003cT\u003e might trigger undefined behavior","details":"If during the first dereference of Lazy\u003cT\u003e the initialization function panics,\nsubsequent dereferences will execute `std::hints::unreachable_unchecked`.\n\nApplications with `panic = \"abort\"` are not affected, as there will be no\nsubsequent dereferences.","aliases":["CVE-2019-16141","GHSA-7j44-fv4x-79g9"],"modified":"2023-11-08T04:01:16.284220Z","published":"2019-09-01T12:00:00Z","database_specific":{"license":"CC0-1.0"},"references":[{"type":"PACKAGE","url":"https://crates.io/crates/once_cell"},{"type":"ADVISORY","url":"https://rustsec.org/advisories/RUSTSEC-2019-0017.html"},{"type":"REPORT","url":"https://github.com/matklad/once_cell/issues/46"}],"affected":[{"package":{"name":"once_cell","ecosystem":"crates.io","purl":"pkg:cargo/once_cell"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.2.5"},{"fixed":"1.0.1"}]}],"ecosystem_specific":{"affects":{"functions":["once_cell::sync::Lazy::deref","once_cell::sync::Lazy::force","once_cell::unsync::Lazy::deref","once_cell::unsync::Lazy::force"],"arch":[],"os":[]},"affected_functions":null},"database_specific":{"informational":null,"source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2019-0017.json","categories":[],"cvss":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}