Advisory

RUSTSEC-2025-0062

Also known as: GHSA-pfp7-vxgr-83pw

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.

Severity

Not rated by the source.

Dates

Published
2025-05-22 12:00 UTC
Modified
2025-10-28 06:29 UTC

Affected packages and fixes

toodee

crates.io · All systems

Affected

  • introduced 0.2.0, fixed 0.6.0 (semver)

Fixed versions

0.6.0

Fix

  • Fixed version 0.6.0
    cargo update -p toodee --precise 0.6.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences