Advisory

GHSA-j8cj-hw74-64jv

Also known as: RUSTSEC-2026-0029

Summary

Hive has Double-free and Use After Free Vulnerabilities

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-02-28 02:48 UTC
Modified
2026-03-01 06:11 UTC

Affected packages and fixes

hivex

crates.io · All systems

Affected

  • introduced 0.2.0, fixed 0.2.1 (semver)

Fixed versions

0.2.1

Fix

  • Fixed version 0.2.1
    cargo update -p hivex --precise 0.2.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences