Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. toodee
  4. ›
  5. GHSA-pfp7-vxgr-83pw

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

September 9, 2025

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

  • github.com/advisories/GHSA-pfp7-vxgr-83pw
  • github.com/antonmarsden/toodee
  • github.com/antonmarsden/toodee/commit/e6e16d5a97e6258ffbedbae1bde65b45c60f242f
  • github.com/antonmarsden/toodee/issues/26
  • rustsec.org/advisories/RUSTSEC-2025-0062.html

Code Behaviors & Features

Detect and mitigate GHSA-pfp7-vxgr-83pw with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 0.2.0 before 0.6.0

Fixed versions

  • 0.6.0

Solution

Upgrade to version 0.6.0 or above.

Weakness

  • CWE-122: Heap-based Buffer Overflow

Source file

cargo/toodee/GHSA-pfp7-vxgr-83pw.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 08 Oct 2025 00:22:05 +0000.