GHSA-j8cj-hw74-64jv
JSON

medium

Hive has Double-free and Use After Free Vulnerabilities

Severity
medium rating by GitHub
Published
Last changed
Also known as
RUSTSEC-2026-0029

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

Product or packageVersionsReported by
hivex (crates.io)from 0.2.0 before 0.2.1, from 0.0.0-0 before 0.2.1GitHub Advisory Database, RustSec Advisory Database

Classification

References

Sources

SourceRecordLicence
GitHub Advisory DatabaseGHSA-j8cj-hw74-64jv changed 2026-03-01CC-BY-4.0
RustSec Advisory DatabaseRUSTSEC-2026-0029 changed 2026-03-01CC0-1.0