{"id":"RUSTSEC-2021-0040","summary":"panic safety: double drop or uninitialized drop of T upon panic","details":"Affected versions of this crate did not guard against potential panics that may happen from user-provided functions `T::default()` and `T::drop()`.\n\nPanic within `T::default()` leads to dropping uninitialized `T`, when it is invoked from `common::Slice::\u003cT, H\u003e::new()`.\nPanic within `T::drop()` leads to double drop of `T`, when it is invoked either from `common::SliceVec::\u003cT, H\u003e::resize_with()` or `common::SliceVec::\u003cT, H\u003e::resize()`\n\nEither case causes memory corruption in the heap memory.","aliases":["CVE-2021-29930","CVE-2021-29931","GHSA-327x-39hh-65wf","GHSA-955p-rc5h-hg6h"],"modified":"2023-11-08T04:05:43.636978Z","published":"2021-01-12T12:00:00Z","database_specific":{"license":"CC0-1.0"},"references":[{"type":"PACKAGE","url":"https://crates.io/crates/arenavec"},{"type":"ADVISORY","url":"https://rustsec.org/advisories/RUSTSEC-2021-0040.html"},{"type":"REPORT","url":"https://github.com/ibabushkin/arenavec/issues/1"}],"affected":[{"package":{"name":"arenavec","ecosystem":"crates.io","purl":"pkg:cargo/arenavec"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"}]}],"ecosystem_specific":{"affects":{"arch":[],"functions":[],"os":[]},"affected_functions":null},"database_specific":{"categories":["memory-corruption"],"cvss":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","informational":null,"source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2021-0040.json"}}],"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"}]}