GHSA-j8cj-hw74-64jv

Suggest an improvement
Source
https://github.com/advisories/GHSA-j8cj-hw74-64jv
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/02/GHSA-j8cj-hw74-64jv/GHSA-j8cj-hw74-64jv.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-j8cj-hw74-64jv
Aliases
Published
2026-02-28T02:48:45Z
Modified
2026-03-01T06:11:19Z
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.

Database specific
{
    "cwe_ids":  [
        "CWE-415",
        "CWE-416"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-02-28T02:48:45Z",
    "nvd_published_at":  null,
    "severity":  "MODERATE"
}
References

Affected packages

crates.io / hivex

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.2.0
Fixed
0.2.1

Affected versions

0.*
0.2.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/02/GHSA-j8cj-hw74-64jv/GHSA-j8cj-hw74-64jv.json"