# RUSTSEC-2026-0130: Out-of-bounds read/write in Index and IndexMut implementations

- Database: RustSec
- Published: 2026-05-02
- Modified: 2026-05-13

## Affected versions

- caja (crates.io): fixed in 0.3.0

## 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.

## References

- https://crates.io/crates/caja
- https://rustsec.org/advisories/RUSTSEC-2026-0130.html
- https://github.com/EmanuelGCC/Caja/issues/1

Page: https://cve.now/RUSTSEC-2026-0130

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
