GHSA-pfp7-vxgr-83pw: Toodee Toodee Is Vulnerable To Heap Vulnerability

HIGH
CWE-122
Published
Advisory Summary

GHSA-pfp7-vxgr-83pw is a HIGH toodee is vulnerable to heap vulnerability (CWE-122: Heap-based Buffer Overflow) affecting Toodee libraries in the crates.io ecosystem. The issue involves toodee is vulnerable to heap buffer overflow through its draincol destructor. Remediation is available by upgrading affected packages to version 0.6.0.

GHSA-pfp7-vxgr-83pw at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-pfp7-vxgr-83pw
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-122: Heap-based Buffer Overflow
Affected Product Toodee
Package Ecosystem crates.io
Published Date
Last Updated

How to Fix GHSA-pfp7-vxgr-83pw

To remediate this vulnerability, upgrade all affected Toodee dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

toodee fixed: 0.6.0
Upgrade toodee to 0.6.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for toodee

How to Check if You Are Affected

To determine whether your application is affected by GHSA-pfp7-vxgr-83pw, inspect your project dependencies for Toodee:

inspect dependencies for toodee

Analyze the terminal output to locate any version of Toodee in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.6.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-122: Heap-based Buffer Overflow, where a heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc(). In Toodee, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

GHSA-pfp7-vxgr-83pw Affected Toodee Versions

1 component(s)
Fixed Versions:
0.6.0
Product / Package Ecosystem Affected Versions Fixed Version
toodee
crates.io
≥ 0.2.0
< 0.6.0
0.6.0

References

Frequently Asked Questions

What is GHSA-pfp7-vxgr-83pw?
GHSA-pfp7-vxgr-83pw is a security vulnerability in Toodee involving toodee is vulnerable to Heap Buffer Overflow through its DrainCol Destructor under CWE-122: Heap-based Buffer Overflow.
Which Toodee versions are affected?
Affected versions include releases prior to 0.6.0 across affected packages: toodee.
What version fixes GHSA-pfp7-vxgr-83pw?
Upgrading to 0.6.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is toodee affected?
Yes, toodee is affected in releases prior to 0.6.0. Upgrade your dependency to 0.6.0 or later.
What CWE is associated with GHSA-pfp7-vxgr-83pw?
GHSA-pfp7-vxgr-83pw is classified under CWE-122: Heap-based Buffer Overflow (A heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc().).
How can I check crates.io dependencies for GHSA-pfp7-vxgr-83pw?
Run the dependency tree command: 'inspect dependencies for toodee'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-pfp7-vxgr-83pw",
  "modified" : "2025-09-09T15:23:43Z",
  "published" : "2025-09-09T15:23:43Z",
  "aliases" : [ ],
  "summary" : "toodee is vulnerable to Heap Buffer Overflow through its DrainCol Destructor",
  "details" : "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.\n\nThe error was related to the size of the data being copied in one of the `ptr::copy` invocations inside the destructor.\n\nWhen removing the first column from a TooDee object, the DrainCol return object could cause a heap buffer overflow vulnerability when it is dropped.\n\nThe issue was fixed in commit `e6e16d5` by reducing the copied size by one.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "toodee"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.2.0"
      }, {
        "fixed" : "0.6.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/antonmarsden/toodee/issues/26"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/antonmarsden/toodee/commit/e6e16d5a97e6258ffbedbae1bde65b45c60f242f"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/antonmarsden/toodee"
  }, {
    "type" : "WEB",
    "url" : "https://rustsec.org/advisories/RUSTSEC-2025-0062.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-122" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-09-09T15:23:43Z",
    "nvd_published_at" : null
  }
}