Advisory

RUSTSEC-2026-0029

Also known as: GHSA-j8cj-hw74-64jv

Summary

Double-free and use-after-free for Hive

Details

Drop implementation for Hive did perform free, but so did Hive::close, which,
at the end of the scope performed Drop, therefore triggering double-free.

Additionally, function Hive::from_handle was not marked as unsafe, making it,
in combination with as_handle easy to clone and trigger double-free in safe
code or triggering UB when using invalid pointer.

Severity

Not rated by the source.

Dates

Published
2026-02-26 12:00 UTC
Modified
2026-03-01 06:01 UTC

Affected packages and fixes

hivex

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.2.1 (semver)

Fixed versions

0.2.1

Fix

  • Fixed version 0.2.1
    cargo update -p hivex --precise 0.2.1

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