Vulnerability CriticalRUSTSEC-2021-0028 · toodee
RUSTSEC-2021-0028: Multiple memory safety issues in insert_row
Short answerA security vulnerability in the toodee crate: Multiple memory safety issues in insert_row. GitHub rates it Critical. Fixed in 0.3.0: update to a fixed version.
| Crate | toodee |
|---|---|
| Type | Vulnerability (memory-corruption) |
| Affected versions | Before 0.3.0. |
| Fixed in | 0.3.0 |
| Severity | Critical (GitHub rating) |
| Published | 2021-02-19 |
| Last changed | 2023-11-08 |
| Also known as | CVE-2021-28028, CVE-2021-28029, GHSA-wcvp-r8j8-47pc, GHSA-xm9m-2vj8-fmfr |
| Affected functions | toodee::TooDee::insert_row |
What to do
- See which version you have:
cargo tree -i toodee(it also shows which of your dependencies pulls it in). - Update within your version requirement:
cargo update -p toodee. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for exampletoodee = "0.3.0") or update the dependency that pulls it in. - Check again with
cargo audit, or paste your Cargo.lock into our Cargo.toml checker.
Details from the advisory
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.
This 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.
These 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.
References
- Package: crates.io/crates/toodee
- Advisory: rustsec.org/advisories/RUSTSEC-2021-0028.html
- Report: github.com/antonmarsden/toodee/issues/13
From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.
Other advisories for toodee
Up next
Same cratetoodee: security historyEvery advisory for this crate, and whether it is safe to use today.Read it next →Did this answer your question?