Skip to content
OpenAdvisories
Unscored RUSTSEC-2026-0130

Out-of-bounds read/write in `Index` and `IndexMut` implementations

Published May 2, 2026 · Updated May 13, 2026 · Assigned by RUSTSEC

Description

The `Index` and `IndexMut` implementations for `Caja` use unchecked pointer
arithmetic without bounds validation. Creating a `Caja` with a small key and
then accessing an out-of-range index causes out-of-bounds reads or writes
beyond the allocated memory.

This can be triggered through safe public APIs — the `[]` indexing operator
on a `Caja` with an out-of-range index — with no `unsafe` required from the
caller.

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io caja >= 0.0.0-0, < 0.3.0 0.3.0 RUSTSEC-2026-0130

References