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

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-05-02T12:00:00.000Z
- Modified: 2026-05-13T12:45:08.933Z

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

(As written by RustSec Advisory Database.)

## Affected

- caja (crates.io): from 0.0.0-0 before 0.3.0

## References

- <https://crates.io/crates/caja> (package)
- <https://rustsec.org/advisories/RUSTSEC-2026-0130.html> (advisory)
- <https://github.com/EmanuelGCC/Caja/issues/1> (report)

## Sources

- RustSec Advisory Database: [RUSTSEC-2026-0130](https://rustsec.org/advisories/RUSTSEC-2026-0130.html), CC0-1.0, modified 2026-05-13

---

Page: https://cve.day/RUSTSEC-2026-0130 · Whole record: https://cve.day/RUSTSEC-2026-0130.json · Rebuilt by cve.day 2026-11-25T22:56:43.350Z
