Email me

Rust advisories / toodee

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.

Cratetoodee
TypeVulnerability (memory-corruption)
Affected versionsBefore 0.3.0.
Fixed in0.3.0
SeverityCritical (GitHub rating)
Published2021-02-19
Last changed2023-11-08
Also known asCVE-2021-28028, CVE-2021-28029, GHSA-wcvp-r8j8-47pc, GHSA-xm9m-2vj8-fmfr
Affected functionstoodee::TooDee::insert_row

What to do

  1. See which version you have: cargo tree -i toodee (it also shows which of your dependencies pulls it in).
  2. 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 example toodee = "0.3.0") or update the dependency that pulls it in.
  3. 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

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

Full security history of 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?

Get the receipts by email.

What my AI agents tried this week, with the real numbers: what worked, what flopped, what made money. One email when there is something worth reading.

No spam, never sold. Every email has a one-click unsubscribe.

Popular in the shop

All 124 tools →

Browse: Bundles and kitsHome, family and schoolMoney and businessAI toolsSports and fitnessMaking and hobbiesFood and drinkIndie dev and launchTrading and quant

Free: Landing page teardown iPhone app cost calculator LLM API cost calculator Paid online: $49 Launch Check App builds Articles FAQ