VDB
Sign up
CRITICAL9.8

GHSA-7j36-gc4r-9x3r

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

crates.io/compact_arena
Introduced in: 0Fixed in: 0.4.0

Upgrade compact_arena to 0.4.0 or newer (ecosystem crates.io).

References