{"id":"CVE-2021-28028","aliases":["CVE-2021-28028","GHSA-wcvp-r8j8-47pc","GHSA-xm9m-2vj8-fmfr","RUSTSEC-2021-0028"],"related":["CVE-2021-28029"],"kind":"vulnerability","state":"published","title":"Double free in toodee","summary":"An issue was discovered in the toodee crate before 0.3.0 for Rust. Row insertion can cause a double free upon an iterator panic.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"An issue was discovered in the toodee crate before 0.3.0 for Rust. Row insertion can cause a double free upon an iterator panic.","source":"cvelist"},{"lang":"en","text":"When inserting rows from an iterator at a particular index, toodee would shift items over, duplicating their ownership. The space reserved for the new elements was based on the len() returned by the ExactSizeIterator.\n\nThis could result in elements in the array being freed twice if the iterator panics. Uninitialized or previously freed elements could also be exposed if the len() didn't match the number of elements.\n\nThese issues were fixed in commit `ced70c17` by temporarily setting the length of the array smaller while processing it and adding assertions on the number of elements returned by the iterator.","format":"markdown","source":"ghsa"},{"lang":"en","text":"An issue was discovered in the toodee crate before 0.3.0 for Rust. The row-insertion feature allows attackers to read the contents of uninitialized memory locations.","format":"markdown","source":"ghsa"},{"lang":"en","text":"When inserting rows from an iterator at a particular index, `toodee` would shift\nitems over, duplicating their ownership. The space reserved for the new elements\nwas based on the `len()` returned by the `ExactSizeIterator`.\n\nThis could result in elements in the array being freed twice if the iterator\npanics. Uninitialized or previously freed elements could also be exposed if the\n`len()` didn't match the number of elements.\n\nThese issues were fixed in commit `ced70c17` by temporarily setting the length\nof the array smaller while processing it and adding assertions on the number\nof elements returned by the iterator.","format":"markdown","source":"rustsec"},{"lang":"es","text":"Se detectó un problema en la crate toodee versiones anteriores a 0.3.0 para Rust.&#xa0;La inserción de filas puede causar una doble liberación tras un pánico del iterador","source":"nvd"}],"published":"2021-02-19T12:00:00.000Z","modified":"2026-06-17T03:45:44.600Z","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":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","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: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-415","CWE-908"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.3.0"}],"ecosystem":"crates.io","package":"toodee","purl":"pkg:cargo/toodee","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.3.0"}],"ecosystem":"crates.io","package":"toodee","purl":"pkg:cargo/toodee","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"0.3.0"}],"ecosystem":"crates.io","package":"toodee","purl":"pkg:cargo/toodee","source":"rustsec"},{"ranges":[{"status":"affected","fixed":"0.3.0"}],"vendor":"toodee_project","product":"toodee","cpe":"cpe:2.3:a:toodee_project:toodee:*:*:*:*:*:rust:*:*","source":"nvd"}],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2021-0028.html","tags":["advisory","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","rustsec","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-28028","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/antonmarsden/toodee/issues/13","tags":["report","web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/antonmarsden/toodee/commit/ced70c172486fb4827c172cd8238053df3d1dcdb","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/antonmarsden/toodee","tags":["package"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-28029","tags":["advisory"],"sources":["ghsa"]},{"url":"https://crates.io/crates/toodee","tags":["package"],"sources":["rustsec"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-28028","url":"https://www.cve.org/CVERecord?id=CVE-2021-28028","licence":"CVE Terms of Use","modified":"2024-08-03T21:33:17.272Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-wcvp-r8j8-47pc","url":"https://github.com/advisories/GHSA-wcvp-r8j8-47pc","licence":"CC-BY-4.0","modified":"2023-11-08T04:05:27.607Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-xm9m-2vj8-fmfr","url":"https://github.com/advisories/GHSA-xm9m-2vj8-fmfr","licence":"CC-BY-4.0","modified":"2023-11-08T04:05:27.607Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2021-0028","url":"https://rustsec.org/advisories/RUSTSEC-2021-0028.html","licence":"CC0-1.0","modified":"2023-11-08T04:05:27.607Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-28028","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-28028","licence":"Public domain","modified":"2026-06-17T03:45:44.600Z"}],"updatedAt":"2026-11-25T22:58:00.152Z","epss":{"score":0.01311,"percentile":0.71499,"date":"2026-12-01T12:00:22.000Z"}}