HistoryEditJSON (OSV)

RUSTSEC-2019-0015

Flaw in generativity allows out-of-bounds access

Reported
Issued
Package
compact_arena (crates.io)
Type
Vulnerability
Categories
Keywords
#uninitialized-memory
Aliases
References
CVSS Score
9.8 CRITICAL
CVSS Details
Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Patched
  • >=0.4.0
Affected Functions
Version
compact_arena::SmallArena::new
  • <0.4.0

Description

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.

Advisory available under CC0-1.0 license.