Advisory

GHSA-7j36-gc4r-9x3r

Also known as: CVE-2019-16139, RUSTSEC-2019-0015

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2021-08-25 20:44 UTC
Modified
2023-11-08 04:01 UTC

Affected packages and fixes

compact_arena

crates.io · All systems

Affected

  • introduced 0, fixed 0.4.0 (semver)

Fixed versions

0.4.0

Fix

  • Fixed version 0.4.0
    cargo update -p compact_arena --precise 0.4.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences