Rust advisories / compact_arena
Vulnerability CriticalRUSTSEC-2019-0015 · compact_arena
RUSTSEC-2019-0015: Flaw in generativity allows out-of-bounds access
Short answerA security vulnerability in the compact_arena crate: Flaw in generativity allows out-of-bounds access. Critical severity (CVSS 9.8). Fixed in 0.4.0: update to a fixed version.
| Crate | compact_arena |
|---|---|
| Type | Vulnerability (memory-corruption) |
| Affected versions | Before 0.4.0. |
| Fixed in | 0.4.0 |
| Severity | Critical, CVSS 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Published | 2019-05-21 |
| Last changed | 2023-11-08 |
| Also known as | CVE-2019-16139, GHSA-7j36-gc4r-9x3r |
| Affected functions | compact_arena::SmallArena::new |
What to do
- See which version you have:
cargo tree -i compact_arena(it also shows which of your dependencies pulls it in). - Update within your version requirement:
cargo update -p compact_arena. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for examplecompact_arena = "0.4.0") or update the dependency that pulls it in. - Check again with
cargo audit, or paste your Cargo.lock into our Cargo.toml checker.
Details from the advisory
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.
References
- Package: crates.io/crates/compact_arena
- Advisory: rustsec.org/advisories/RUSTSEC-2019-0015.html
- Report: github.com/llogiq/compact_arena/issues/22
From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.
Up next
Are you affected?Check your whole dependency treePaste Cargo.lock: every advisory, for your exact versions.Read it next →Also worth your time
Did this answer your question?