Skip to content
Fencer Intel
medium —

GHSA-j8cj-hw74-64jv json

Hive has Double-free and Use After Free Vulnerabilities

published 8mo ago modified 8mo ago also RUSTSEC-2026-0029

cvss
—
not scored
cisa kev
Not listed
not in CISA's catalog
epss
—
no score, EPSS covers CVEs only
public exploits
0
none known

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.

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.

Patch / fix

  • crates.io hivex 0.2.1

Is GHSA-j8cj-hw74-64jv in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Affected packages

ecosystem package affected fixed in
crates.io hivex
>=0.2.0, <0.2.1
>=0.0.0-0, <0.2.1
0.2.1

Classification

Weakness

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.