{"id":"CVE-2021-28028","aliases":["EUVD-2021-2124","GHSA-wcvp-r8j8-47pc","GHSA-xm9m-2vj8-fmfr","RUSTSEC-2021-0028"],"status":"published","title":"Double free in toodee","description":"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.","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-09","score":0.01295,"percentile":0.70534,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-415","CWE-908"],"published":"2021-02-19T12:00:00Z","modified":"2026-06-17T03:45:44Z","fixes":[{"ecosystem":"crates.io","package":"toodee","fixed_in":["0.3.0"],"sources":["ghsa"]}],"affected":[{"source":"ghsa","ecosystem":"crates.io","package":"toodee","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.3.0"}]}]},{"source":"osv","ecosystem":"crates.io","package":"toodee","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.3.0"}]}],"bundled":2},{"source":"osv","ecosystem":"crates.io","package":"toodee","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.3.0"}]}],"bundled":2},{"source":"osv","ecosystem":"crates.io","package":"toodee","ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"0.3.0"}]}],"bundled":2}],"products":[{"vendor":"toodee_project","product":"toodee"}],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2021-0028.html","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","web","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-28028","tags":["advisory"]},{"url":"https://github.com/antonmarsden/toodee/issues/13","tags":["web","report"]},{"url":"https://github.com/antonmarsden/toodee/commit/ced70c172486fb4827c172cd8238053df3d1dcdb","tags":["web"]},{"url":"https://github.com/advisories/GHSA-wcvp-r8j8-47pc"},{"url":"https://github.com/antonmarsden/toodee","tags":["package"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-28029","tags":["advisory"]},{"url":"https://crates.io/crates/toodee","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2021-28028","description":"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.","status":"published","published":"2021-03-05T08:40:40Z","modified":"2024-08-03T21:33:17.272Z","updated_at":"2026-11-02T14:33:08.811269Z"}],"euvd":[{"id":"EUVD-2021-2124","description":"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.","status":"published","published":"2021-03-05T08:40:40Z","modified":"2024-08-03T21:33:17Z","updated_at":"2026-11-03T03:24:47.350261Z"}],"ghsa":[{"id":"GHSA-wcvp-r8j8-47pc","title":"Double free in toodee","description":"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.","status":"published","published":"2021-09-01T18:30:35Z","modified":"2023-06-13T21:58:19Z","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-415"],"updated_at":"2026-11-02T14:36:54.225318Z"}],"nvd":[{"id":"CVE-2021-28028","description":"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.","status":"published","published":"2021-03-05T09:15:13.833Z","modified":"2026-06-17T03:45:44.6Z","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-415"],"updated_at":"2026-11-02T14:06:50.399901Z"}],"osv":[{"id":"GHSA-wcvp-r8j8-47pc","title":"Double free in toodee","description":"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.","status":"published","published":"2021-09-01T18:30:35Z","modified":"2023-11-08T04:05:27.607591Z","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-415"],"updated_at":"2026-11-02T15:46:58.401149Z"},{"id":"GHSA-xm9m-2vj8-fmfr","title":"Uninitialized memory access in toodee","description":"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.","status":"published","published":"2021-09-01T18:30:40Z","modified":"2023-11-08T04:05:27.607591Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"cwes":["CWE-908"],"updated_at":"2026-11-02T15:47:00.198893Z"},{"id":"RUSTSEC-2021-0028","title":"Multiple memory safety issues in insert_row","description":"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.","status":"published","published":"2021-02-19T12:00:00Z","modified":"2023-11-08T04:05:27.607591Z","updated_at":"2026-11-02T15:53:39.492624Z"}]}}
