{"id":"CVE-2021-29937","aliases":["CVE-2021-29937","GHSA-hpcx-3pw8-g3j2","RUSTSEC-2021-0046"],"related":[],"kind":"vulnerability","state":"published","title":"Free of uninitialized memory in telemetry","summary":"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().","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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().","source":"cvelist"},{"lang":"en","text":"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()","format":"markdown","source":"ghsa"},{"lang":"en","text":"`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.","format":"markdown","source":"rustsec"},{"lang":"es","text":"Se detectó un problema en la crate telemetry hasta el 17-02-2021 para Rust.&#xa0;Se presenta una perdida de la memoria no inicializada si una llamada de value.clone() entra en pánico dentro de la función misc::vec_with_size().","source":"nvd"}],"published":"2021-02-17T12:00:00.000Z","modified":"2026-09-10T03:49:08.068Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"RustSec Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","score":7.5,"rating":"HIGH"}],"cwes":["CWE-908"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.1.3"}],"ecosystem":"crates.io","package":"telemetry","purl":"pkg:cargo/telemetry","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected"}],"ecosystem":"crates.io","package":"telemetry","purl":"pkg:cargo/telemetry","source":"rustsec"},{"ranges":[{"status":"affected","lastAffected":"2021-02-17"}],"vendor":"telemetry_project","product":"telemetry","cpe":"cpe:2.3:a:telemetry_project:telemetry:*:*:*:*:*:rust:*:*","source":"nvd"}],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2021-0046.html","tags":["advisory","exploit","vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","rustsec","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-29937","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/Yoric/telemetry.rs/issues/45","tags":["report","web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/Yoric/telemetry.rs/commit/2820cf12f2e08645fd6d1f15b4a90a54d6082a81","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/Yoric/telemetry.rs","tags":["package"],"sources":["ghsa"]},{"url":"https://crates.io/crates/telemetry","tags":["package"],"sources":["rustsec"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-29937","url":"https://www.cve.org/CVERecord?id=CVE-2021-29937","licence":"CVE Terms of Use","modified":"2024-08-03T22:18:03.359Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-hpcx-3pw8-g3j2","url":"https://github.com/advisories/GHSA-hpcx-3pw8-g3j2","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:08.068Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2021-0046","url":"https://rustsec.org/advisories/RUSTSEC-2021-0046.html","licence":"CC0-1.0","modified":"2026-08-29T12:00:00.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-29937","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-29937","licence":"Public domain","modified":"2026-06-17T03:48:28.453Z"}],"updatedAt":"2026-11-25T22:58:00.539Z","epss":{"score":0.01423,"percentile":0.73677,"date":"2026-12-01T12:00:22.000Z"}}