Vulnerability HighRUSTSEC-2025-0062 · toodee
RUSTSEC-2025-0062: Heap Buffer Overflow in the DrainCol Destructor
Short answerA security vulnerability in the toodee crate: Heap Buffer Overflow in the DrainCol Destructor. GitHub rates it High. Fixed in 0.6.0: update to a fixed version.
| Crate | toodee |
|---|---|
| Type | Vulnerability (memory-corruption, memory-exposure) |
| Affected versions | From 0.2.0 before 0.6.0. |
| Fixed in | 0.6.0 |
| Severity | High (GitHub rating) |
| Published | 2025-05-22 |
| Last changed | 2025-10-28 |
| Also known as | GHSA-pfp7-vxgr-83pw |
| Affected functions | toodee::DrainCol::drop |
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.6.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
An off-by-one error in the DrainCol::drop destructor could cause an unsafe memory copy operation to exceed the bounds of the associated vector.
The error was related to the size of the data being copied in one of the ptr::copy invocations inside the destructor.
When removing the first column from a TooDee object, the DrainCol return object could cause a heap buffer overflow vulnerability when it is dropped.
The issue was fixed in commit e6e16d5 by reducing the copied size by one.
References
- Package: crates.io/crates/toodee
- Advisory: rustsec.org/advisories/RUSTSEC-2025-0062.html
- Report: github.com/antonmarsden/toodee/issues/26
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?