GHSA-7j36-gc4r-9x3r

Suggest an improvement
Source
https://github.com/advisories/GHSA-7j36-gc4r-9x3r
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-7j36-gc4r-9x3r/GHSA-7j36-gc4r-9x3r.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-7j36-gc4r-9x3r
Aliases
Published
2021-08-25T20:44:48Z
Modified
2023-11-08T04:01:16.163639Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Out of bounds access in compact_arena
Details

Affected versions of this crate did not properly implement the generativity, because the invariant lifetimes were not necessarily dropped.

This allows an attacker to mix up two arenas, using indices created from one arena with another one. This might lead to an out-of-bounds read or write access into the memory reserved for the arena.

The flaw was corrected by implementing generativity correctly in version 0.4.0.

Database specific
{
    "nvd_published_at": "2019-09-09T12:15:00Z",
    "cwe_ids": [
        "CWE-125",
        "CWE-787"
    ],
    "severity": "CRITICAL",
    "github_reviewed": true,
    "github_reviewed_at": "2021-08-19T21:22:37Z"
}
References

Affected packages

crates.io / compact_arena

Package

Name
compact_arena
View open source insights on deps.dev
Purl
pkg:cargo/compact_arena

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.4.0

Ecosystem specific

{
    "affected_functions": [
        "compact_arena::SmallArena::new"
    ]
}