# GHSA-pfp7-vxgr-83pw: toodee is vulnerable to Heap Buffer Overflow through its DrainCol Destructor

- Severity: High (CVSS:4.0, scored by GitHub) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:H/SC:L/SI:L/SA:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2025-05-22T12:00:00.000Z
- Modified: 2025-10-28T06:29:25.567Z
- Also known as: RUSTSEC-2025-0062
- Weaknesses: CWE-122

## Description

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.

(As written by GitHub Advisory Database.)

## Affected

- toodee (crates.io): from 0.2.0 before 0.6.0

## References

- <https://github.com/antonmarsden/toodee/issues/26> (report, web)
- <https://github.com/antonmarsden/toodee/commit/e6e16d5a97e6258ffbedbae1bde65b45c60f242f> (web)
- <https://github.com/antonmarsden/toodee> (package)
- <https://rustsec.org/advisories/RUSTSEC-2025-0062.html> (advisory, web)
- <https://crates.io/crates/toodee> (package)

## Sources

- GitHub Advisory Database: [GHSA-pfp7-vxgr-83pw](https://github.com/advisories/GHSA-pfp7-vxgr-83pw), CC-BY-4.0, modified 2025-10-28
- RustSec Advisory Database: [RUSTSEC-2025-0062](https://rustsec.org/advisories/RUSTSEC-2025-0062.html), CC0-1.0, modified 2025-10-28

---

Page: https://cve.day/GHSA-pfp7-vxgr-83pw · Whole record: https://cve.day/GHSA-pfp7-vxgr-83pw.json · Rebuilt by cve.day 2026-11-25T22:56:43.265Z
