{"id":"GHSA-j8cj-hw74-64jv","aliases":["GHSA-j8cj-hw74-64jv","RUSTSEC-2026-0029"],"related":[],"kind":"vulnerability","state":"published","title":"Hive has Double-free and Use After Free Vulnerabilities","summary":"`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.\n\nAdditionally, 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.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"`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.\n\nAdditionally, 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.","format":"markdown","source":"ghsa"}],"published":"2026-02-26T12:00:00.000Z","modified":"2026-03-01T06:11:19.337Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-415","CWE-416"],"affected":[{"ranges":[{"type":"semver","introduced":"0.2.0","status":"affected","fixed":"0.2.1"}],"ecosystem":"crates.io","package":"hivex","purl":"pkg:cargo/hivex","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"0.2.1"}],"ecosystem":"crates.io","package":"hivex","purl":"pkg:cargo/hivex","source":"rustsec"}],"references":[{"url":"https://codeberg.org/1millibyte/toolsnt/commit/f4c7a0d1fc4a08ce40bb76e447a69a6f383a916e","tags":["web"],"sources":["ghsa"]},{"url":"https://codeberg.org/1millibyte/toolsnt/issues/18","tags":["web"],"sources":["ghsa","rustsec"]},{"url":"https://docs.rs/crate/hivex","tags":["web"],"sources":["ghsa"]},{"url":"https://docs.rs/crate/hivex/0.2.1/source","tags":["web"],"sources":["ghsa"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0029.html","tags":["advisory","web"],"sources":["ghsa","rustsec"]},{"url":"https://crates.io/crates/hivex","tags":["package"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-j8cj-hw74-64jv","url":"https://github.com/advisories/GHSA-j8cj-hw74-64jv","licence":"CC-BY-4.0","modified":"2026-03-01T06:11:19.337Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2026-0029","url":"https://rustsec.org/advisories/RUSTSEC-2026-0029.html","licence":"CC0-1.0","modified":"2026-03-01T06:01:36.000Z"}],"updatedAt":"2026-11-25T22:56:43.310Z"}