GHSA-j8cj-hw74-64jv: Hive has Double-free and Use After Free Vulnerabilities
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::fromhandle was not marked as unsafe, making it, in combination with ashandle easy to clone and trigger double-free in safe code or triggering UB when using invalid pointer.
Published Feb 28, 2026
Affected packages
hivex
- Ecosystem
- Rust (crates.io)
- Affected
- = 0.2.0
- Fixed in
- 0.2.1
- Check
cargo tree -i hivex
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
