{"id":"CVE-2021-29930","aliases":["CVE-2021-29930","GHSA-327x-39hh-65wf","GHSA-955p-rc5h-hg6h","RUSTSEC-2021-0040"],"related":["CVE-2021-29931"],"kind":"vulnerability","state":"published","title":"Out of bounds write in arenavec","summary":"An issue was discovered in the arenavec crate through 2021-01-12 for Rust. A drop of uninitialized memory can sometimes occur upon a panic in T::default().","summarySource":"cvelist","descriptions":[{"lang":"en","text":"An issue was discovered in the arenavec crate through 2021-01-12 for Rust. A drop of uninitialized memory can sometimes occur upon a panic in T::default().","source":"cvelist"},{"lang":"en","text":"An issue was discovered in the arenavec crate through 0.1.1. A drop of uninitialized memory can sometimes occur upon a panic in T::default()","format":"markdown","source":"ghsa"},{"lang":"en","text":"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::<T, H>::new(). Panic within T::drop() leads to double drop of T, when it is invoked either from common::SliceVec::<T, H>::resize_with() or common::SliceVec::<T, H>::resize()\n\nEither case causes memory corruption in the heap memory.","format":"markdown","source":"ghsa"},{"lang":"en","text":"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::<T, H>::new()`.\nPanic within `T::drop()` leads to double drop of `T`, when it is invoked either from `common::SliceVec::<T, H>::resize_with()` or `common::SliceVec::<T, H>::resize()`\n\nEither case causes memory corruption in the heap memory.","format":"markdown","source":"rustsec"},{"lang":"es","text":"Se detectó un problema en la crate arenavec hasta el 12 de enero de 2021 para Rust.&#xa0;A veces, una perdida de la memoria no inicializada puede ocurrir tras un pánico en la función T::default().","source":"nvd"}],"published":"2021-01-12T12:00:00.000Z","modified":"2026-06-17T03:48:27.567Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"RustSec Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","score":5,"rating":"MEDIUM"}],"cwes":["CWE-415","CWE-787"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"0.1.1"}],"ecosystem":"crates.io","package":"arenavec","purl":"pkg:cargo/arenavec","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"0.1.1"}],"ecosystem":"crates.io","package":"arenavec","purl":"pkg:cargo/arenavec","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected"}],"ecosystem":"crates.io","package":"arenavec","purl":"pkg:cargo/arenavec","source":"rustsec"},{"ranges":[{"status":"affected","lastAffected":"2021-01-12"}],"vendor":"arenavec_project","product":"arenavec","cpe":"cpe:2.3:a:arenavec_project:arenavec:*:*:*:*:*:rust:*:*","source":"nvd"}],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2021-0040.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-29930","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/ibabushkin/arenavec/issues/1","tags":["report","web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/ibabushkin/arenavec","tags":["package"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-29931","tags":["advisory"],"sources":["ghsa"]},{"url":"https://crates.io/crates/arenavec","tags":["package"],"sources":["rustsec"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-29930","url":"https://www.cve.org/CVERecord?id=CVE-2021-29930","licence":"CVE Terms of Use","modified":"2024-08-03T22:18:03.456Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-327x-39hh-65wf","url":"https://github.com/advisories/GHSA-327x-39hh-65wf","licence":"CC-BY-4.0","modified":"2023-11-08T04:05:43.636Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-955p-rc5h-hg6h","url":"https://github.com/advisories/GHSA-955p-rc5h-hg6h","licence":"CC-BY-4.0","modified":"2023-11-08T04:05:43.636Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2021-0040","url":"https://rustsec.org/advisories/RUSTSEC-2021-0040.html","licence":"CC0-1.0","modified":"2023-11-08T04:05:43.636Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-29930","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-29930","licence":"Public domain","modified":"2026-06-17T03:48:27.567Z"}],"updatedAt":"2026-11-25T22:58:00.537Z","epss":{"score":0.01175,"percentile":0.6844,"date":"2026-12-01T12:00:22.000Z"}}