rustsec-2025-0062
Vulnerability from osv_rustsec
Published
2025-05-22 12:00
Modified
2025-10-28 06:02
Summary
Heap Buffer Overflow in the 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.
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.
{
"affected": [
{
"database_specific": {
"categories": [
"memory-corruption",
"memory-exposure"
],
"cvss": null,
"informational": null
},
"ecosystem_specific": {
"affected_functions": null,
"affects": {
"arch": [],
"functions": [
"toodee::DrainCol::drop"
],
"os": []
}
},
"package": {
"ecosystem": "crates.io",
"name": "toodee",
"purl": "pkg:cargo/toodee"
},
"ranges": [
{
"events": [
{
"introduced": "0.2.0"
},
{
"fixed": "0.6.0"
}
],
"type": "SEMVER"
}
],
"versions": []
}
],
"aliases": [
"GHSA-pfp7-vxgr-83pw"
],
"database_specific": {
"license": "CC0-1.0"
},
"details": "An off-by-one error in the `DrainCol::drop` destructor could cause an unsafe memory copy\noperation 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`\ninvocations inside the destructor.\n\nWhen removing the first column from a TooDee object, the DrainCol return object could cause\na heap buffer overflow vulnerability when it is dropped.\n\nThe issue was fixed in commit `e6e16d5` by reducing the copied size by one.",
"id": "RUSTSEC-2025-0062",
"modified": "2025-10-28T06:02:18Z",
"published": "2025-05-22T12:00:00Z",
"references": [
{
"type": "PACKAGE",
"url": "https://crates.io/crates/toodee"
},
{
"type": "ADVISORY",
"url": "https://rustsec.org/advisories/RUSTSEC-2025-0062.html"
},
{
"type": "REPORT",
"url": "https://github.com/antonmarsden/toodee/issues/26"
}
],
"related": [],
"severity": [],
"summary": "Heap Buffer Overflow in the DrainCol Destructor"
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…