GHSA-955p-rc5h-hg6h

Suggest an improvement
Source
https://github.com/advisories/GHSA-955p-rc5h-hg6h
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-955p-rc5h-hg6h/GHSA-955p-rc5h-hg6h.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-955p-rc5h-hg6h
Aliases
Published
2021-08-25T20:55:04Z
Modified
2023-11-08T04:05:43.636978Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
Double free in arenavec
Details

Affected versions of this crate did not guard against potential panics that may happen from user-provided functions T::default() and T::drop().

Panic within T::default() leads to dropping uninitialized T, when it is invoked from common::Slice::<T, H>::new(). Panic within T::drop() leads to double drop of T, when it is invoked either from common::SliceVec::<T, H>::resize_with() or common::SliceVec::<T, H>::resize()

Either case causes memory corruption in the heap memory.

Database specific
{
    "nvd_published_at": null,
    "cwe_ids": [
        "CWE-415"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2021-08-19T17:08:56Z"
}
References

Affected packages

crates.io / arenavec

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Last affected
0.1.1