Skip to content
OpenAdvisories
Medium GHSA-j8cj-hw74-64jv RUSTSEC-2026-0029

Hive has Double-free and Use After Free Vulnerabilities

Published Feb 28, 2026 · Updated Mar 1, 2026 · Assigned by GHSA

Description

`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.

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io hivex >= 0.2.0, < 0.2.1 0.2.1 GHSA-j8cj-hw74-64jv
crates.io hivex >= 0.0.0-0, < 0.2.1 0.2.1 RUSTSEC-2026-0029

References