Advisory

RUSTSEC-2026-0130

Also known as: None

Summary

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

Details

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.

Severity

Not rated by the source.

Dates

Published
2026-05-02 12:00 UTC
Modified
2026-05-13 12:45 UTC

Affected packages and fixes

caja

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.3.0 (semver)

Fixed versions

0.3.0

Fix

  • Fixed version 0.3.0
    cargo update -p caja --precise 0.3.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