{"id":"RUSTSEC-2021-0046","revision":"64565d006743445d9ed36c10795910f2","records":[{"revision":"64565d006743445d9ed36c10795910f2","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"RUSTSEC-2021-0046","aliases":["CVE-2021-29937","GHSA-hpcx-3pw8-g3j2"],"title":"misc::vec_with_size() can drop uninitialized memory if clone panics","description":"`misc::vec_with_size` creates a vector of the provided `size` and immediately\ncalls `vec.set_len(size)` on it, initially filling it with uninitialized memory.\nIt then inserts elements using `vec[i] = value.clone()`.\n\nIf the `value.clone()` call panics, uninitialized items in the vector will be\ndropped leading to undefined behavior.\n\n## Withdrawal\n\nThis advisory has been withdrawn because the above unsoundness cannot be triggered in safe code by dependents of the crate, as the `Clone` generic of private function `misc::vec_with_size` only instantiates to primitive types in public functions, which is impossible to panic.","state":2,"publishedAt":"2021-02-17T12:00:00+00:00","modifiedAt":"2026-08-29T12:00:00+00:00","affected":[{"ecosystem":"crates.io","name":"telemetry","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.0.0-0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":null,"severity":null}],"references":["https://crates.io/crates/telemetry","https://rustsec.org/advisories/RUSTSEC-2021-0046.html","https://github.com/Yoric/telemetry.rs/issues/45"],"sourceUrl":"https://osv.dev/vulnerability/RUSTSEC-2021-0046","license":"OSV · upstream source license applies","key":"osv:RUSTSEC-2021-0046","identifiers":["RUSTSEC-2021-0046","CVE-2021-29937","GHSA-hpcx-3pw8-g3j2"]},"retained":false,"historicalAffected":[]}],"coverage":[]}