GHSA-pfp7-vxgr-83pw: Toodee Toodee Is Vulnerable To Heap Vulnerability
HIGHGHSA-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
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.
Upgrade toodee to 0.6.0
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
GHSA-pfp7-vxgr-83pw Affected Toodee Versions
1 component(s)| 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?
Which Toodee versions are affected?
What version fixes GHSA-pfp7-vxgr-83pw?
Is toodee affected?
What CWE is associated with GHSA-pfp7-vxgr-83pw?
How can I check crates.io dependencies for GHSA-pfp7-vxgr-83pw?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}