{"id":"CVE-2021-29937","aliases":["EUVD-2021-1750","GHSA-hpcx-3pw8-g3j2","RUSTSEC-2021-0046"],"status":"published","title":"Free of uninitialized memory in telemetry","description":"An issue was discovered in the telemetry crate through 2021-02-17 for Rust. There is a drop of uninitialized memory if a value.clone() call panics within misc::vec_with_size().","severity":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-12","score":0.01423,"percentile":0.73271,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-908"],"published":"2021-02-17T12:00:00Z","modified":"2026-09-10T03:49:08Z","fixes":[{"ecosystem":"crates.io","package":"telemetry","fixed_in":["0.1.3"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"crates.io","package":"telemetry","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.1.3"}]}]},{"source":"osv","ecosystem":"crates.io","package":"telemetry","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.1.3"}]}]}],"products":[{"vendor":"telemetry_project","product":"telemetry"}],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2021-0046.html","tags":["x_refsource_MISC","x_transferred","Exploit","Vendor Advisory","web","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-29937","tags":["advisory"]},{"url":"https://github.com/Yoric/telemetry.rs/issues/45","tags":["web","report"]},{"url":"https://github.com/Yoric/telemetry.rs/commit/2820cf12f2e08645fd6d1f15b4a90a54d6082a81","tags":["web"]},{"url":"https://github.com/advisories/GHSA-hpcx-3pw8-g3j2"},{"url":"https://github.com/Yoric/telemetry.rs","tags":["package"]},{"url":"https://crates.io/crates/telemetry","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2021-29937","description":"An issue was discovered in the telemetry crate through 2021-02-17 for Rust. There is a drop of uninitialized memory if a value.clone() call panics within misc::vec_with_size().","status":"published","published":"2021-04-01T04:23:33Z","modified":"2024-08-03T22:18:03.359Z","updated_at":"2026-11-02T14:33:06.32268Z"}],"euvd":[{"id":"EUVD-2021-1750","description":"An issue was discovered in the telemetry crate through 2021-02-17 for Rust. There is a drop of uninitialized memory if a value.clone() call panics within misc::vec_with_size().","status":"published","published":"2021-04-01T04:23:33Z","modified":"2024-08-03T22:18:03Z","updated_at":"2026-11-03T03:24:43.413555Z"}],"ghsa":[{"id":"GHSA-hpcx-3pw8-g3j2","title":"Free of uninitialized memory in telemetry","description":"An issue was discovered in the telemetry crate through 0.1.2 for Rust. There is a drop of uninitialized memory if a value.clone() call panics within misc::vec_with_size()","status":"published","published":"2021-08-25T20:54:22Z","modified":"2023-02-03T05:05:57Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-908"],"updated_at":"2026-11-02T14:36:43.439065Z"}],"nvd":[{"id":"CVE-2021-29937","description":"An issue was discovered in the telemetry crate through 2021-02-17 for Rust. There is a drop of uninitialized memory if a value.clone() call panics within misc::vec_with_size().","status":"published","published":"2021-04-01T05:15:14.717Z","modified":"2026-06-17T03:48:28.453Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-908"],"updated_at":"2026-11-02T14:06:51.197859Z"}],"osv":[{"id":"GHSA-hpcx-3pw8-g3j2","title":"Free of uninitialized memory in telemetry","description":"An issue was discovered in the telemetry crate through 0.1.2 for Rust. There is a drop of uninitialized memory if a value.clone() call panics within misc::vec_with_size()","status":"published","published":"2021-08-25T20:54:22Z","modified":"2026-09-10T03:49:08.068666517Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-908"],"updated_at":"2026-11-02T15:46:49.28217Z"},{"id":"RUSTSEC-2021-0046","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.","status":"withdrawn","published":"2021-02-17T12:00:00Z","modified":"2026-08-29T12:00:00Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:53:39.492624Z"}]}}
