GHSA-j8cj-hw74-64jv
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 package | Versions | Reported by |
|---|---|---|
| hivex (crates.io) | from 0.2.0 before 0.2.1, from 0.0.0-0 before 0.2.1 | GitHub Advisory Database, RustSec Advisory Database |
Classification
References
Sources
| Source | Record | Licence |
|---|---|---|
| GitHub Advisory Database | GHSA-j8cj-hw74-64jv changed 2026-03-01 | CC-BY-4.0 |
| RustSec Advisory Database | RUSTSEC-2026-0029 changed 2026-03-01 | CC0-1.0 |