Advisory

RUSTSEC-2019-0015

Also known as: CVE-2019-16139, GHSA-7j36-gc4r-9x3r

Summary

Flaw in generativity allows out-of-bounds access

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: CVSS v3 score 9.8, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Dates

Published
2019-05-21 12:00 UTC
Modified
2023-11-08 04:01 UTC

Affected packages and fixes

compact_arena

crates.io · All systems

Affected

  • introduced 0.0.0-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: RustSec Advisory Database · CC0-1.0

Sources & licences