RUSTSEC-2026-0029
MEDIUMHive 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::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.
- Published
- 26 Feb 2026
- Last modified
- 1 Mar 2026
- Weakness
- CWE-415CWE-416
- Also known as
- GHSA-j8cj-hw74-64jv
- Sources
- OSV GHSA-j8cj-hw74-64jvJSONOSVJSON
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | crates.io | hivex | >= 0.2.0, < 0.2.1 | 0.2.1 |
| OSV | crates.io | hivex | >= 0.0.0-0, < 0.2.1 | 0.2.1 |
References
- https://codeberg.org/1millibyte/toolsnt/commit/f4c7a0d1fc4a08ce40bb76e447a69a6f383a916e · WEB
- https://codeberg.org/1millibyte/toolsnt/issues/18 · WEB
- https://docs.rs/crate/hivex · WEB
- https://docs.rs/crate/hivex/0.2.1/source · WEB
- https://rustsec.org/advisories/RUSTSEC-2026-0029.html · WEB, ADVISORY
- https://crates.io/crates/hivex · PACKAGE
History
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 26 Feb 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 28 Feb 2026)